{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "Chargebee API",
    "contact" : {
      "name" : "Chargebee Support",
      "url" : "https://www.chargebee.com",
      "email" : "support@chargebee.com"
    },
    "version" : "2026-05-08.dd2c2397a1673d374127e2311974b61d3e84350d",
    "x-cb-api-version" : 2,
    "x-cb-product-catalog-version" : 2,
    "x-generated-on" : 1778229129951
  },
  "servers" : [ {
    "url" : "{protocol}://{site}.{environment}:{port}/api/v2",
    "variables" : {
      "protocol" : {
        "default" : "https",
        "enum" : [ "https" ]
      },
      "site" : {
        "default" : "demo"
      },
      "environment" : {
        "default" : "chargebee.com",
        "enum" : [ "chargebee.com" ]
      },
      "port" : {
        "default" : "443",
        "enum" : [ "443" ]
      }
    }
  }, {
    "url" : "{protocol}://{site}-test.{environment}:{port}/api/v2",
    "variables" : {
      "protocol" : {
        "default" : "https",
        "enum" : [ "https" ]
      },
      "site" : {
        "default" : "demo"
      },
      "environment" : {
        "default" : "chargebee.com",
        "enum" : [ "chargebee.com" ]
      },
      "port" : {
        "default" : "443",
        "enum" : [ "443" ]
      }
    }
  } ],
  "paths" : {
    "/subscriptions/{subscription-id}/remove_advance_invoice_schedule" : {
      "post" : {
        "summary" : "Remove an advance invoice schedules",
        "description" : "**Caution**\n\n* This API will return an error when [multi-frequency billing](/docs/api/subscriptions#subscription-billing-frequencies) is enabled.\n\nDeletes an advance invoicing schedule. When *schedule_type = specific_dates*, you also have the option of deleting a part of the schedule.\n",
        "operationId" : "remove_an_advance_invoice_schedules",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "specific_dates_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for specific_dates_schedule\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "When *schedule_type = specific_dates*\n, pass the id of the [specific_dates_schedule](/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#specific_dates_schedule)\nthat you want to remove. If not passed, the entire advance_invoice_schedule is removed.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "specific_dates_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "advance_invoice_schedules" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing advance_invoice_schedule</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/AdvanceInvoiceSchedule",
                        "description" : "Resource object representing advance_invoice_schedule"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/update_for_items" : {
      "post" : {
        "summary" : "Update subscription for items",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Updates a subscription by modifying its item prices, coupons, billing configuration, payment method, and other attributes. Any parameters not provided remain unchanged. The changes can be applied immediately, scheduled for a future date, or even backdated to a past date.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><h4>Subscription and Ramps: Impact on existing scheduled changes</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the subscription has existing scheduled changes, the behavior depends on whether <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are enabled:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Ramps disabled</strong>: Any existing scheduled change on the subscription is deleted.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Ramps enabled with compatibility mode</strong>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If only one ramp is present:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the ramp was created using this API, the ramp is deleted.</li>\n<li class=\"text-base leading-relaxed\">If the ramp was created using the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a>, and the date-time of the new change is before the date-time of the ramp, then the ramp is moved to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code> status if the <a href=\"/docs/api/ramps/ramp-object#auto-draft\" class=\"text-blue-600 hover:text-blue-800 underline\">auto-draft conditions</a> are met.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">If multiple ramps are present: all ramps after the date-time of the new change are moved to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code> status if the <a href=\"/docs/api/ramps/ramp-object#auto-draft\" class=\"text-blue-600 hover:text-blue-800 underline\">auto-draft conditions</a> are met.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">For more details, see <a href=\"/docs/api/subscriptions#ramps-compat-mode\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps API compatibility mode</a>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Subscription: Other impacts</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the <a href=\"https://www.chargebee.com/docs/2.0/subscriptions#remove-mandatory-addons\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove mandatory add-ons from old plan during subscription plan update</a> setting is enabled on your Chargebee site, all <a href=\"/docs/api/attached_items\" class=\"text-blue-600 hover:text-blue-800 underline\">mandatory addons</a> with the old plan are automatically removed during the subscription update to a new plan.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Invoice</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If an invoice is generated, any available <a href=\"/docs/api/customers#balances\" class=\"text-blue-600 hover:text-blue-800 underline\">credits and excess payments</a> for the customer are automatically applied subject to <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#credits-flexibility\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">limits set at the site level</a>, which can be overridden for subscriptions via <a href=\"/docs/api/subscriptions#billing_override\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.billing_override</code></a>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Credit Note</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the subscription change occurs in the middle of a billing term, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, prorated <a href=\"/docs/api/credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\">credits</a> may be created for the unused service periods of the subscription items.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Payment Source</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code> parameters are provided, a new <a href=\"/docs/api/payment_sources\" class=\"text-blue-600 hover:text-blue-800 underline\">payment source</a> is created for the customer and associated with the subscription as the <a href=\"/docs/api/subscriptions/subscription-object#payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source_id</code></a>.</li>\n</ul></div></div></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><h4>Add item prices to the subscription</h4></div><div class=\"use-case-description\"><p class=\"mb-2\">To add new item prices to the subscription, pass them in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code> parameter.</p><h5>Example</h5><p class=\"mb-2\">Consider a subscription with the following item prices:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan-a-monthly-usd</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon-b-monthly-usd</code></li>\n</ul><p class=\"mb-2\">If you call this API with the following item price:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon-c-monthly-usd</code></li>\n</ul><p class=\"mb-2\">The subscription will be updated to include the following item prices:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan-a-monthly-usd</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon-b-monthly-usd</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon-c-monthly-usd</code></li>\n</ul></div></div><div class=\"use-case\"><div class=\"use-case-title\"><h4>Replace item prices in the subscription</h4></div><div class=\"use-case-description\"><p class=\"mb-2\">To replace all existing item prices in the subscription with a new set of item prices, include the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">replace_items_list</code> parameter and set it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p><h5>Example</h5><p class=\"mb-2\">Consider a subscription with the following item prices:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan-a-monthly-usd</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon-b-monthly-usd</code></li>\n</ul><p class=\"mb-2\">If you call this API with the following item prices and set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">replace_items_list</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan-c-monthly-usd</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon-d-monthly-usd</code></li>\n</ul><p class=\"mb-2\">The subscription will be updated to include only the new item prices:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan-c-monthly-usd</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon-d-monthly-usd</code></li>\n</ul></div></div><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> parameter to create a payment source for the customer. Using payment intents is the recommended way to create a payment source in Chargebee for both <a href=\"https://www.chargebee.com/docs/payments/2.0/others/psd2-sca\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Strong Customer Authentication</a> (SCA) (i.e. 3D-Secure) and non-SCA flows.</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Create a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> resource by calling the <a href=\"/docs/api/payment_intents/create-a-payment-intent\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a payment intent API</a>.</li>\n<li class=\"text-base leading-relaxed\">Pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> object to your frontend and use Chargebee.js to capture the payment source details from the customer. Use <a href=\"https://www.chargebee.com/checkout-portal-docs/payment-method-helper.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Payment Method Helpers</a> to show payment method UIs and collect payment method details from the customer.</li>\n<li class=\"text-base leading-relaxed\">Listen to the <a href=\"/docs/api/events/webhook/payment_intent_updated\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent_updated</code></a> event. Once the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorized</code>, pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.id</code> using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent[id]</code> parameter in this API call.</li>\n</ol></div></div><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">If you prefer to use the payment gateway&#x27;s SDKs to capture the payment method details, you can then use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code> parameter in this API to pass the payment method token and other details.</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the JavaScript library of your payment gateway to capture the payment method details. Examples include:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://stripe.com/docs/js\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Stripe.js</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Braintree.js</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://developer.authorize.net/api/reference/features/acceptjs.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Accept.js</a> (if you use <a href=\"https://developer.authorize.net/api/reference/features/acceptjs.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Authorize.Net</a>)</li>\n<li class=\"text-base leading-relaxed\">Adyen&#x27;s <a href=\"https://docs.adyen.com/online-payments/classic-integrations/api-integration-ecommerce/cse-integration-ecommerce\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Client-Side Encryption</a> (if you use Adyen)</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">Pass the payment method token using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method[reference_id]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method[tmp_token]</code> parameter along with any additional parameters required by the payment gateway to create the payment source.</li>\n</ol></div></div><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">If you are PCI compliant, you can pass raw card details via this API. Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code> parameter to pass the card details.</p></div></div></div>",
        "operationId" : "update_subscription_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "A list of item IDs representing the [mandatorily attached addons](/docs/api/attached_items)\nassociated with the plan to which the subscription is being updated. These addons will be removed from the subscription during the subscription update process.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_items_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines whether the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code> replace existing subscription items or are added to the existing list.</p>\n<p><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code> includes a plan</strong></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The entire subscription item list (plan and addons) is replaced by the provided list.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The provided items are added to the existing list. If multi-plan subscriptions is disabled, the existing plan item price is replaced. If multi-plan subscriptions is enabled, the existing plan item price is retained.</li>\n</ul>\n<p><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code> contains only addons</strong></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The existing plan on the subscription is always retained; it is not replaced.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: Existing addons are replaced by the provided addons, except mandatory addons (auto-attached to the plan). Mandatory addons are kept unless you list them in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory_items_to_remove</code>. The subscription will have the current plan, the addons you passed, plus any existing mandatory addons not in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory_items_to_remove</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The provided addons are added to the existing addons.</li>\n</ul>",
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Updates <a href=\"https://www.chargebee.com/docs/net_d.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Net D</a> for the subscription. Net D is the number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value must match one of the options defined in your <a href=\"https://www.chargebee.com/docs/net_d.html#enable-net-d-for-chargebee-invoices\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site configuration</a>.</li>\n<li class=\"text-base leading-relaxed\">To reset this attribute, set the value to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code>. When reset, it is not returned by the API, and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">net_term_days</code> value set at the <a href=\"customers/customer-object#net_term_days\" class=\"text-blue-600 hover:text-blue-800 underline\">customer level</a> is used instead.</li>\n</ul></div>",
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. Use this parameter to backdate the invoice for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The current date is used when not provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be a date-timein the past.</li>\n<li class=\"text-base leading-relaxed\">Must not be more than one calendar month into the past. For example, if today is 13th January, you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\">It must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Impacts</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"invoices#taxes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[]</code></a> and <a href=\"invoices#line_item_taxes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes[]</code></a> are computed based on the tax configuration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, and if the site is <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">configured</a> to set invoice dates to date of closing, then upon invoice closure, this date is changed to the invoice closing date.</li>\n</ul></div>",
                    "example" : null
                  },
                  "start_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The new start date of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code> subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "trial_end" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time at which the trial has ended or will end for the subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to have no trial period.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This is only allowed when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>.</li>\n<li class=\"text-base leading-relaxed\">The value must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.</li>\n<li class=\"text-base leading-relaxed\">This parameter can be backdated (set to a value in the past) only when the subscription is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> status. Do this to keep a record of when the trial ended.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Impact</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code> is backdated, the subscription immediately goes into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> status.</li>\n</ul></div>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles the subscription runs before canceling automatically.  \n**Default value**\n\n* The value set for the [plan-item price](docs/api/item_prices#billing_cycles) is used when not provided.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles to <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\">invoice in advance</a>.\nIf a new term is started for the subscription due to this API call, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nis inclusive of this new term. See description for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>\nparameter to learn more about when a subscription term is reset.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "reactivate_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nand it is being reactivated via this operation, this is the date/time at which the subscription should be reactivated.\n<strong class=\"font-semibold\">Note:</strong>\nIt is recommended not to pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changed_scheduled_at</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>\ncan be backdated (set to a value in the past). Use backdating when the subscription has been reactivated already but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be enabled for subscription reactivation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the product catalog items of the subscription were changed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> cannot be earlier than 14th February.</li>\n</ul>",
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nchosen for the site for calendar billing. Only applicable when using calendar billing.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly.\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  },
                  "offline_payment_method" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The preferred offline payment method for the subscription.\n\\* sepa_credit -\n\nSEPA Credit\n\\* cash -\n\nCash\n\\* no_preference -\n\nNo Preference\n\\* bank_transfer -\n\nBank Transfer\n\\* check -\n\nCheck\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* custom -\n\nCustom\n\\* boleto -\n\nBoleto\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n",
                    "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                    "example" : null
                  },
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase order number for this subscription.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of coupons to be applied to this subscription. You can provide <a href=\"coupons/coupon-object#id\" class=\"text-blue-600 hover:text-blue-800 underline\">coupon IDs</a> or <a href=\"coupon_codes/coupon-code-object#code\" class=\"text-blue-600 hover:text-blue-800 underline\">coupon codes</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> is in the past, you can use currently available coupons even if those coupons were not available on the date of the change.</li>\n</ul></div>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_coupon_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines whether the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_ids</code> replace or add to the <a href=\"/docs/api/subscriptions#coupons\" class=\"text-blue-600 hover:text-blue-800 underline\">existing coupons</a> on the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> (the provided coupons are added to the existing coupons)</li>\n</ul></div>",
                    "example" : null
                  },
                  "prorate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When this subscription change is set to occur in the middle of the subscription term, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> determines whether <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/proration#proration-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">prorated credits and charges</a> are created for the change.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: Prorated credits or charges are created as applicable for this change.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The subscription is changed without creating any credits or charges.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Default value</strong></p>\nThe value configured in the <a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-for-subscription-change\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site settings</a> is used when not provided.</p></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Constraints</strong></p>\nIf you set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for a change made mid-term in the billing cycle, credits are <strong class=\"font-semibold\">not</strong> created if all of the following were true for a previous change in the same billing term:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The earlier change had <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n<li class=\"text-base leading-relaxed\">No changes were made to the subscription&#x27;s billing term.</li>\n<li class=\"text-base leading-relaxed\">Only the subscription&#x27;s items or their prices were updated.</li>\n</ul></div>",
                    "example" : null
                  },
                  "end_of_term" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This option is deprecated; use the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a> instead.</li>\n<li class=\"text-base leading-relaxed\">If you pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> takes precedence.</li>\n</ul></div>\n<p class=\"mb-2\">This parameter has the same effect as setting the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term</code>.</p>",
                    "example" : null
                  },
                  "force_term_reset" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Forces the subscription term to start from the date of the subscription change when updating to a plan-item price with the same billing period as the current plan-item price.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Only applicable when the new plan-item price has the same billing period as the current plan-item price. When the billing period differs, the term is always reset regardless of this parameter&#x27;s value.</li>\n<li class=\"text-base leading-relaxed\">Only takes effect when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n<li class=\"text-base leading-relaxed\">If you pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>, you must also pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_usages</code> with the same value when <strong class=\"font-semibold\">all</strong> of the following site configuration settings are enabled:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/setting-up-usage-based-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Usage-based billing</a></li>\n<li class=\"text-base leading-relaxed\">Mid-term changes for usage-based items</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/metered_billing#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Invoice and charge for usage-based items when a subscription is changing</a></li>\n</ul>\n</li>\n</ul></div>",
                    "example" : null
                  },
                  "reactivate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines whether to reactivate a cancelled subscription when making this API request.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupons</code> are provided, unless explicitly set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> and you want to reactivate it.</li>\n</ul></div>",
                    "example" : null
                  },
                  "token_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The Chargebee payment token generated by <a href=\"https://www.chargebee.com/checkout-portal-docs/3ds-helper-overview.html#using-gateway-s-hosted-fields\">Chargebee JS</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nThe payment token created via Chargebee JS uses the gateway selected through <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\">Smart Routing</a>.\nExplicitly passing a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway_id</code>\nin this API call will not override the gateway associated with the token.</p></div>",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this subscription. This note is one among [all the notes](invoices/invoice-object#notes) displayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of \\[key-value pairs\\](advanced-features#metadata) that provides extra information about the subscription. \\*\\*Constraints\\*\\* \\* There's a character limit of 65,535.\n",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Determines whether charges raised immediately for the subscription are invoiced immediately or added to [unbilled charges](unbilled_charges).  \n**Default value**\n\n* The value configured in the [site settings](https://www.chargebee.com/docs/unbilled-charges.html#configuration) is used when not provided.  \n**Note:**\n\n* Any charges scheduled to be raised in the future are not affected by this parameter.\n",
                    "example" : null
                  },
                  "override_relationship" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, ignores the <a href=\"/docs/api/customers/customer-object#relationship\">hierarchy relationship</a>\nand uses customer as payment and invoice owner.</p>",
                    "example" : null
                  },
                  "changes_scheduled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date-time at which the subscription change is to happen or has happened.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated for scheduling changes</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Setting this parameter to a future date-time for scheduling changes is deprecated. Use the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a> instead.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Do not pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Backdated changes</strong></p>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> can be set to a value in the past. This is called backdating the subscription change and is performed when the subscription change has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/backdating#configuring-backdated-subscription-actions-and-invoicing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for subscription change operations.</li>\n<li class=\"text-base leading-relaxed\">Only the following changes can be backdated:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">Subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the following changes were made:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n</ul></div>",
                    "example" : null
                  },
                  "change_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies when the subscription change takes effect.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Constraints</strong></p>\nRegardless of the value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> parameter, the following parameters always take effect immediately:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">po_number</code></li>\n<li class=\"text-base leading-relaxed\">Any subscription-level <a href=\"/docs/api/advanced-features#custom-fields\" class=\"text-blue-600 hover:text-blue-800 underline\">custom field</a> parameters</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"update-subscription-for-items#impact-scheduled-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Impacts on existing scheduled changes</a>.</li>\n</ul></div>\n* end_of_term - <div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThis option is deprecated; use the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a> instead.</p></div>\n<p class=\"mb-2\">The change is carried out at the end of the current billing cycle of the subscription.</p>\n* specific_date - <div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated for scheduling changes</strong>\nThis option is deprecated for scheduling changes to occur at a future date-time, use the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a> instead.</p></div>\n<p class=\"mb-2\">Executes the change on a specified date. The change occurs as of the date-time defined in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>.</p>\n* immediately - <p class=\"mb-2\">The subscription change takes effect immediately.</p>",
                    "enum" : [ "immediately", "end_of_term", "specific_date" ],
                    "example" : null
                  },
                  "contract_term_billing_cycle_on_renewal" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                    "maximum" : 100,
                    "minimum" : 1,
                    "example" : null
                  },
                  "free_period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The period of time by which the first billing term after trial is extended free of charge. The value is expressed in the time unit specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code>. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code> adds 3 free months to the first paid term when the subscription becomes active.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "free_period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time unit for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Constraints</strong></p>\nMust be equal to or lower than the <a href=\"/docs/api/item_prices#period_unit\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code></a> of the plan <a href=\"/docs/api/subscriptions/update-subscription-for-items#subscription_items_item_price_id\" class=\"text-blue-600 hover:text-blue-800 underline\">item price</a> of the subscription.</p></div>\n* week - <p class=\"mb-2\">Charge based on week(s)</p>\n* month - <p class=\"mb-2\">Charge based on month(s)</p>\n* day - <p class=\"mb-2\">Charge based on day(s)</p>\n* year - <p class=\"mb-2\">Charge based on year(s)</p>",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "create_pending_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines whether invoices for this subscription are generated with a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> status.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/metered_billing.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Metered Billing</a> must be enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> automatically when the subscription has item prices that belong to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Use case</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Pending invoices allow you to inspect all charges on each invoice before closing it.</li>\n</ul></div>",
                    "example" : null
                  },
                  "auto_close_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Overrides the [site-level setting](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing) for auto-closing invoices for this subscription.  \n**Prerequisites**\n\n* Auto-closing invoices must be enabled for the site.  \n**Constraints**\n\n* This attribute has a higher precedence than the same attribute at the [customer level](customers/customer-object#auto_close_invoices).\n",
                    "example" : null
                  },
                  "trial_end_action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.\n\\* activate_subscription -\n\nThe subscription activates and charges are raised for non-metered items.\n\\* cancel_subscription -\n\nThe subscription cancels.\n\\* plan_default -\n\nThe action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n\\* site_default -\n\nThis is the default value. The action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n",
                    "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
                    "example" : null
                  },
                  "payment_initiator" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of initiator to be used for the payment request triggered by this operation.\n\\* customer -\n\nPass this value to indicate that the request is initiated by the customer\n\\* merchant -\n\nPass this value to indicate that the request is initiated by the merchant\n",
                    "enum" : [ "customer", "merchant" ],
                    "example" : null
                  },
                  "invoice_usages" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines whether to invoice the overages for metered items during the subscription change.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/setting-up-usage-based-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Usage-based billing</a> must be enabled.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_usages</code>, you must also pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code> with the same value when <strong class=\"font-semibold\">all</strong> of the following site configuration settings are enabled:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Mid-term changes for usage-based items</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/metered_billing#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Invoice and charge for usage-based items when a subscription is changing</a></li>\n</ul>\n</li>\n</ul></div>",
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card. Use this parameter to pass raw card details. Passing raw card data via API involves PCI liability at your end due to the sensitivity of the data.\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The gateway account in which these card details are stored.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required when</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">All of the following conditions are met together:</li>\n<li class=\"text-base leading-relaxed\">Passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code> parameter.</li>\n<li class=\"text-base leading-relaxed\">There are multiple <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment gateway</a> accounts configured for the site.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Smart Routing</a> is not configured for card payments.</li>\n</ul></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The 16 digit credit card number.  \nIf you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js), you can specify the Braintree encrypted card number here.\n",
                        "maxLength" : 1500,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "cvv" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The card verification value (CVV). If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted CVV here.\n",
                        "maxLength" : 520,
                        "example" : null
                      },
                      "preferred_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The customer's preferred card scheme for co-branded cards.  \n**Note**:\nCurrently, this parameter is only supported for Stripe.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card scheme.\n\\* mastercard -\n\nA MasterCard scheme.\n\\* visa -\n\nA Visa card scheme.\n\\* mada -\n\nA Mada card scheme.\n",
                        "enum" : [ "cartes_bancaires", "mastercard", "visa" ],
                        "example" : null
                      },
                      "billing_addr1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_addr2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_method" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Use this parameter if you prefer to use the payment gateway's SDKs to capture the payment method details and pass the payment method token and other details here. See \\[use cases\\](/docs/api/subscription/update-subscription-for-items#use-cases) to learn more.\n",
                    "properties" : {
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of payment method. For more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* go_pay -\n\nPayments made via GoPay\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* pix -\n\nPayments made via Pix\n\\* pay_by_bank -\n\nPay By Bank\n\\* sofort -\n\nPayments made via Sofort.\n\\* twint -\n\nPayments made via Twint\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* giropay -\n\nPayments made via giropay.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* upi -\n\nUPI Payments.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* payme -\n\nPayments made via PayMe\n\\* pay_to -\n\nPayments made via PayTo\n\\* pay_co -\n\nPayments made via PayCo\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* swish -\n\nPayments made via Swish\n\\* venmo -\n\nPayments made via Venmo\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* online_banking_poland -\n\nPayments made via Online Banking Poland\n\\* trustly -\n\nTrustly\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reference id. In the case of Amazon and PayPal this will be the *billing agreement id* .\nFor GoCardless direct debit this will be 'mandate id'. In the case of card this will be the identifier provided by the gateway/card vault for the specific payment method resource. **Note:**\nThis is not the one-time temporary token provided by gateways like Stripe.\n\nFor more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n",
                        "maxLength" : 200,
                        "example" : null
                      },
                      "tmp_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Single-use tokens created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet, card details or direct debit. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.Net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "issuing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n) is available as an option.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Pass these parameters to create a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> using an authorized <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code>. This is the recommended way to create a payment source in Chargebee for both <a href=\"https://www.chargebee.com/docs/payments/2.0/others/psd2-sca\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Strong Customer Authentication</a> (SCA) (i.e. 3D-Secure) and non-SCA flows. See <a href=\"update-subscription-for-items#use-cases\" class=\"text-blue-600 hover:text-blue-800 underline\">use cases</a> to learn more.</p>",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Identifier for the <a href=\"/docs/api/payment_intents\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code></a> resource. If you provide this parameter, you do not need to pass other <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> parameters.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value of <a href=\"/docs/api/payment_intents/payment_intent-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.status</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorized</code>.</li>\n</ul></div>",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment method type.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code></li>\n</ul></div>\n* card - <p class=\"mb-2\">card</p>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* dotpay - <p class=\"mb-2\">dotpay</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* upi - <p class=\"mb-2\">upi</p>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">google_pay</p>\n* paypal_express_checkout - <p class=\"mb-2\">paypal_express_checkout</p>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* ideal - <p class=\"mb-2\">ideal</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* direct_debit - <p class=\"mb-2\">direct_debit</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* bancontact - <p class=\"mb-2\">bancontact</p>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* apple_pay - <p class=\"mb-2\">apple_pay</p>\n* online_banking_poland - <p class=\"mb-2\">Online Banking Poland</p>\n<span featureId=\"cb-online-banking-poland\" isMicro=\"true\"></span>\n* giropay - <p class=\"mb-2\">giropay</p>\n* sofort - <p class=\"mb-2\">sofort</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "statement_descriptor" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for statement_descriptor\n",
                    "properties" : {
                      "descriptor" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Payment transaction descriptor text to help your customer easily recognize the transaction. When this value is passed this will override the [transaction descriptor](https://www.chargebee.com/docs/2.0/transaction_descriptors.html)\ntext configured in the Chargebee site for all the subscription renewal transactions.\n",
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The VAT/tax registration number for the customer. For customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n), the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>\ncan be overridden by setting\n<code><a href=\"/docs/api/customers/customer-object#vat_number_prefix\">vat_number_prefix</a></code>\n.</p>",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "entity_identifier_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "is_einvoice_enabled" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Determines whether the customer is e-invoiced. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nor not set to any value, the customer is e-invoiced so long as e-invoicing is enabled for their country (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>\n). When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the customer is not e-invoiced even if e-invoicing is enabled for their country.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">It is possible to set a value for this flag even when E-Invoicing is disabled. However, it comes into effect only when E-Invoicing is enabled.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "example" : null
                      },
                      "einvoicing_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines whether to send einvoice manually or automatic.\n\\* automatic -\n\nUse this value to send e-invoice every time an invoice or credit note is created.\n\\* manual -\n\nWhen manual is selected the automatic e-invoice sending is disabled. Use this value to send e-invoice manually through UI or API.\n\\* site_default -\n\nThe default value of the site which can be overridden at the customer level.\n",
                        "enum" : [ "automatic", "manual", "site_default" ],
                        "example" : null
                      },
                      "entity_identifier_standard" : {
                        "type" : "string",
                        "default" : "iso6523-actorid-upis",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nCurrently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "business_customer_without_vat_number" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "Confirms that a customer is a valid business without an EU/UK VAT number.\n",
                        "example" : null
                      },
                      "registered_for_gst" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_override" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Specify limits on how credits and payments are applied to individual invoices for the subscription. Contact \\[Support\\](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api\\&utm_medium=content\\&utm_campaign=support) to enable this feature. Note: These limits do not apply to \\[consolidated invoices\\](https://www.chargebee.com/docs/2.0/consolidated-invoicing.html) .\n",
                    "properties" : {
                      "max_excess_payment_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#excess_payments\">excess payments</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      },
                      "max_refundable_credits_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#refundable_credits\">refundable credits</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of item prices to add or update in the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nSee <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">replace_items_list</code> for more details.</p></div>",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price to add or update in the subscription.  \n**Constraints**\n\n* The [item price currency](item_prices#currency_code) must match the [subscription's currency](subscriptions#currency_code).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The quantity of the item price purchased.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The item price <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of the item purchased.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The item price <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"getting-started\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal pricing</a> must be enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit price of the item. Overrides the price set for the item price.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> must be enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value set for the <a href=\"item_prices/item-price-object\" class=\"text-blue-600 hover:text-blue-800 underline\">item price</a> is used when not provided.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> is in the past and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code> is not passed, the item price&#x27;s current unit price is considered even if the item price did not exist on the date.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the price or per-unit price of the item. Overrides the price set for the item price.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> must be enabled for the site.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"getting-started\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal pricing</a> must be enabled.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"item_prices/item_price-object#price\" class=\"text-blue-600 hover:text-blue-800 underline\">value set for the item price</a> is used when not provided.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> is in the past and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price_in_decimal</code> is not passed, the item price&#x27;s current unit price is considered even if the item price did not exist on the date.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Provide the value as a decimal string in major units of the currency.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For plan-item prices: The number of billing cycles the subscription runs before canceling automatically.\n\nFor addon-item prices: The number of subscription billing cycles for which the addon is included. Only applicable when [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html) are enabled.  \n**Default value**\n\n* For plan-item prices: The value set for the [item price](item_prices/item-price-object) is used.\n* For addon-item prices: The value set under [attached addons](attached_items/attached-item-object) is used. If that value is not provided, the value set for the [item price](item_prices/item-price-object) is used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "proration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies how to manage charges or credits for the addon item price during this subscription update.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The item price must have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</li>\n<li class=\"text-base leading-relaxed\">The item price must have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\">The change to the subscription must take effect <a href=\"subscriptions/update-subscription-for-items#change_option\" class=\"text-blue-600 hover:text-blue-800 underline\">immediately</a>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you don&#x27;t provide a value, Chargebee determines the proration logic based on the following precedence: this parameter &gt; <a href=\"subscriptions/update-subscription-for-items#prorate\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code></a> parameter &gt; <a href=\"item_prices/item_price-object#proration_type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price.proration_type</code></a> &gt; <a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-for-subscription-change\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site-wide proration</a> setting.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Once set, this parameter is saved as part of the <a href=\"subscriptions/subscription-object#subscription_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.subscription_items</code></a> attributes and automatically applies to any additional changes to the addon during the current term. It&#x27;s removed from the subscription attributes at the next term renewal. You can&#x27;t alter this parameter&#x27;s value within the current term via later API calls.</li>\n</ul></div>\n<span featureId=\"cb-addon-proration\" isMicro=\"true\"></span>\n* none - <p class=\"mb-2\">Don&#x27;t apply any charges or credits for the addon.</p>\n* full_term - <p class=\"mb-2\">Charge the full price of the addon or give the full credit. Don&#x27;t apply any proration.</p>\n* partial_term - <p class=\"mb-2\">Prorate the charges or credits for the rest of the current term.</p>",
                          "enum" : [ "full_term", "partial_term", "none" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "usage_accumulation_reset_frequency" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Specifies the frequency at which the usage counter needs to be reset.\n\\* subscription_billing_frequency -\n\nAccumulates usage until the subscription's billing frequency ends.\n\\* never -\n\nAccumulates usage without ever resetting it.\n",
                          "enum" : [ "never", "subscription_billing_frequency" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be carried out for the discount.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* remove - <p class=\"mb-2\">The discount (given by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[id]</code>\n) is removed from the subscription. Subsequent invoices will no longer have the discount applied. <strong class=\"font-semibold\">Tip:</strong>\nIf you want to replace a discount, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>\nit and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">add</code>\nanother in the same API call.</p>\n* add - <p class=\"mb-2\">The discount is attached to the subscription.</p>",
                          "enum" : [ "add", "remove" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code>\nto be removed. This parameter is only relevant when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[operation_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type", "operation_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/subscriptions)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "billing_override" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_method" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "statement_descriptor" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    },
                    "credit_notes" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/CreditNote",
                        "description" : "Resource object representing credit_note"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/remove_coupons" : {
      "post" : {
        "summary" : "Remove coupons",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong>\nIf there are scheduled <code><a href=\"/docs/api/ramps\">ramps</a></code> for the subscription, this operation can move the ramps to the <a href=\"/docs/api/ramps/ramp-object#status\" target=\"_blank\">draft</a> status when it conflicts with any upcoming ramps.</p></div><p class=\"mb-2\">Removes coupons associated with the subscription. If the param <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_ids</code>\nis not specified, all the coupons linked to the subscription are be removed.</p></div>",
        "operationId" : "remove_coupons",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be removed from the subscription. You can provide only [coupon_id](/docs/api/coupons/coupon-object#id)\nand not [coupon_code](/docs/api/coupon_codes/coupon_code-object#code)\n.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/resume" : {
      "post" : {
        "summary" : "Resume a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> This operation optionally supports 3DS verification flow. To achieve the same, create the <a href=\"/docs/api/getting-started\" class=\"text-blue-600 hover:text-blue-800 underline\">Payment Intent</a> and pass it as input parameter to this API.</p><p class=\"mb-2\">This API is used to resume a <strong class=\"font-semibold\">paused</strong> subscription. On resumption the subscription will be activated and any applicable charges will be initiated.</p><p class=\"mb-2\">You could schedule the resumption by passing <strong class=\"font-semibold\">specific_date</strong> parameter in resume_option. If scheduled, the subscription will be resumed on the <strong class=\"font-semibold\">specific_date</strong> and moved to Active state.</p><p class=\"mb-2\">For in-term resumption, unless there are scheduled changes, unbilled charges will not be charged.</p><p class=\"mb-2\"><strong class=\"font-semibold\">What is an &quot;in-term resumption&quot;?</strong>\nAn &quot;in-term resumption&quot; is when the pause and resumption happens within the billing term of the subscription.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Example :</strong> A subscription was billed from 1st to 31st of a month. It was paused on the 20th and resumed before 31st. This is an in-term resumption.</p><h4>UNPAID INVOICES</h4><p class=\"mb-2\">Specifying <strong class=\"font-semibold\">unpaid_invoices</strong> allows you to close invoices of the subscription which have amounts due. The invoices are chosen for payment collection after applying the available credits and excess payments.</p><p class=\"mb-2\">If you specify <strong class=\"font-semibold\">schedule_payment_collection</strong>, Chargebee will try to collect payments for overdue invoices, provided that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is enabled for the subscription. The available payment method is charged. Upon successful payment, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_succeeded</code> event is triggered. If the payment collection fails, no further attempts will be made to collect payment on the invoices.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> If the invoices of the subscription are consolidated, and any of the subscriptions in the consolidated invoice are cancelled, these invoices will not be selected for collection.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong></p><p class=\"mb-2\">This API will return an error when <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">multi-frequency billing</a> is enabled.</p></div>",
        "operationId" : "resume_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "resume_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "List of options to resume the subscription.\n\\* immediately -\n\nResume immediately\n\\* specific_date -\n\nResume on a specific date\n",
                    "enum" : [ "immediately", "specific_date" ],
                    "example" : null
                  },
                  "resume_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Date on which the subscription will be resumed. Applicable when **resume_option**\nis set as 'specific_date'.\n",
                    "example" : null
                  },
                  "charges_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Applicable when charges get added during this operation and **resume_option**\nis set as 'immediately'. Allows to raise invoice immediately or add them to unbilled charges.\n\\* add_to_unbilled_charges -\n\nAdd to unbilled charges\n\\* invoice_immediately -\n\nInvoice immediately\n",
                    "enum" : [ "invoice_immediately", "add_to_unbilled_charges" ],
                    "example" : null
                  },
                  "unpaid_invoices_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Applicable when the subscription has past due invoices and **resume_option**\nis set as 'immediately'. Allows to collect past due invoices or retain them as unpaid. If 'schedule_payment_collection' option is chosen in this field, remaining refundable credits and excess payments are applied.\n**Note:**\nThe payment collection attempt will be asynchronous.\n\\* no_action -\n\nRetain as unpaid\n\\* schedule_payment_collection -\n\nCollect payment\n",
                    "enum" : [ "no_action", "schedule_payment_collection" ],
                    "example" : null
                  },
                  "payment_initiator" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of initiator to be used for the payment request triggered by this operation.\n\\* customer -\n\nPass this value to indicate that the request is initiated by the customer\n\\* merchant -\n\nPass this value to indicate that the request is initiated by the merchant\n",
                    "enum" : [ "customer", "merchant" ],
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n\\* card -\n\ncard\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* after_pay -\n\nPayments made via Afterpay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* dotpay -\n\ndotpay\n\\* faster_payments -\n\nFaster Payments\n\\* upi -\n\nupi\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* payme -\n\nPayments made via PayMe\n\\* direct_debit -\n\ndirect_debit\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* bancontact -\n\nbancontact\n\\* go_pay -\n\nPayments made via GoPay\n\\* pay_by_bank -\n\nPay By Bank\n\\* google_pay -\n\ngoogle_pay\n\\* apple_pay -\n\napple_pay\n\\* online_banking_poland -\n\nOnline Banking Poland\n\\* trustly -\n\nTrustly\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* giropay -\n\ngiropay\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* venmo -\n\nVenmo\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* alipay -\n\nPayments made via Alipay.\n\\* sofort -\n\nsofort\n\\* amazon_payments -\n\nAmazon Payments\n\\* ideal -\n\nideal\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* pay_to -\n\nPayTo\n\\* boleto -\n\nboleto\n\\* pay_co -\n\nPayments made via PayCo\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/cancel_for_items" : {
      "post" : {
        "summary" : "Cancel subscription for items",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Cancels the specified subscription.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription <a href=\"/docs/api/subscriptions/subscription-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\">status</a> must not be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transferred</code>.</li>\n<li class=\"text-base leading-relaxed\">If the subscription has a <a href=\"/docs/api/contract_terms\" class=\"text-blue-600 hover:text-blue-800 underline\">contract term</a>, specify <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code></a> instead of <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#cancel_option\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code></a>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The cancellation date-time depends on the provided parameters:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the subscription does not have a contract term, use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code>.</li>\n<li class=\"text-base leading-relaxed\">When the subscription has a contract term, use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> when canceled.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term</code>, or if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_subscription_billing_term</code>, the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> and the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Contract Terms</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term and subscription are canceled together based on the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Ramps</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">ramps</a> are scheduled for the subscription, this operation deletes any ramps that are set to become effective on or after the subscription&#x27;s cancellation date-time.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, perform the following checks:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Confirm that the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transferred</code>.</li>\n<li class=\"text-base leading-relaxed\">If the subscription has a contract term, pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> instead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code>.</li>\n</ul></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><p class=\"mb-2\">Cancel a subscription with a <a href=\"/docs/api/contract_terms\" class=\"text-blue-600 hover:text-blue-800 underline\">contract term</a></p></div><div class=\"use-case-description\"><p class=\"mb-2\">If the subscription has a contract term, you can use the following parameters with this API:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_option_for_current_term_charges</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charges_option</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">account_receivables_handling</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable_credits_handling</code></li>\n</ul></div></div></div>",
        "operationId" : "cancel_subscription_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cancel_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Determines when to cancel the subscription.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">This parameter is not applicable.</p>\n* end_of_billing_term - <p class=\"mb-2\">This is used to cancel a subscription either at the end of the advance term, if it&#x27;s billed for future renewals or at the end of its current billing cycle</p>\n* end_of_term - <p class=\"mb-2\">This is used to cancel a subscription at the end of the current billing cycle</p>\n* immediately - <p class=\"mb-2\">This is used to cancel the subscription with immediate effect</p>\n* specific_date - <p class=\"mb-2\">This is used to cancel a subscription on a specified date. The change occurs as of the date/time defined in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code></p>",
                    "enum" : [ "immediately", "end_of_term", "specific_date", "end_of_billing_term" ],
                    "example" : null
                  },
                  "end_of_term" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">(Deprecated)</strong> Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> instead.\nApplicable only when the subscription does not have <a href=\"/docs/api/contract_terms\">contract terms</a>.\nSet this to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> if you want to cancel the subscription at the end of the current subscription billing cycle. The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</p>",
                    "example" : null
                  },
                  "cancel_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies the date and time when the subscription should be canceled. Do not use this parameter when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>. Specifies the date and time to cancel the subscription and contract term.</p>\n<h5>Backdating</h5>\n<p class=\"mb-2\">You can set a past date to backdate the cancellation. Backdating is allowed only if the following conditions are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/backdating.html\" target=\"_blank\">Backdating</a> is enabled for subscription cancellation.</li>\n<li class=\"text-base leading-relaxed\">The current date does not exceed the <a href=\"https://www.chargebee.com/docs/2.0/backdating.html#configuring-backdated-subscription-actions-and-invoicing\" target=\"_blank\">backdating limit configured in Chargebee Billing</a>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the most recent change involving:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Addition/change/removal of plan or addon item prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of charge item prices.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">The date is not more than one billing period into the past. For example, if the plan&#x27;s billing period is two months and today is April 14, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code> cannot be earlier than February 14.</li>\n</ul>",
                    "example" : null
                  },
                  "credit_option_for_current_term_charges" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle credits for current term charges when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle credits for current term charges when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* none - <p class=\"mb-2\">No credits notes are created.</p>\n* full - <p class=\"mb-2\">Credits are issues for the full value of the current term charges.</p>\n* prorate - <p class=\"mb-2\">Prorated credits are issued.</p>",
                    "enum" : [ "none", "prorate", "full" ],
                    "example" : null
                  },
                  "unbilled_charges_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle unbilled charges when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle unbilled charges when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* invoice - <p class=\"mb-2\">An invoice is generated immediately with the unbilled charges.</p>\n* delete - <p class=\"mb-2\">The unbilled charges are deleted.</p>",
                    "enum" : [ "invoice", "delete" ],
                    "example" : null
                  },
                  "account_receivables_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle past due invoices when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle past due invoices when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* no_action - <p class=\"mb-2\">No action is taken.</p>\n* write_off - <p class=\"mb-2\">Applies excess payments and refundable credits to past due invoices. Any remaining balance is written off.\n<em class=\"italic\">Note: The credit note for the write-off is not included in the API response.</em></p>\n* schedule_payment_collection - <p class=\"mb-2\">Applies excess payments and refundable credits to past due invoices. If any amount remains and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>\n, the remaining amount is automatically charged to the available payment method.</p>",
                    "enum" : [ "no_action", "schedule_payment_collection", "write_off" ],
                    "example" : null
                  },
                  "refundable_credits_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle refundable credits when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle refundable credits when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* schedule_refund - <p class=\"mb-2\">Refunds remaining credits after applying them to any past due invoices.</p>\n* no_action - <p class=\"mb-2\">No action is taken.</p>",
                    "enum" : [ "no_action", "schedule_refund" ],
                    "example" : null
                  },
                  "contract_term_cancel_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Required when the subscription has a contract term. Determines when to cancel the subscription along with the contract term.</p>\n* terminate_immediately - <p class=\"mb-2\">Cancels the subscription and contract term immediately. Sets the contract term&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminated</code> and collects any termination fee, if applicable.\nTo specify the termination fee, include a single object in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code> array. If not specified, the <a href=\"/docs/api/contract_terms\">default termination fee</a> is applied (if configured).</p>\n* end_of_contract_term - <p class=\"mb-2\">Prevents the contract term from renewing and schedules the subscription for cancellation at the end of the contract term.</p>\n* specific_date - <p class=\"mb-2\">Cancels the subscription and contract term on the date specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code>. Sets <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.\n<strong class=\"font-semibold\">Note</strong>: Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this option for your <a href=\"https://www.chargebee.com/docs/2.0/sites-intro.html\">Chargebee site</a>.</p>\n* end_of_subscription_billing_term - <p class=\"mb-2\">Cancels the subscription and contract term at the end of the current billing cycle. Sets <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.\n<strong class=\"font-semibold\">Note</strong>: Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this option for your <a href=\"https://www.chargebee.com/docs/2.0/sites-intro.html\">Chargebee site</a>.</p>",
                    "enum" : [ "terminate_immediately", "end_of_contract_term", "specific_date", "end_of_subscription_billing_term" ],
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. The default value is the current date. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date. Moreover, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, and if the site is configured to set invoice dates to date of closing, then upon invoice closure, this date is changed to the invoice closing date. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax</code>\nconfiguration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.\nWhen passing this parameter, the following prerequisites must be met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> must be in the past.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> is not more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\">It is not earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code>.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "cancel_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Subscriptions \\> Subscription Cancellation**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "decommissioned" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether the subscription should be decommissioned when it is canceled. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> all subscription operations will be disabled except deletion.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: Decommission operation is irreversible. Once set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> it cannot be updated to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> and thus subscription will remain decommissioned permanently.</p></div>",
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the charge item_price that represents the termination fee.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity associated with the termination fee. Applicable only when the item_price for the termination charge is quantity-based.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "The termination fee. In case it is quantity-based, this is the fee per unit.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the termination fee-expressed in days-starting from the current date.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    },
                    "credit_notes" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/CreditNote",
                        "description" : "Resource object representing credit_note"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/regenerate_invoice" : {
      "post" : {
        "summary" : "Regenerate an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Use this API to regenerate the current-term <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">invoice</a> for a subscription. The new invoice will contain non-metered charges from the current term and <a href=\"/docs/api/items/item-object#metered\" class=\"text-blue-600 hover:text-blue-800 underline\">metered</a> charges from the previous term.\nIf a customer was billed incorrectly, because of a wrong plan, price, or tax configuration, you can first <a href=\"/docs/api/invoices/void-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">void</a> or <a href=\"/docs/api/invoices/delete-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">delete</a> the erroneous invoice, update the <a href=\"/docs/api/subscriptions/update-subscription-for-items\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> or <a href=\"/docs/api/usages/create-a-usage\" class=\"text-blue-600 hover:text-blue-800 underline\">usage</a> records, and then run this operation to issue the corrected invoice.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><p class=\"mb-2\">Before regenerating an invoice, ensure the following conditions are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription&#x27;s current-term invoice must be voided or deleted.</li>\n<li class=\"text-base leading-relaxed\">The subscription <a href=\"/docs/api/subscriptions/subscription-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n<li class=\"text-base leading-relaxed\">There should be no <a href=\"/docs/api/unbilled_charges\" class=\"text-blue-600 hover:text-blue-800 underline\">unbilled charges</a> for non-<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> subscribed items for the current term.</li>\n<li class=\"text-base leading-relaxed\">There should be no unbilled charges for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items for the previous term.</li>\n<li class=\"text-base leading-relaxed\">The subscription must not have any <a href=\"https://www.chargebee.com/docs/2.0/advance-invoices.html#generating-an-advance-invoice\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">advance invoices</a></li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Current-Term Invoice</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Chargebee does not modify the voided or deleted invoice for the current term. Instead, it creates a new invoice.</p><p class=\"mb-2\">The new invoice includes:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Subscription-item charges for the current term.</li>\n<li class=\"text-base leading-relaxed\">Usage charges from the previous term.</li>\n</ul><p class=\"mb-2\">The new invoice <strong class=\"font-semibold\">does not</strong> include:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">One-time addon charges, including mandatory addons.</li>\n<li class=\"text-base leading-relaxed\">Ad hoc or other one-time charges from the voided or deleted invoice.</li>\n<li class=\"text-base leading-relaxed\">Unbilled charges.</li>\n<li class=\"text-base leading-relaxed\">Usage charges for the current term.</li>\n</ul><p class=\"mb-2\">If every charge for the current-term has a value of zero, and your site is configured to <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/billing/how-to-hide-zero-value-line-items-from-my-customers\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">hide zero-value line items</a>, the invoice is not generated.</p><p class=\"mb-2\">If you delete the original invoice, the associated usage data is also deleted. To ensure accurate billing for metered items, <a href=\"/docs/api/usages/create-a-usage\" class=\"text-blue-600 hover:text-blue-800 underline\">add</a> or <a href=\"https://www.chargebee.com/docs/2.0/bulk-operations.html#overview_available-bulk-operations\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">bulk import</a> usage records before regenerating the invoice.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Payment Collection</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If <a href=\"/docs/api/customers/customer-object#auto_collection\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto-collection</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>, Chargebee attempts to collect payment for the regenerated invoice. If the payment collection <strong class=\"font-semibold\">fails</strong>, the invoice regeneration also <strong class=\"font-semibold\">fails</strong>.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: Chargebee applies any <a href=\"/docs/api/customers/customer-object#balances\" class=\"text-blue-600 hover:text-blue-800 underline\">customer balances</a>, such as unapplied payment from the voided invoice, before attempting to collect the remaining amount.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Order</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Any <a href=\"/docs/api/orders\" class=\"text-blue-600 hover:text-blue-800 underline\">orders</a> associated with the invoice are regenerated automatically when the invoice is regenerated.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, perform the following checks:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Confirm that the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice regeneration is supported for the current term only. If you&#x27;re using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_from</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_to</code> parameters, ensure that their values fall within the range defined by <a href=\"/docs/api/subscriptions/subscription-object#current_term_start\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.current_term_start</code></a> and <a href=\"/docs/api/subscriptions/subscription-object#current_term_end\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.current_term_end</code></a>.</li>\n</ul></div>",
        "operationId" : "regenerate_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "date_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The start date of the period being invoiced. The default value is [current_term_start](/docs/api/subscriptions/subscription-object#current_term_start)\n.\n",
                    "example" : null
                  },
                  "date_to" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The end date of the period being invoiced. The default value is [current_term_end](/docs/api/subscriptions/subscription-object#current_term_end)\n.\n",
                    "example" : null
                  },
                  "prorate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Whether the charges should be prorated according to the term specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_from</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_to</code>.\nShould not be passed without <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_from</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_to</code>\n.</p>",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Only applicable when <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html \" target=\"_blank\">Consolidated Invoicing</a>\nis enabled for the customer. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto leave the current term charge for the subscription as <a href=\"https://www.chargebee.com/docs/unbilled-charges.html \" target=\"_blank\">unbilled</a>.\nOnce you have done this for all suitable subscriptions of the customer, call <a href=\"/docs/api/unbilled_charges/create-an-invoice-for-unbilled-charges\" target=\"_blank\">Create an invoice for unbilled charges</a>\nto invoice them.</p>",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    }
                  },
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions" : {
      "get" : {
        "summary" : "List subscriptions",
        "description" : "Returns a list of subscriptions meeting **all**\nthe conditions specified in the filter parameters below.\n",
        "operationId" : "list_subscriptions",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Indicates whether to include deleted objects in the list. The deleted objects have the attribute <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deleted</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nA unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is_not\\] = \"8gsnbYfsMLds\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8gsnbYfsMLds",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nIdentifier of the customer with whom this subscription is associated.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*customer_id\\[is\\] = \"8gsnbYfsMLds\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8gsnbYfsMLds",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe plan item code.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*item_id\\[is_not\\] = \"silver\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "silver",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_price_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe plan item price code.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*item_price_id\\[is\\] = \"silver-USD-monthly\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "silver-USD-monthly",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nCurrent state of the subscription. Possible values are : future, in_trial, active, non_renewing, paused, cancelled.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is_not\\] = \"active\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "cancel_reason",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe reason for canceling the subscription. Set by Chargebee automatically. Possible values are : not_paid, no_card, fraud_review_failed, non_compliant_eu_customer, tax_calculation_failed, currency_incompatible_with_gateway, non_compliant_customer.\n\n**Supported operators :**\nis, is_not, in, not_in, is_present\n\n**Example →**\n*cancel_reason\\[is\\] = \"not_paid\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "not_paid",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "cancel_reason_code",
          "in" : "query",
          "description" : "optional, string filter\n\nReason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Subscriptions \\> Subscription Cancellation** .\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*cancel_reason_code\\[is\\] = \"Not Paid\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Not Paid",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "remaining_billing_cycles",
          "in" : "query",
          "description" : "optional, integer filter\n\n* When the subscription is not on a contract term: this value is the number of billing cycles remaining after the current cycle, at the end of which, the subscription cancels.\n* When the subscription is on a [contract term](/docs/api/contract_terms): this value is the number of billing cycles remaining in the contract term after the current billing cycle. . **Supported operators :** is, is_not, lt, lte, gt, gte, between, is_present\n\n**Example →**\n*remaining_billing_cycles\\[is_not\\] = \"3\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "3",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe time at which the subscription was created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[before\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "activated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Time at which the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nlast changed to\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nFor example, this value is updated when an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\nor\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscription activates.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">activated_at[after] = &quot;1435054328&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "next_billing_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">The date/time at which the next billing for the subscription happens. This is usually right after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>\nunless multiple subscription terms were invoiced in advance using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nparameter.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">next_billing_at[after] = &quot;1435054328&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "cancelled_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTime at which subscription was cancelled or is set to be cancelled.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*cancelled_at\\[after\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "has_scheduled_changes",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, there are subscription changes scheduled on next renewal. Possible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">has_scheduled_changes[is] = &quot;true&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[after] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "offline_payment_method",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe preferred offline payment method for the subscription. Possible values are : no_preference, cash, check, bank_transfer, ach_credit, sepa_credit.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*offline_payment_method\\[is_not\\] = \"cash\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "cash",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "auto_close_invoices",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto override for this subscription, the <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">site-level setting</a>\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute has a higher precedence than the same attribute at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">auto_close_invoices[is] = &quot;true&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "override_relationship",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, ignores the <a href=\"/docs/api/customers/customer-object#relationship\">hierarchy relationship</a>\nand uses customer as payment and invoice owner. Possible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">override_relationship[is] = &quot;false&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "false",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "business_entity_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe unique ID of the\n[business entity](/docs/api/advanced-features)\nof this subscription. This is always the same as the\n[business entity](/docs/api/subscriptions/subscription-object#customer_id)\nof the customer.\n\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*business_entity_id\\[is_not\\] = \"business_entity_id\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "business_entity_id",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "channel",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe subscription channel this object originated from and is maintained in. Possible values are : web, app_store, play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*channel\\[is_not\\] = \"APP STORE\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "APP STORE",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "subscription" : {
                            "$ref" : "#/components/schemas/Subscription",
                            "description" : "Resource object representing subscription"
                          },
                          "customer" : {
                            "$ref" : "#/components/schemas/Customer",
                            "description" : "Resource object representing customer"
                          },
                          "card" : {
                            "$ref" : "#/components/schemas/Card",
                            "description" : "Resource object representing card"
                          }
                        },
                        "required" : [ "customer", "subscription" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/move" : {
      "post" : {
        "summary" : "Move a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Moves a subscription from one <a href=\"/docs/api/customers\">customer</a> to another asynchronously. All related resources such as <code><a href=\"/docs/api/unbilled_charges\">unbilled_charge</a></code>, <code><a href=\"/docs/api/invoices\">invoice</a></code>, <code><a href=\"/docs/api/credit_notes\">credit_note</a></code>, and <code><a href=\"/docs/api/transactions\">transaction</a></code> are also moved to the new customer.</p><p class=\"mb-2\">After moving, Chargebee adds a <code><a href=\"/docs/api/comments\">comment</a></code> to the original <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource to document the move, including the <code><a href=\"/docs/api/subscriptions/move-a-subscription#to_customer_id\">to_customer_id</a></code> and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>s of all the resources transferred to the destination customer.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code><a href=\"/docs/api/subscriptions/create-subscription-for-items#auto_collection\">auto_collection</a></code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>, it might fail after this operation. Refer to the warning in <code><a href=\"/docs/api/subscriptions/move-a-subscription#copy_payment_source\">copy_payment_source</a></code> for details.</li>\n<li class=\"text-base leading-relaxed\">During the time that it takes for the operation to complete, no modifications are allowed on the source customer, the destination customer, and the subscription.</li>\n<li class=\"text-base leading-relaxed\">After moving a subscription, the change does not reflect in Chargebee Billing&#x27;s <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html\" target=\"_blank\">accounting integrations</a> or in <a href=\"https://www.chargebee.com/docs/revrec/chargebee-billing-features.html\" target=\"_blank\">Chargebee RevRec</a>.</li>\n<li class=\"text-base leading-relaxed\">This API will return an error when <a href=\"/docs/api/subscriptions\">multi-frequency billing</a> is enabled.</li>\n</ul></div><h4>Prerequisites</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription should not be part of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource that is within an account hierarchy <a href=\"/docs/api/customers/customer-object#relationship\">relationship</a>.</li>\n<li class=\"text-base leading-relaxed\">There must be no invoices with the <a href=\"/docs/api/invoices/invoice-object#status\">statuses</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code> associated with the subscription.</li>\n<li class=\"text-base leading-relaxed\">The site must have <a href=\"https://www.chargebee.com/docs/2.0/consolidated-invoicing.html\" target=\"_blank\">consolidated invoicing</a> disabled.</li>\n<li class=\"text-base leading-relaxed\">There should be no consolidated invoices linked to the subscription.</li>\n<li class=\"text-base leading-relaxed\">No <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note</code> resources with the <a href=\"/docs/api/credit_notes/credit_note-object#status\">statuses</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code> should be associated with the subscription.</li>\n<li class=\"text-base leading-relaxed\">With muti business entity (MBE) enabled on your site, moving a subscription to a customer belonging to another business entity is not allowed.</li>\n</ul><h4>Asynchronous operation</h4><p class=\"mb-2\">If the above prerequisites are met, the API call returns a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">200 OK</code> response containing the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource as is. However, the actual move operation can take up to <strong class=\"font-semibold\">five</strong> minutes to complete.</p><p class=\"mb-2\">To know whether the operation was successful, we recommend that you watch for the <code><a href=\"/docs/api/events\">subscription_changed</a></code> event and see if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.customer_id</code> has changed.</p><h4>Limitations</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Subscriptions cannot be moved on the same calendar day as their renewal. For instance, if a renewal is scheduled for 2 PM on April 10, 2024, the endpoint is restricted from 12 AM on April 10, 2024, until the renewal is completed.</li>\n<li class=\"text-base leading-relaxed\">After moving a subscription, the change does not reflect in Chargebee Billing&#x27;s <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html\" target=\"_blank\">accounting integrations</a> or in <a href=\"https://www.chargebee.com/docs/revrec/chargebee-billing-features.html\" target=\"_blank\">Chargebee RevRec</a>.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nResources linked to the original customer such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charge</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code>\nbut <strong class=\"font-semibold\">not</strong>\nlinked to the subscription being moved, are <strong class=\"font-semibold\">not</strong>\nmoved to the destination customer by this operation.</p></div></div>",
        "operationId" : "move_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "to_customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the unique ID of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource to which the subscription will be moved.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf there are <a href=\"/docs/api/advanced-features\">multiple business entities</a>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.business_entity_id</code>\nof the destination customer must match the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.business_entity_id</code>.</p></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "copy_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>:</strong>\nIf the subscription has an <a href=\"/docs/api/subscriptions/subscription-object#payment_source_id\">associated <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code></a>:</p>\n<ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A new duplicate copy of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> resource is created.</li>\n<li class=\"text-base leading-relaxed\">This new copy of the payment source is linked to the subscription and the destination customer.</li>\n</ol>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nDeleting any copy of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code>\nalso deletes the other copies and the details stored at the payment gateway.</p></div>\n<p class=\"mb-2\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>:</strong>\nNo new payment source is created for the subscription. Moreover, if a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> is already <a href=\"/docs/api/subscriptions/subscription-object#payment_source_id\">linked</a> to the subscription, it gets removed, meaning the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.payment_source_id</code> is cleared.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>:\nWhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">copy_payment_source</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nand if <code><a href=\"/docs/api/subscriptions/create-subscription-for-items#auto_collection\">subscription.auto_collection</a></code>\nis enabled, auto-collection will fail, in turn preventing subscription renewal. To prevent auto-collection failure, <a href=\"/docs/api/subscriptions/override-billing-profile\">link a payment source</a>\nto the subscription after this operation.</p></div>",
                    "example" : null
                  }
                },
                "required" : [ "to_customer_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    }
                  },
                  "required" : [ "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/import_for_items" : {
      "post" : {
        "summary" : "Import subscription for Items",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Imports a <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> for an existing <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a>.</p><p class=\"mb-2\">Use this operation when migrating subscriptions from another billing system.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><p class=\"mb-2\">If you are calling this operation on your live site, ensure you have <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">requested Support</a> to enable it; otherwise the API may return an &quot;API not enabled&quot; error.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><p class=\"mb-2\">A subscription is created for the customer with the details provided in the request.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice and payment</p></strong><div class=\"impact-description\"><p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_current_term_invoice</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, an invoice is created for the current term.</p></div></div></div>",
        "operationId" : "import_subscription_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "exhausted_coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the IDs of <a href=\"/docs/api/coupons\">coupons</a>\nto be marked as exhausted. This parameter accepts a list of IDs, which must correspond to coupons with a <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">duration_type</a></code>\nof <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>.\nEnsure that the IDs included in this parameter do not match any IDs provided in the <code><a href=\"/docs/api/subscriptions/import-subscription-for-items#coupon_ids\">coupon_ids</a></code>\nparameter.</p>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "trial_end" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">End of the trial period for the subscription. This overrides the trial period set for the plan-item. The value must be later than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\nSet it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nto have no trial period.</p>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Defines <a href=\"https://www.chargebee.com/docs/net_d.html\" target=\"_blank\">Net D</a>\nfor the subscription. Net D is the number of days within which any invoice raised for the subscription must be paid.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If a value is provided: Net D is set explicitly for the subscription to the value provided. The value must be one among those defined in the <a href=\"https://www.chargebee.com/docs/net_d.html#enable-net-d-for-chargebee-invoices\" target=\"_blank\">site configuration</a>.</li>\n<li class=\"text-base leading-relaxed\">If not provided: The attribute is not set and therefore not returned by the API. In this case, when an invoice is raised - whether now or later - the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">net_term_days</code> defined at the <a href=\"/docs/api/customers/customer-object#net_term_days\">customer level</a> is considered.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "start_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date/time at which the subscription is to start or has started. If not provided, the subscription starts immediately.\n",
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  },
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase order number for this subscription.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or [coupon codes](/docs/api/coupon_codes)\n.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Id of the payment source to be attached to this subscription.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Current state of the subscription.\n\\* future -\n\nThe subscription is scheduled to start at a future date.\n\\* active -\n\nThe subscription is active and will be charged for automatically based on the items in it.\n\\* cancelled -\n\nThe subscription has been canceled and is no longer in service.\n\\* transferred -\n\nThe subscription has been transferred to another business entity within the organization.\n\\* in_trial -\n\nThe subscription is in trial.\n\\* non_renewing -\n\nThe subscription will be canceled at the end of the current term.\n\\* paused -\n\nThe subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html).\nThe subscription will not renew while in this state.\n",
                    "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                    "example" : null
                  },
                  "current_term_end" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">End of the current billing term. Subscription is renewed immediately after this. If not given, this will be calculated based on plan billing cycle.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">For subscription status: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code> is required.</p></div>",
                    "example" : null
                  },
                  "current_term_start" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Start of the current billing period of the subscription. This is required when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>\n, it defaults to the current time.</p>",
                    "example" : null
                  },
                  "trial_start" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Start of the trial period for the subscription. When not passed, it is assumed to be current time. When passed for a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscription, it implies that the subscription goes into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\nwhen it starts.</p>",
                    "example" : null
                  },
                  "cancelled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Time at which subscription was cancelled or is set to be cancelled.\n",
                    "example" : null
                  },
                  "started_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Time at which the subscription was started. Is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nfor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscriptions as it is yet to be started.</p>",
                    "example" : null
                  },
                  "activated_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time at which the subscription was activated. A subscription is &quot;activated&quot; when its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes from any other, to either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">activated_at</code> must be on or after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">started_at</code>. Additionally, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">activated_at</code> must be on or before <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">activated_at</code> must precede <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_start</code>.</li>\n<li class=\"text-base leading-relaxed\">This parameter should not be provided when passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "pause_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When a pause has been scheduled, it is the date/time of scheduled pause. When the subscription is in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>\nstate, it is the date/time when the subscription was paused.</p>",
                    "example" : null
                  },
                  "resume_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "For a paused subscription, it is the date/time when the subscription is scheduled to resume. If the pause is for an indefinite period, this value is not returned.\n",
                    "example" : null
                  },
                  "contract_term_billing_cycle_on_renewal" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                    "maximum" : 100,
                    "minimum" : 1,
                    "example" : null
                  },
                  "create_current_term_invoice" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nif you want an invoice to be created for the subscription.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice will be created for the subscription only if it has an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> status.</li>\n<li class=\"text-base leading-relaxed\">The period of the invoice is from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice will not be generated if the subscription amount is zero dollars (for that period) and &#x27;Hide Zero Value Line Items&#x27; option is enabled in site settings.</li>\n<li class=\"text-base leading-relaxed\">You may pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code> details to record an offline payment against that invoice.</li>\n</ul>",
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this subscription. This note is one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A set of key-value pairs stored as additional information for the subscription. \\[Learn more\\](/docs/api/subscriptions) .\n",
                    "example" : null
                  },
                  "cancel_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Subscriptions \\> Subscription Cancellation**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "create_pending_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether the invoices for this subscription are generated with a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>. This attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> automatically when the subscription has item prices that belong to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items.\nYou can also set this to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> explicitly using the <a href=\"/docs/api/subscriptions/create-subscription-for-items#create_pending_invoices\">create</a>/<a href=\"/docs/api/subscriptions/update-subscription-for-items#create_pending_invoices\">update</a> subscription operations. This is useful in the following scenarios:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When tracking usages and calculating usage-based charges on your end. You can then add them to the subscription as a <a href=\"https://www.chargebee.com/docs/charges.html\" target=\"_blank\">one-time charge</a> at the end of the billing term.</li>\n<li class=\"text-base leading-relaxed\">When you need to inspect all charges before closing invoices for this subscription.\nApplicable only when <a href=\"https://www.chargebee.com/docs/metered_billing.html\" target=\"_blank\">Metered Billing</a> is enabled for the site\n.</li>\n</ul>",
                    "example" : null
                  },
                  "auto_close_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto override for this subscription, the <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">site-level setting</a>\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute has a higher precedence than the same attribute at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>\n.</p>",
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Id that uniquely identifies the contract term in the site.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "created_at" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "The date when the contract term was created.\n",
                        "example" : null
                      },
                      "contract_start" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "The start date of the contract term\n",
                        "example" : null
                      },
                      "billing_cycle" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The number of billing cycles of the subscription that the contract term is for.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "total_amount_raised" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The amount raised for the contract term till the time of importing the subscription. This amount is added to the <code><a href=\"/docs/api/contract_terms/contract_term-object#total_contract_value\">total_contract_value</a></code></p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "total_amount_raised_before_tax" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The amount raised for the contract term till the time of importing the subscription excluding tax. This amount is added to the <code><a href=\"/docs/api/contract_terms/contract_term-object#total_contract_value\">total_contract_value_before_tax</a></code></p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "transaction" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transaction\n",
                    "properties" : {
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment transaction amount.</p>\n<div class=\"alert alert-info\"><p><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This parameter should be passed only if <a href=\"/docs/api/subscriptions/import-subscription-for-items#create_current_term_invoice\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_current_term_invoice</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The payment method of this transaction. This parameter should be passed only if the invoice is created for the current term.\n\\* cash -\n\nCash\n\\* custom -\n\nCustom\n\\* check -\n\nCheck\n\\* bank_transfer -\n\nBank Transfer\n\\* other -\n\nPayment methods other than the named types above.\n",
                        "enum" : [ "cash", "check", "bank_transfer", "other", "custom" ],
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The reference number for this transaction. For example, check number when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">check</code>.</p>\n<div class=\"alert alert-info\"><p><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This parameter should be passed only if <a href=\"/docs/api/subscriptions/import-subscription-for-items#create_current_term_invoice\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_current_term_invoice</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date of occurrence of the transaction.</p>\n<div class=\"alert alert-info\"><p><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This parameter should be passed only if <a href=\"/docs/api/subscriptions/import-subscription-for-items#create_current_term_invoice\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_current_term_invoice</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the [item price](/docs/api/item_prices) in Chargebee. At least one entry is required to import the subscription.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\" class=\"text-blue-600 hover:text-blue-800 underline\">the value set</a> for the item price is used.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The item price <a href=\"/docs/api/item_prices/item-price-object#pricing_model\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> is enabled for the site.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\" class=\"text-blue-600 hover:text-blue-800 underline\">id of the item price</a> in the subscription to which the discount is to be applied.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p>Note</p>\nThis parameter is relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p></div>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  },
                  "charged_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for charged_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Identifier of the <a href=\"/docs/api/item_prices\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code> item price</a> that was already charged for this subscription.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "last_charged_at" : {
                        "type" : "array",
                        "description" : "Timestamp when this charge item price was last charged for this subscription in the source system.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/subscriptions)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "status" ],
                "example" : null
              },
              "encoding" : {
                "charged_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "transaction" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/retrieve_advance_invoice_schedule" : {
      "get" : {
        "summary" : "Retrieve advance invoice",
        "description" : "**Caution**\n\n* This API will return an error when [multi-frequency billing](/docs/api/subscriptions#subscription-billing-frequencies) is enabled.\n\nRetrieves the *advance_invoice_schedule* for a subscription. Note that this endpoint is only applicable for *schedule_type = specific_dates* or fixed_intervals.\n",
        "operationId" : "retrieve_advance_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "advance_invoice_schedules" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing advance_invoice_schedule</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/AdvanceInvoiceSchedule",
                        "description" : "Resource object representing advance_invoice_schedule"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "advance_invoice_schedules" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/remove_scheduled_cancellation" : {
      "post" : {
        "summary" : "Remove scheduled cancellation",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Removes a scheduled cancellation from a subscription so that it continues billing for the specified number of billing cycles.\nUse this operation when a customer changes their mind about canceling their subscription.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There must be a cancellation scheduled for the subscription.</li>\n<li class=\"text-base leading-relaxed\">Do not invoke this API if the subscription has a <a href=\"subscriptions#subscription_contract_term\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term</code></a> associated with it.</li>\n<li class=\"text-base leading-relaxed\">The subscription must not be a <a href=\"gifts\" class=\"text-blue-600 hover:text-blue-800 underline\">gift subscription</a>.</li>\n<li class=\"text-base leading-relaxed\">The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The scheduled cancellation is removed.</li>\n<li class=\"text-base leading-relaxed\">If the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, it does not change.</li>\n<li class=\"text-base leading-relaxed\">If the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, it becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"subscriptions#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.remaining_billing_cycles</code></a> is set to the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term</code> is provided, then a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term</code> is created on the subscription.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, perform the following checks:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Check the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled_at</code> attribute. It must be set to a future date-time, indicating that a cancellation is scheduled.</li>\n<li class=\"text-base leading-relaxed\">Ensure that the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term</code> attribute is not present.</li>\n<li class=\"text-base leading-relaxed\">Confirm that the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/subscriptions?prod_cat_ver=2#cancel_subscription_for_items\"><p class=\"mb-2\">Cancel a subscription</p></a><a href=\"/docs/api/subscriptions?prod_cat_ver=2#pause_a_subscription\"><p class=\"mb-2\">Pause a subscription</p></a></div>",
        "operationId" : "remove_scheduled_cancellation",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of billing cycles the subscription should remain active for after the current billing cycle. The <a href=\"subscriptions#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> attribute of the subscription is updated to this value.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value must be greater than 0.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default Value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If not specified, the value set for <a href=\"item_prices#item_price_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code></a> on the subscription&#x27;s plan item price is used.</li>\n</ul></div>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "contract_term_billing_cycle_on_renewal" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                    "maximum" : 100,
                    "minimum" : 1,
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/retrieve_with_scheduled_changes" : {
      "get" : {
        "summary" : "Retrieve with scheduled changes",
        "description" : "<div class=\"api-description\"><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nIf the <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ramp</code></a>s feature is enabled and there is more than one ramp on a subscription, this API will return the subscription with the upcoming ramp applied.</p></div><p class=\"mb-2\">Retrieves a subscription with the scheduled changes applied.\n<strong class=\"font-semibold\">Note:</strong> Only the following attributes are changed</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">item_id</li>\n<li class=\"text-base leading-relaxed\">item_price_id</li>\n<li class=\"text-base leading-relaxed\">billing_period</li>\n<li class=\"text-base leading-relaxed\">billing_period_unit</li>\n<li class=\"text-base leading-relaxed\">remaining_billing_cycles</li>\n<li class=\"text-base leading-relaxed\">coupons\nOther attributes such as <strong class=\"font-semibold\">status</strong>\n,<strong class=\"font-semibold\">next_billing_at</strong>\nare not changed and will reflect the current subscription values.</li>\n</ul></div>",
        "operationId" : "retrieve_with_scheduled_changes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/reactivate" : {
      "post" : {
        "summary" : "Reactivate a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Reactivates a canceled subscription.</p><p class=\"mb-2\">Use this operation to restore a canceled subscription to an active or in-trial state.</p><h4>Extend non-renewing subscriptions</h4><p class=\"mb-2\">To extend the billing cycles of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> subscription, use the <a href=\"/docs/api/subscriptions/remove-scheduled-cancellation\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove scheduled cancellation API</a>.</p><div id=\"in-term\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#in-term-content\" aria-expanded=\"false\" aria-controls=\"in-term-content\"><h4>In-term reactivation</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"in-term-content\"><p class=\"mb-2\">The subscription&#x27;s current billing term is demarcated by the <a href=\"/docs/api/subscriptions/subscription-object#current_term_start\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code></a> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code> attributes. These attributes are retained even if the subscription is canceled. An &quot;in-term reactivation&quot; happens when the subscription is reactivated on or before <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>.</p></div></div></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><h4>Subscription</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For subscriptions canceled due to payment failure, <a href=\"#in-term\" class=\"text-blue-600 hover:text-blue-800 underline\">in-term reactivation</a> is governed by the Chargebee Billing <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/reactivation#in-term-reactivation\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">configuration for reactivation</a>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Invoice</h4></strong><div class=\"impact-description\"><p class=\"mb-2\">If an invoice gets generated during this operation, customer <a href=\"customers#customer_balances\" class=\"text-blue-600 hover:text-blue-800 underline\">balances</a> such as promotional credits, excess payments, and refundable credits are automatically applied subject to <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#credits-flexibility\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">limits set at the site level</a> which can be overridden for subscriptions via <a href=\"subscriptions#subscription_billing_override\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.billing_override</code></a>.</p></div></div></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> parameter to create a payment source for the customer. If reactivation generates an invoice and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>, Chargebee immediately attempts payment collection using the new payment source.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This works for both <a href=\"https://www.chargebee.com/docs/payments/2.0/others/psd2-sca\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Strong Customer Authentication</a> (SCA) (i.e. 3D-Secure) and non-SCA flows.</li>\n<li class=\"text-base leading-relaxed\">The payment source replaces the existing <a href=\"customers#customer_primary_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">primary payment source</a> for the customer.</li>\n</ul></div><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Create a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> resource by calling the <a href=\"payment_intents#create_a_payment_intent\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a payment intent API</a>.</li>\n<li class=\"text-base leading-relaxed\">Pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> object to your frontend and use Chargebee.js to capture the payment source details from the customer. You can use <a href=\"payment_components\" class=\"text-blue-600 hover:text-blue-800 underline\">Payment Components</a> to capture the payment source details.</li>\n<li class=\"text-base leading-relaxed\">Listen to the <a href=\"events/webhook/payment_intent_updated\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent_updated</code></a> event. Once the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorized</code>, pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.id</code> using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent[id]</code> parameter in this API call.</li>\n</ol></div></div></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/subscriptions?prod_cat_ver=2#remove_scheduled_cancellation\"><p class=\"mb-2\">Remove scheduled cancellation</p></a></div>",
        "operationId" : "reactivate_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "trial_end" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Providing this parameter indicates that the subscription reactivates with an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> status and the trial period ends at the date provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code> if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code> is provided.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code> is backdated, the subscription immediately goes into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> status.</li>\n</ul></div>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of billing cycles (including the current cycle) this subscription should remain active for. After the billing cycles are exhausted, the subscription is canceled automatically.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If not specified, the billing cycles <a href=\"item_prices#item_price_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\">configured for the plan</a> are used.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Impact</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"subscriptions#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> attribute of the subscription is updated to one less than the value of this parameter.</li>\n</ul></div>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "reactivate_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date-time at which the subscription was reactivated. When not provided, the subscription is reactivated immediately on calling this API.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/backdating#configuring-backdated-subscription-actions-and-invoicing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">backdating feature</a> has been enabled for subscription reactivation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is the day of the month by which the accounting for the previous month must be closed.</li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be in the past.</li>\n<li class=\"text-base leading-relaxed\">Must not be more than the billing period of the plan into the past. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code> cannot be earlier than 14th February.</li>\n<li class=\"text-base leading-relaxed\">Must not be after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code> if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code> is provided.</li>\n</ul></div>",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Applicable when calendar billing is enabled and a new *active*\nterm gets started during this operation. Unless specified the configured *default*\nvalue will be used.\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles to <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\">invoice in advance</a>.\nIf a new term is started for the subscription due to this API call, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nis inclusive of this new term. See description for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>\nparameter to learn more about when a subscription term is reset.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date. Moreover, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, and if the site is configured to set invoice dates to the date of closing, then upon invoice closure, this date is changed to the invoice closing date. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code> are computed based on the tax configuration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Current date.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be in the past.</li>\n<li class=\"text-base leading-relaxed\">Must not be more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\">Must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "contract_term_billing_cycle_on_renewal" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of billing cycles the new contract term should run for, on contract renewal. This value is used when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Should not be sent when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term.action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">evergreen</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Defaults to the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycle</code> or a custom value depending on the <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/contract-terms#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site configuration</a>.</li>\n</ul></div>",
                    "maximum" : 100,
                    "minimum" : 1,
                    "example" : null
                  },
                  "payment_initiator" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The initiator of this payment request. Sending this information can improve the success rate of the payment at the gateway.\n\\* customer -\n\nThe payment was initiated by your customer.\n\\* merchant -\n\nThe payment was initiated by you (the merchant).\n",
                    "enum" : [ "customer", "merchant" ],
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for creating a contract term for the subscription. \\*\\*Prerequisites\\*\\* \\* \\[Contract Terms\\](https://www.chargebee.com/docs/contract-terms.html) feature must be enabled for the site.\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code> must be provided when this parameter is sent.</li>\n</ul></div>\n* evergreen - <p class=\"mb-2\">The contract term completes and the subscription continues to renew without a new contract term.</p>\n* renew - <p class=\"mb-2\">The contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_billing_cycle_on_renewal</code>. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</p>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code> during which the customer is barred from canceling the contract term. The customer can cancel the contract term via the <a href=\"https://www.chargebee.com/docs/self-serve-portal.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Self-Serve Portal</a> only before this period. This allows you to have sufficient time for processing the contract term closure.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be less than the duration of the contract term (in days).</li>\n<li class=\"text-base leading-relaxed\">Should not be sent when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">evergreen</code>.</li>\n</ul></div>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "statement_descriptor" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for statement_descriptor\n",
                    "properties" : {
                      "descriptor" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Payment transaction descriptor text to help your customer easily recognize the transaction. When this value is passed this will override the [transaction descriptor](https://www.chargebee.com/docs/2.0/transaction_descriptors.html)\ntext configured in the Chargebee site for all the subscription renewal transactions.\n",
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Identifier for the <a href=\"payment_intents\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code></a> resource. If you provide this parameter, you do not need to pass other <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> parameters.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value of <a href=\"payment_intents#payment_intent_status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.status</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorized</code>.</li>\n</ul></div>",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment method type.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code></li>\n</ul></div>\n* card - <p class=\"mb-2\">card</p>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* dotpay - <p class=\"mb-2\">dotpay</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* upi - <p class=\"mb-2\">upi</p>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* direct_debit - <p class=\"mb-2\">direct_debit</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* bancontact - <p class=\"mb-2\">bancontact</p>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* google_pay - <p class=\"mb-2\">google_pay</p>\n* apple_pay - <p class=\"mb-2\">apple_pay</p>\n* online_banking_poland - <p class=\"mb-2\">Online Banking Poland</p>\n<span featureId=\"cb-online-banking-poland\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* giropay - <p class=\"mb-2\">giropay</p>\n* paypal_express_checkout - <p class=\"mb-2\">paypal_express_checkout</p>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">sofort</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* ideal - <p class=\"mb-2\">ideal</p>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* boleto - <p class=\"mb-2\">boleto</p>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "statement_descriptor" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/charge_future_renewals" : {
      "post" : {
        "summary" : "Charge Future Renewals",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a single <a href=\"/docs/api/invoices/invoice-object#invoice_has_advance_charges\" class=\"text-blue-600 hover:text-blue-800 underline\">advance invoice</a> or an <a href=\"/docs/api/advance_invoice_schedules#advance_invoice_schedule\" class=\"text-blue-600 hover:text-blue-800 underline\">advance invoicing schedule</a> for a <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a>.</p><p class=\"mb-2\">Use this operation to bill future renewals in advance, enabling customers to prepay for upcoming billing cycles.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/advance-invoices\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Advance Invoicing</a> feature must be enabled on the site.</li>\n<li class=\"text-base leading-relaxed\">The subscription <a href=\"/docs/api/subscriptions/subscription-object#subscription_status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</li>\n<li class=\"text-base leading-relaxed\">The subscription must not be scheduled for <a href=\"/docs/api/subscriptions/cancel-subscription-for-items\" class=\"text-blue-600 hover:text-blue-800 underline\">cancellation</a> or <a href=\"/docs/api/subscriptions/pause-a-subscription\" class=\"text-blue-600 hover:text-blue-800 underline\">pause</a> within the terms being invoiced.</li>\n<li class=\"text-base leading-relaxed\">The subscription must have at least one item price belonging to a <a href=\"/docs/api/items/item-object#item_metered\" class=\"text-blue-600 hover:text-blue-800 underline\">non-<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> item</a>.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"https://apidocs.chargebee.com/docs/api/subscriptions?lang=curl#subscription-billing-frequencies\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-Frequency Billing</a> feature must be disabled for the site.</li>\n<li class=\"text-base leading-relaxed\">The subscription must not be a <a href=\"/docs/api/gifts\" class=\"text-blue-600 hover:text-blue-800 underline\">gift</a> subscription. You can check this by <a href=\"/docs/api/gifts/list-gifts\" class=\"text-blue-600 hover:text-blue-800 underline\">listing all gifts</a> setting the filter parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gift_receiver[customer_id][is]</code> to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> of the subscription and checking if one of the returned objects has <a href=\"/docs/api/gifts/gift-object#gift_gift_receiver\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gift_receiver.subscription_id</code></a> matching the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the subscription.</li>\n<li class=\"text-base leading-relaxed\">For subscriptions with <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">ramps</a>, the following constraints apply:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription must not have more than 12 scheduled ramps in the invoicing period specified by this API.</li>\n<li class=\"text-base leading-relaxed\">For the invoicing period specified by this API, the subscription must not have any ramps scheduled for the middle of the subscription term.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">The subscription must not be in its final contract term. i.e. the subscription must not have <a href=\"/docs/api/subscriptions/subscription-object#contract_term\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term.action_at_term_end</code></a> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n<li class=\"text-base leading-relaxed\">The subscription must not have <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/addons-trial\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">addons in trial</a>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\">Subscription</strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription <a href=\"/docs/api/subscriptions/subscription-object#subscription_next_billing_at\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_billing_at</code></a> is updated to reflect the end of the last term being invoiced. If all remaining billing cycles are invoiced, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_billing_at</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>.</li>\n<li class=\"text-base leading-relaxed\">The subscription&#x27;s <a href=\"/docs/api/subscriptions/subscription-object#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> is reduced by the number of terms charged.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\">Invoice</strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediate</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately = true</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">a single <a href=\"/docs/api/invoices/invoice-object#invoice_has_advance_charges\" class=\"text-blue-600 hover:text-blue-800 underline\">advance invoice</a> is created covering the specified number of future billing cycles.</li>\n<li class=\"text-base leading-relaxed\">the invoice includes line items for all non-metered items, applicable coupons, taxes, and credits.</li>\n<li class=\"text-base leading-relaxed\">any changes scheduled in the current term or at the end of the current term for the subscription are automatically taken into account while generating the advance invoice.</li>\n<li class=\"text-base leading-relaxed\">if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code> for the subscription, the payment for the invoice is collected immediately using the <a href=\"/docs/api/subscriptions/subscription-object#subscription_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">payment source</a> associated with the subscription.</li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\">Unbilled Charges</strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediate</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The charges are added to <a href=\"/docs/api/unbilled_charges\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charges</code></a> for the subscription and invoiced on the next renewal.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\">Advance Invoice Schedule</strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_intervals</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">an <a href=\"/docs/api/advance_invoice_schedules\" class=\"text-blue-600 hover:text-blue-800 underline\">advance invoice schedule</a> is created. The schedule defines when advance invoices will be generated in the future.</li>\n<li class=\"text-base leading-relaxed\">any changes scheduled for the subscription are automatically taken into account while generating the advance invoice.</li>\n</ul>\n</li>\n</ul></div></div></div>",
        "operationId" : "charge_future_renewals",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "default" : 1,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of billing cycles to charge, depending on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type = immediate</code>: The number of future billing cycles to be invoiced in advance. The invoicing is done for the <a href=\"/docs/api/subscriptions/subscription-object#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> of the subscription if that is less than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>.</li>\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type = fixed_intervals</code>: The number of future billing cycles in one interval. The schedule is created such that the total number of billing cycles in the schedule does not exceed the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code> of the subscription.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be greater than 0.</li>\n<li class=\"text-base leading-relaxed\">Must not exceed the maximum terms allowed for advance invoicing (configured in <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/advance-invoices\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site settings</a>).</li>\n<li class=\"text-base leading-relaxed\">The value must not exceed the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code> of the subscription.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></li>\n</ul></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Whether the charge should be invoiced immediately or added to <a href=\"/docs/api/unbilled_charges\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charges</code></a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code> for the subscription, there must be a valid and active online <a href=\"/docs/api/payment_sources\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code></a> associated with the <a href=\"/docs/api/subscriptions/subscription-object#subscription_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> or the customer.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediate</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></li>\n</ul></div>",
                    "example" : null
                  },
                  "schedule_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The type of advance invoice or advance invoicing schedule.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediate</code></li>\n</ul></div>\n* immediate - <p class=\"mb-2\">Bill immediately for the number of billing cycles specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There must not be an existing advance invoice or an advance invoice schedule for the subscription.</li>\n</ul></div>\n* specific_dates - <p class=\"mb-2\">Invoice on specific dates.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There should not be an existing advance invoice schedule of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> =  <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_intervals</code> for the subscription.</li>\n<li class=\"text-base leading-relaxed\">The total number of advance invoice schedules (existing and new ones scheduled through this API) of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> =  <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code> must not exceed 5.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When this option is selected, you must provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates_schedule[date]</code>.</li>\n</ul></div>\n* fixed_intervals - <p class=\"mb-2\">Invoice at fixed intervals of time.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There should not be any existing advance invoice schedule for the subscription.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When this option is selected, you must provide the following parameters:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[days_before_renewal]</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code></li>\n</ul>\n</li>\n</ul></div>",
                    "enum" : [ "immediate", "specific_dates", "fixed_intervals" ],
                    "example" : null
                  },
                  "fixed_interval_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for fixed_interval_schedule.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_intervals</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraint</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There must be exactly one element in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule</code> array.</li>\n</ul></div>",
                    "properties" : {
                      "number_of_occurrences" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of advance invoices to generate.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">after_number_of_intervals</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Impact</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The schedule is created such that the total number of billing cycles in the schedule does not exceed the <a href=\"/docs/api/subscriptions/subscription-object#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> of the subscription.</li>\n</ul></div>",
                        "minimum" : 1,
                        "example" : null
                      },
                      "days_before_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before each interval that advance invoices are generated.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For weekly billing periods: Must be less than or equal to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> days.</li>\n<li class=\"text-base leading-relaxed\">For monthly billing periods: Must be less than or equal to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">25</code> days for 1-month periods.</li>\n<li class=\"text-base leading-relaxed\">For yearly billing periods: Must be less than or equal to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">363</code> days.</li>\n<li class=\"text-base leading-relaxed\">For daily billing periods: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">days_before_renewal</code> should not be provided.</li>\n</ul></div>",
                        "minimum" : 1,
                        "example" : null
                      },
                      "end_schedule_on" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies when the advance invoicing schedule ends.</p>\n* after_number_of_intervals - <p class=\"mb-2\">Advance invoices are generated a specified number of times.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraint</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">You must provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[number_of_occurrences]</code>.</li>\n</ul></div>\n* subscription_end - <p class=\"mb-2\">Advance invoices are generated for as long as the subscription is active.</p>\n* specific_date - <p class=\"mb-2\">The advance invoicing schedule ends on a specific date.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraint</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">You must provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_date]</code>.</li>\n</ul></div>",
                        "enum" : [ "after_number_of_intervals", "specific_date", "subscription_end" ],
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date when the advance invoicing schedule ends. Advance invoices are not generated beyond this date.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code> must be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be a future date.</li>\n<li class=\"text-base leading-relaxed\">Must be at least 1 day before the start of the last billing cycle of the subscription.</li>\n<li class=\"text-base leading-relaxed\">Must be within 5 years from the current date.</li>\n</ul></div>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "specific_dates_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for specific_dates_schedule.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The total number of schedules on the subscription (existing and new ones scheduled through this API) must not exceed 5.</li>\n</ul></div>",
                    "properties" : {
                      "terms_to_charge" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The number of billing cycles to charge for on the specified date.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be greater than 0.</li>\n<li class=\"text-base leading-relaxed\">Must not exceed the maximum terms allowed for advance invoicing (configured in <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/advance-invoices\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site settings</a>).</li>\n<li class=\"text-base leading-relaxed\">The total number of billing cycles across all schedules must not exceed the <a href=\"/docs/api/subscriptions/subscription-object#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> of the subscription.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The date on which the advance invoice should be generated. This is the scheduled date for generating the invoice for the specified number of billing cycles.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be before the start of the billing period(s) that will be invoiced.</li>\n<li class=\"text-base leading-relaxed\">Must be a future date within 5 years from the current date.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "fixed_interval_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "specific_dates_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "advance_invoice_schedules" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing advance_invoice_schedule</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/AdvanceInvoiceSchedule",
                        "description" : "Resource object representing advance_invoice_schedule"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/add_charge_at_term_end" : {
      "post" : {
        "summary" : "Add charge at term end",
        "description" : "Adds a one time charge to the subscription which will be added to the invoice generated at the end of the current term. If there are any applicable coupons in the subscription, an appropriate discount will be applied.\n\nTo collect a charge immediately, [use this API](/docs/api/v2/pcv-1/invoices/create-invoice-for-a-one-time-charge).  \nIf any subscription changes happen before the end of the current term, these charges will be collected along with it.\n",
        "operationId" : "add_charge_at_term_end",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Description for this charge.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "amount_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The decimal representation of the amount for the [one-time charge](https://www.chargebee.com/docs/charges.html#one-time-charges ).\nProvide the value in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                    "maxLength" : 39,
                    "example" : null
                  },
                  "avalara_sale_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* retail -\n\nTransaction is a sale to an end user\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n",
                    "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                    "example" : null
                  },
                  "avalara_transaction_type" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "example" : null
                  },
                  "avalara_service_type" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "example" : null
                  },
                  "date_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time when the service period for the charge starts.\n",
                    "example" : null
                  },
                  "date_to" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time when the service period for the charge ends.\n",
                    "example" : null
                  }
                },
                "required" : [ "description" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/remove_scheduled_changes" : {
      "post" : {
        "summary" : "Remove scheduled changes",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Removes a scheduled change from a subscription.</p><div class=\"alert alert-info\"><h5>Review the changes before removing them</h5><p class=\"mb-2\">To review the scheduled subscription change before removing it, call <a href=\"/docs/api/subscriptions/retrieve-with-scheduled-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Retrieve with scheduled changes</a> <strong class=\"font-semibold\">before</strong> calling this API to retrieve the subscription resource with the scheduled change applied.</p></div></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription&#x27;s <a href=\"/docs/api/subscriptions/subscription-object#has_scheduled_changes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">has_scheduled_changes</code></a> attribute is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\">The subscription has exactly <strong class=\"font-semibold\">one</strong> scheduled change. If multiple <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">ramps</a> exist, the API returns an error.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Removes the scheduled change.</li>\n<li class=\"text-base leading-relaxed\">Clears <a href=\"/docs/api/subscriptions/subscription-object#changes_scheduled_at\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code></a>, if set.</li>\n<li class=\"text-base leading-relaxed\">Sets <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">has_scheduled_changes</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If any <a href=\"/docs/api/invoices/invoice-object#has_advance_charges\" class=\"text-blue-600 hover:text-blue-800 underline\">advance invoices</a> account for the scheduled change, Chargebee creates <a href=\"/docs/api/credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\">credit notes</a> against those invoices.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit Notes</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Creates the following credit notes against any advance invoices that account for the scheduled change:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>: for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_to_collect</code> on the advance invoice.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>: for the refundable amount on the advance invoice.</li>\n</ul>\n</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before you call this API, confirm the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">has_scheduled_changes</code> attribute is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\">Exactly one scheduled change exists. To verify, call <a href=\"/docs/api/ramps/list-ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">List ramps</a> and filter by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>. The response must include exactly one <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ramp</code> object.</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/subscriptions?prod_cat_ver=2#retrieve_with_scheduled_changes\"><p class=\"mb-2\">Retrieve with scheduled changes</p></a><a href=\"/docs/api/ramps?prod_cat_ver=2#list_ramps\"><p class=\"mb-2\">List ramps</p></a></div>",
        "operationId" : "remove_scheduled_changes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "credit_notes" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/CreditNote",
                        "description" : "Resource object representing credit_note"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/change_term_end" : {
      "post" : {
        "summary" : "Change term end",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Use this endpoint to adjust when a subscription&#x27;s current term or trial ends without altering the plan or billing frequency. It is helpful when you need to align renewals to a specific calendar date or extend a trial. Future renewals will follow the new date, keeping the subscription cadence intact.</p></div>\n\n\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><p class=\"mb-2\">Subscriptions must be in one of the following <a href=\"/docs/api/subscriptions/subscription-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> values: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Based on the subscription&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, the following updates are made:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code> is set to the new date.</li>\n<li class=\"text-base leading-relaxed\">If the status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code> is set to the new date.</li>\n<li class=\"text-base leading-relaxed\">If the status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>, the upcoming cancellation date is set to the new date.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices and Credit Notes</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The API can generate unbilled charges, invoice, or credit notes. You can control the behaviour using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> parameters.\nTo preview invoices, credits, and dates, use the <a href=\"/docs/api/estimates/subscription-change-term-end-estimate\" class=\"text-blue-600 hover:text-blue-800 underline\">Change term end estimate</a> endpoint.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Advance Charges</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If there are advance charges, then credit notes are issued for the unused portion of the service period.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Scheduled Pause</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the subscription is <strong class=\"font-semibold\">scheduled</strong> to <strong class=\"font-semibold\">pause</strong> at the end of the current term, the pause date is updated to match the new term end date.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Ramps</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription ramps</a> are present, this operation moves them to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code> state. Update and reschedule the ramps as needed to keep them in sync.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">The request fails with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invalid_state</code> if the subscription is <strong class=\"font-semibold\">not</strong> in one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> states. Validate the status before invoking this API.</p></div>",
        "operationId" : "change_term_end",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "term_ends_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time at which the current term should end for this subscription. The value must be a date in the future, i.e. later than current time. The value must not be the same as <code><a href=\"/docs/api/subscriptions/subscription-object#next_billing_at\">next_billing_at</a></code>\n.</p>",
                    "example" : null
                  },
                  "prorate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Applicable for *active*\n/ *non_renewing*\nsubscriptions. If specified as *true*\nprorated charges / credits will be added during this operation.\n",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  }
                },
                "required" : [ "term_ends_at" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    },
                    "credit_notes" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/CreditNote",
                        "description" : "Resource object representing credit_note"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/delete" : {
      "post" : {
        "summary" : "Delete a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes a specified subscription.</p><p class=\"mb-2\">This operation schedules the subscription resource for deletion, and it is <strong class=\"font-semibold\">permanently</strong> deleted after a few minutes.\nIf you wish to retain the subscription data but stop further renewals, consider <a href=\"/docs/api/subscriptions/cancel-subscription-for-items\" class=\"text-blue-600 hover:text-blue-800 underline\">canceling</a> or <a href=\"/docs/api/subscriptions/pause-a-subscription\" class=\"text-blue-600 hover:text-blue-800 underline\">pausing</a> the subscription instead.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There must not be any <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">invoices</a> belonging to this subscription that have allocations from <a href=\"/docs/api/credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\">credit notes</a> <strong class=\"font-semibold\">not</strong> belonging to this subscription.</li>\n<li class=\"text-base leading-relaxed\">There must not be any credit notes belonging to this subscription that have been allocated to invoices <strong class=\"font-semibold\">not</strong> belonging to this subscription.</li>\n<li class=\"text-base leading-relaxed\">There should not be any consolidated invoices for the <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> with lines belonging to this subscription.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">All the invoices belonging to the subscription are deleted.</li>\n<li class=\"text-base leading-relaxed\">See <a href=\"/docs/api/invoices/delete-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Delete an invoice API</a> for more details on the impacts of deleting an invoice.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit notes</p></strong><div class=\"impact-description\"><p class=\"mb-2\">All the credit notes belonging to this subscription are deleted.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transactions</p></strong><div class=\"impact-description\"><p class=\"mb-2\">All the <a href=\"/docs/api/transactions\" class=\"text-blue-600 hover:text-blue-800 underline\">transactions</a> belonging to this subscription are deleted.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Usages</p></strong><div class=\"impact-description\"><p class=\"mb-2\">All <a href=\"/docs/api/usages\" class=\"text-blue-600 hover:text-blue-800 underline\">usages</a> belonging to this subscription are deleted.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Usage events</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Deleting a subscription does <strong class=\"font-semibold\">not</strong> delete the associated <a href=\"/docs/api/usage_events\" class=\"text-blue-600 hover:text-blue-800 underline\">usage events</a>.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Reporting</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The numbers in the following <a href=\"https://www.chargebee.com/docs/billing/2.0/reports-and-analytics/metric_description\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">reports</a> are modified when a subscription is deleted: Payments, New Revenue, Signups, Activations, Cancellations, and Refunds.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Integrations</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Deleting a subscription may affect any <a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/sales-integration-index\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">third-party integrations</a> you may have with Chargebee Billing. Review all integrations to assess the impact before proceeding.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before deleting a subscription, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Retrieve all the invoices for this subscription using the <a href=\"/docs/api/invoices/list-invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">List invoices API</a>. For each invoice, look up all the applied credit notes (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.applied_credits.cn_id</code>). For all such credit notes, check if the associated subscription (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.subscription_id</code>) is this subscription. If not, use the <a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove credit note from an invoice API</a> to remove the credit note allocation.</li>\n<li class=\"text-base leading-relaxed\">Retrieve all the credit notes for this subscription using the <a href=\"/docs/api/credit_notes/list-credit-notes\" class=\"text-blue-600 hover:text-blue-800 underline\">List credit notes API</a>. For each credit note, look up all the invoice allocations (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.allocations.invoice_id</code>). For all such invoices, check if the associated subscription (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.subscription_id</code>) is this subscription. If not, use the <a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove credit note from an invoice API</a> to remove the allocation.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/delete-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Delete</a> any consolidated invoices containing lines belonging to this subscription.</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/subscriptions?prod_cat_ver=2#pause_a_subscription\"><p class=\"mb-2\">Pause a subscription</p></a><a href=\"/docs/api/subscriptions?prod_cat_ver=2#cancel_subscription_for_items\"><p class=\"mb-2\">Cancel a subscription</p></a></div>",
        "operationId" : "delete_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/subscription_for_items" : {
      "post" : {
        "summary" : "Create subscription for Items",
        "description" : "<div class=\"api-description\"><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis endpoint optionally supports 3DS. To use it <a href=\"/docs/api/payment_intents/create-a-payment-intent\">create</a>\na <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code>\nand provide it via this endpoint.</p></div><p class=\"mb-2\">Creates a new subscription for an existing customer in Chargebee. Any available <a href=\"/docs/api/customers/customer-object#balances\">credits and excess payments</a> for the customer are automatically applied on the invoice.</p></div>",
        "operationId" : "create_subscription_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/advanced-features\">business entity</a> this subscription should be <a href=\"/docs/api/advanced-features\">linked</a> to. Applicable only when multiple business entities have been created for the site. This must be the same as the business entity of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{customer_id}</code> for the operation to be successful.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">An alternative way of passing this parameter is by means of a <a href=\"/docs/api/advanced-features\">custom HTTP header</a>.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "trial_end" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">End of the trial period for the subscription. This overrides the trial period set for the plan-item. The value must be later than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\nSet it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nto have no trial period.</p>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the number of billing cycles for the subscription. The behavior of the subscription after the billing cycles have completed depends on whether the subscription is on a <a href=\"/docs/api/contract_terms\">contract term</a> or not.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the subscription is not on a contract term: if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code> is not provided, then the billing cycles <a href=\"/docs/api/item_prices/item_price-object#billing_cycles\">set for the plan-item price</a> is used. Moreover, once the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code> have completed, the subscription cancels.</li>\n<li class=\"text-base leading-relaxed\">When the subscription is on a contract term: Providing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code> is mandatory. Moreover, once the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code> have completed, the behavior of the subscription is determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term[action_at_term_end]</code> parameter.</li>\n</ul>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Defines <a href=\"https://www.chargebee.com/docs/net_d.html\" target=\"_blank\">Net D</a>\nfor the subscription. Net D is the number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If a value is provided: Net D is set explicitly for the subscription to the value provided. The value must be one among those defined in the <a href=\"https://www.chargebee.com/docs/net_d.html#enable-net-d-for-chargebee-invoices\" target=\"_blank\">site configuration</a>.</li>\n<li class=\"text-base leading-relaxed\">If not provided: The attribute is not set and therefore not returned by the API. In this case, when an invoice is raised - whether now or later - the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">net_term_days</code> defined at the <a href=\"/docs/api/customers/customer-object#net_term_days\">customer level</a> is considered.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "start_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date/time at which the subscription is to start. If not provided, the subscription starts immediately. You can provide a value in the past as well. This is called backdating the subscription creation and is done when the subscription has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating is enabled for subscription creation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past, where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> cannot be earlier than 14th February.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of subscription billing cycles (including the first one) to [invoice in advance](https://www.chargebee.com/docs/advance-invoices.html)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nfor Calendar Billing. Only applicable when using Calendar Billing. The default value is that which has been configured for the site.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "offline_payment_method" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The preferred offline payment method for the subscription.\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* sepa_credit -\n\nSEPA Credit\n\\* cash -\n\nCash\n\\* no_preference -\n\nNo Preference\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* custom -\n\nCustom\n\\* bank_transfer -\n\nBank Transfer\n\\* boleto -\n\nBoleto\n\\* check -\n\nCheck\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n",
                    "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                    "example" : null
                  },
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase order number for this subscription.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Id of the payment source to be attached to this subscription.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "override_relationship" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, ignores the <a href=\"/docs/api/customers/customer-object#relationship\">hierarchy relationship</a>\nand uses customer as payment and invoice owner.</p>",
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this subscription. This note is one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. The default value is the current date. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date. Moreover, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, and if the site is configured to set invoice dates to the date of closing, then upon invoice closure, this date is changed to the invoice closing date. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the tax configuration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.\nWhen passing this parameter, the following prerequisites must be met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> must be in the past.</li>\n<li class=\"text-base leading-relaxed\">It is not earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.</li>\n<li class=\"text-base leading-relaxed\">It is not more than one calendar month into the past. Eg. If today is 13th January, then you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> is true.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the subscription. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "free_period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The period of time by which the first term of the subscription is extended free of charge. The value is expressed in the time unit specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code>. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code> adds 3 free months to the first term of the subscription.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "free_period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time unit for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Constraints</strong></p>\nMust be equal to or lower than the <a href=\"/docs/api/item_prices#period_unit\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code></a> of the plan <a href=\"/docs/api/subscriptions/create-subscription-for-items#subscription_items_item_price_id\" class=\"text-blue-600 hover:text-blue-800 underline\">item price</a> of the subscription.</p></div>\n* week - <p class=\"mb-2\">Charge based on week(s)</p>\n* month - <p class=\"mb-2\">Charge based on month(s)</p>\n* day - <p class=\"mb-2\">Charge based on day(s)</p>\n* year - <p class=\"mb-2\">Charge based on year(s)</p>",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "contract_term_billing_cycle_on_renewal" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                    "maximum" : 100,
                    "minimum" : 1,
                    "example" : null
                  },
                  "create_pending_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether the invoices for this subscription are generated with a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>. This attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> automatically when the subscription has item prices that belong to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items.\nYou can also set this to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> explicitly using the <a href=\"/docs/api/subscriptions/create-subscription-for-items#create_pending_invoices\">create</a>/<a href=\"/docs/api/subscriptions/update-subscription-for-items#create_pending_invoices\">update</a> subscription operations. This is useful in the following scenarios:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When tracking usages and calculating usage-based charges on your end. You can then add them to the subscription as a <a href=\"https://www.chargebee.com/docs/charges.html\" target=\"_blank\">one-time charge</a> at the end of the billing term.</li>\n<li class=\"text-base leading-relaxed\">When you need to inspect all charges before closing invoices for this subscription.\nApplicable only when <a href=\"https://www.chargebee.com/docs/metered_billing.html\" target=\"_blank\">Metered Billing</a> is enabled for the site\n.</li>\n</ul>",
                    "example" : null
                  },
                  "auto_close_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto override for this subscription, the <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">site-level setting</a>\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute has a higher precedence than the same attribute at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>\n.</p>",
                    "example" : null
                  },
                  "first_invoice_pending" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If you want to bill the usages from the previous billing cycle, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>. This is useful if the subscription has moved from another system into Chargebee and you haven&#x27;t closed the previous cycle&#x27;s invoice yet. This creates a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> invoice immediately on subscription creation, to which you can <a href=\"/docs/api/usages/create-a-usage\">add usages</a> for the previous cycle.\nIf any non-<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items are present for the current term, they&#x27;re also added to this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> invoice. As with all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> invoices, this invoice is also <a href=\"https://www.chargebee.com/docs/metered_billing.html#configuring-metered-billing\" target=\"_blank\">closed automatically</a> or via an <a href=\"/docs/api/invoices/close-a-pending-invoice\">API call</a>. This parameter can be passed only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n.</p>",
                    "example" : null
                  },
                  "trial_end_action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.\n\\* cancel_subscription -\n\nThe subscription cancels.\n\\* activate_subscription -\n\nThe subscription activates and charges are raised for non-metered items.\n\\* plan_default -\n\nThe action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n\\* site_default -\n\nThis is the default value. The action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n",
                    "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
                    "example" : null
                  },
                  "payment_initiator" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of initiator to be used for the payment request triggered by this operation.\n\\* customer -\n\nPass this value to indicate that the request is initiated by the customer\n\\* merchant -\n\nPass this value to indicate that the request is initiated by the merchant\n",
                    "enum" : [ "customer", "merchant" ],
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "statement_descriptor" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for statement_descriptor\n",
                    "properties" : {
                      "descriptor" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Payment transaction descriptor text to help your customer easily recognize the transaction. When this value is passed this will override the [transaction descriptor](https://www.chargebee.com/docs/2.0/transaction_descriptors.html)\ntext configured in the Chargebee site for all the subscription renewal transactions.\n",
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n\\* card -\n\ncard\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* dotpay -\n\ndotpay\n\\* faster_payments -\n\nFaster Payments\n\\* upi -\n\nupi\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* payme -\n\nPayments made via PayMe\n\\* go_pay -\n\nPayments made via GoPay\n\\* google_pay -\n\ngoogle_pay\n\\* trustly -\n\nTrustly\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* venmo -\n\nVenmo\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* alipay -\n\nPayments made via Alipay.\n\\* ideal -\n\nideal\n\\* pay_to -\n\nPayTo\n\\* boleto -\n\nboleto\n\\* pay_co -\n\nPayments made via PayCo\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* direct_debit -\n\ndirect_debit\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* bancontact -\n\nbancontact\n\\* pay_by_bank -\n\nPay By Bank\n\\* apple_pay -\n\napple_pay\n\\* online_banking_poland -\n\nOnline Banking Poland\n\\* giropay -\n\ngiropay\n\\* sofort -\n\nsofort\n\\* amazon_payments -\n\nAmazon Payments\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_override" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Specify limits on how credits and payments are applied to individual invoices for the subscription. Contact \\[Support\\](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api\\&utm_medium=content\\&utm_campaign=support) to enable this feature. Note: These limits do not apply to \\[consolidated invoices\\](https://www.chargebee.com/docs/2.0/consolidated-invoicing.html) .\n",
                    "properties" : {
                      "max_excess_payment_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#excess_payments\">excess payments</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      },
                      "max_refundable_credits_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#refundable_credits\">refundable credits</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "Sub Item Plan Unit Amount for create subscription\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "Sub Item Plan Unit Amount in Decimal for create subscription\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "usage_accumulation_reset_frequency" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Specifies the frequency at which the usage counter needs to be reset.\n\\* subscription_billing_frequency -\n\nAccumulates usage until the subscription's billing frequency ends.\n\\* never -\n\nAccumulates usage without ever resetting it.\n",
                          "enum" : [ "never", "subscription_billing_frequency" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/subscriptions)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_override" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "statement_descriptor" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/import_unbilled_charges" : {
      "post" : {
        "summary" : "Import unbilled charges",
        "description" : "Imports one or more [unbilled charges](/docs/api/unbilled_charges) into an existing subscription. Use this operation to add usage-based or other unbilled charges recorded in external systems to the subscription.  \n\n### Prerequisites \\& Constraints\n\nIf you are trying to use this operation on your live site, ensure you have requested [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support) to enable it, otherwise the API will return an \"API not enabled\" error.  \n\n### Impacts\n\n**Invoicing**  \n* Unbilled charges on the subscription are automatically invoiced on the next renewal.\n* You can also invoice unbilled charges on-demand using the [Create an invoice for unbilled charges API](/docs/api/unbilled_charges/create-an-invoice-for-unbilled-charges).  \n**Accounting Integrations**  \nImported unbilled charges will not sync with your [accounting integration](https://www.chargebee.com/docs/billing/2.0/integrations/finance-integration-index) until they are invoiced.\n",
        "operationId" : "import_unbilled_charges",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "unbilled_charges" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for unbilled_charges\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies an unbilled charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "Start date of this charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "End date of this charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Specifies the modelled entity this line item is based on.\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n",
                          "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "The identifier of the modelled entity this charge is based on. Will be null for 'adhoc' entity type.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Detailed description about this charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "Unit amount of the charge item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Quantity of the item which is represented by this charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "Total amount of this charge. Typically equals to unit amount x quantity.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the amount for the charge, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of this entity. Returned when the entity is quantity-based and [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the unit amount for the entity. The value is in major units of the currency. Returned when the entity is quantity-based and [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "discount_amount" : {
                        "type" : "array",
                        "description" : "Total discounts for this charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "use_for_proration" : {
                        "type" : "array",
                        "description" : "If the unbilled charge falls within the subscription's current term it will be used for proration.\n",
                        "items" : {
                          "type" : "boolean",
                          "default" : false,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "is_advance_charge" : {
                        "type" : "array",
                        "description" : "The value of this parameter will be true if it is a recurring unbilled charge for a future term.\n",
                        "items" : {
                          "type" : "boolean",
                          "default" : false,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "date_from", "date_to", "entity_type" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "unbilled_charge_id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies an unbilled charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>",
                          "enum" : [ "item_level_coupon", "document_level_coupon", "item_level_discount", "document_level_discount" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this deduction.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "amount" ],
                    "example" : null
                  },
                  "tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tiers\n",
                    "properties" : {
                      "unbilled_charge_id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies an unbilled charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lower limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The upper limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_used" : {
                        "type" : "array",
                        "description" : "The number of units purchased in a range.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_used_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "unbilled_charge_id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "unbilled_charges" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "unbilled_charges" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/remove_scheduled_resumption" : {
      "post" : {
        "summary" : "Remove scheduled resumption",
        "description" : "If the subscription is in **Paused** state and is scheduled to resume on a specific_date, this API can be used to remove the scheduled resumption. When the scheduled resumption is removed, the subscription will remain **Paused**.  \n**Warning**\nThis API will return an error when [multi-frequency billing](/docs/api/subscriptions) is enabled.\n",
        "operationId" : "remove_scheduled_resumption",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}" : {
      "get" : {
        "summary" : "Retrieve a subscription",
        "description" : "Retrieves a subscription.\n",
        "operationId" : "retrieve_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/import_contract_term" : {
      "post" : {
        "summary" : "Import contract term",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Imports an active or historical <a href=\"/docs/api/contract_terms\" class=\"text-blue-600 hover:text-blue-800 underline\">contract term</a> for a subscription.</p><p class=\"mb-2\">Use this operation to import contract terms when migrating subscriptions from another billing system, or to add historical contract term data for existing subscriptions. You can import both active contract terms (currently running) and historical contract terms (completed, canceled, or terminated).</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contract Terms</a> feature must be enabled on the site.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/subscriptions#multi-frequency-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-Frequency Billing</a> feature must not be enabled for the site.</li>\n<li class=\"text-base leading-relaxed\">The subscription must have a fixed billing cycle (the <a href=\"subscriptions#subscription_remaining_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> must be set).</li>\n<li class=\"text-base leading-relaxed\">The contract term period must not overlap with any existing contract terms for the subscription.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Contract term</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term</code> resource is created and <a href=\"subscriptions#subscription_contract_term\" class=\"text-blue-600 hover:text-blue-800 underline\">associated</a> with the subscription.</li>\n<li class=\"text-base leading-relaxed\">For active contract terms:</li>\n<li class=\"text-base leading-relaxed\">the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_contract_value</code> is calculated as the sum of the contract estimate and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised</code> parameter.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code> date is calculated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_start</code> date and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycle</code> parameter.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Check the subscription&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code> attribute. If it is not set, the subscription is set to forever renewal. <a href=\"subscriptions#update_subscription_for_items_billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\">Update the subscription</a> to a fixed billing cycle before importing a contract term.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"subscriptions#list_contract_terms_for_a_subscription\" class=\"text-blue-600 hover:text-blue-800 underline\">Check for existing contract terms</a> for the subscription. Ensure that the the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_start</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code> dates don&#x27;t overlap with any existing contract term for the subscription.</li>\n</ul></div>",
        "operationId" : "import_contract_term",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "contract_term_billing_cycle_on_renewal" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of billing cycles the new contract term should run for when the contract term renews. This value is used when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew_once</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Should not be sent when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">evergreen</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Defaults to the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycle</code> or a custom value depending on the <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/contract-terms#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site configuration</a>.</li>\n</ul></div>",
                    "maximum" : 100,
                    "minimum" : 1,
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Unique identifier for the contract term in the site.  \n**Default value**\n\n* If not provided, a unique identifier is automatically generated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "created_at" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date when the contract term was created.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For active contract terms, cannot be a future date unless the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be less than or equal to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_start</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For historical contract terms, defaults to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_start</code> if not provided.</li>\n</ul></div>",
                        "example" : null
                      },
                      "contract_start" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The start date of the contract term.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be less than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code>.</li>\n<li class=\"text-base leading-relaxed\">For active contract terms, cannot be a future date unless the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>.</li>\n<li class=\"text-base leading-relaxed\">For historical contract terms, must be a past date.</li>\n<li class=\"text-base leading-relaxed\">Cannot be less than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">created_at</code>.</li>\n<li class=\"text-base leading-relaxed\">Must not overlap with existing contract terms for the subscription.</li>\n</ul></div>",
                        "example" : null
                      },
                      "contract_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The end date of the contract term.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> (for historical contract terms).</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Should not be sent when the contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> (it is calculated automatically).</li>\n<li class=\"text-base leading-relaxed\">Must be greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_start</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be a past date.</li>\n<li class=\"text-base leading-relaxed\">Must not overlap with existing contract terms for the subscription.</li>\n</ul></div>",
                        "example" : null
                      },
                      "status" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Current status of the contract term. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> for currently running contract terms, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">completed</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminated</code> for historical contract terms.</p>\n* active - <p class=\"mb-2\">An actively running contract term.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>.</li>\n</ul></div>\n* completed - <p class=\"mb-2\">The contract term has run its full duration.</p>\n* cancelled - <p class=\"mb-2\">The contract term was ended because a change in the subscription caused a <a href=\"/docs/api/subscriptions/update-subscription-for-items#force_term_reset\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription term reset</a>, or the subscription was canceled due to non-payment.</p>\n* terminated - <p class=\"mb-2\">The contract term was terminated ahead of completion.</p>",
                        "enum" : [ "active", "completed", "cancelled", "terminated" ],
                        "example" : null
                      },
                      "total_amount_raised" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The amount raised for the contract term up to the time of importing the subscription. This amount is added to the contract estimate to calculate the <a href=\"/docs/api/contract_terms#total_contract_value\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_contract_value</code></a> for active contract terms.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Should not be sent when the contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "total_amount_raised_before_tax" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The amount raised for the contract term up to the time of importing the subscription, excluding tax. This amount is added to the contract estimate to calculate the <a href=\"contract_terms#contract_term_total_contract_value_before_tax\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_contract_value_before_tax</code></a> for active contract terms.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> and <a href=\"https://www.chargebee.com/docs/contract-terms.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">pre-tax TCV</a> is enabled on the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Should not be sent when the contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "total_contract_value" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The sum of the <a href=\"/docs/api/invoices#total\" class=\"text-blue-600 hover:text-blue-800 underline\">totals</a> of all invoices raised as part of the contract term.\nFor active contract terms, this is a predicted value calculated as the sum of the contract estimate and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> (for historical contract terms).</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Should not be sent when the contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> (it is calculated automatically).</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "total_contract_value_before_tax" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The total amount of revenue expected to be generated from the contract term, calculated as the sum of all invoices raised during the term, excluding taxes. For active contract terms, this is calculated as the sum of the contract estimate (before tax) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised_before_tax</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> and <a href=\"https://www.chargebee.com/docs/contract-terms.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">pre-tax TCV</a> is enabled on the site (for historical contract terms).</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Should not be sent when the contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> (it is calculated automatically).</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "billing_cycle" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of billing cycles of the subscription that the contract term covers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The contract term <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For active contract terms, must be greater than the subscription&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code> when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For historical contract terms, defaults to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> if not provided.</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">The contract term completes and the subscription continues to renew without a new contract term.</p>\n* renew_once - <p class=\"mb-2\">The contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_billing_cycle_on_renewal</code>. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>, so the subscription is canceled when the new contract term completes.</p>\n* cancel - <p class=\"mb-2\">The contract term completes and the subscription is canceled.</p>\n* renew - <p class=\"mb-2\">The contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_billing_cycle_on_renewal</code>. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</p>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code> during which the customer is barred from canceling the contract term. The customer can cancel the contract term via the <a href=\"https://www.chargebee.com/docs/self-serve-portal.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Self-Serve Portal</a> only before this period. This allows you to have sufficient time for processing the contract term closure.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew_once</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be less than the duration of the contract term (in days).</li>\n<li class=\"text-base leading-relaxed\">Should not be sent when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">evergreen</code>.</li>\n</ul></div>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "contract_term" : {
                      "$ref" : "#/components/schemas/ContractTerm",
                      "description" : "<p class=\"mb-2\">Resource object representing contract_term</p>"
                    }
                  },
                  "required" : [ "contract_term" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/override_billing_profile" : {
      "post" : {
        "summary" : "Override Billing Profile",
        "description" : "Assigns the payment source and sets auto collection state for the subscription.  \nWhen you don't pass any input param for this API, payment source and auto collection for the subscription will be the same as the customer's default settings.\n",
        "operationId" : "override_billing_profile",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Unique identifier of the payment source to be attached to this subscription.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/remove_scheduled_pause" : {
      "post" : {
        "summary" : "Remove scheduled pause",
        "description" : "If the subscription is in **Active** or **Non Renewing** state and is also scheduled to pause at the end_of_term/specific_date, this API can be used to remove the scheduled pause.  \n**Warning**\nThis API will return an error when [multi-frequency billing](/docs/api/subscriptions) is enabled.\n",
        "operationId" : "remove_scheduled_pause",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/edit_advance_invoice_schedule" : {
      "post" : {
        "summary" : "Edit Advance Invoice Schedule",
        "description" : "**Caution**\nThis API will return an error when [multi-frequency billing](/docs/api/subscriptions#subscription-billing-frequencies) is enabled.\n\nModifies the [advance invoicing schedule](/docs/api/advance_invoice_schedules) for a subscription.\n",
        "operationId" : "edit_advance_invoice_schedule",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles in one interval.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "schedule_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of advance invoice or advance invoicing schedule.\n\\* specific_dates -\n\nCharge on [specific dates](/docs/api/subscriptions/charge-future-renewals#specific_dates_schedule_date).\nFor each date, specify the [number of billing cycles](/docs/api/subscriptions/charge-future-renewals#specific_dates_schedule_terms_to_charge)\nto charge for. Up to 5 dates can be configured.\n\\* fixed_intervals -\n\nCharge at fixed intervals of time. Specify the [number of billing cycles](/docs/api/subscriptions/charge-future-renewals#terms_to_charge)\nthat constitute an interval and the number of [days before each interval](/docs/api/subscriptions/charge-future-renewals#fixed_interval_schedule_days_before_renewal)\nthat the invoice should be generated. Also specify [when the schedule should end](/docs/api/subscriptions/charge-future-renewals#fixed_interval_schedule_end_schedule_on)\n.\n",
                    "enum" : [ "specific_dates", "fixed_intervals" ],
                    "example" : null
                  },
                  "fixed_interval_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for fixed_interval_schedule\n",
                    "properties" : {
                      "number_of_occurrences" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of advance invoices to generate. The schedule is created such that the total number of billing cycles in the schedule does not exceed the <a href=\"/docs/api/subscriptions/subscription-object#remaining_billing_cycles\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a>\nof the subscription.  This parameter is applicable only when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_end_schedule_on\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code></a>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">after_number_of_intervals</code></p>",
                        "minimum" : 1,
                        "example" : null
                      },
                      "days_before_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The number of days before each interval that advance invoices are generated.\n",
                        "minimum" : 1,
                        "example" : null
                      },
                      "end_schedule_on" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies when the schedule should end.</p>\n* after_number_of_intervals - <p class=\"mb-2\">Advance invoices are generated a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specified number of times</code></p>\n* subscription_end - <p class=\"mb-2\">Advance invoices are generated for as long as the subscription is active.</p>\n* specific_date - <p class=\"mb-2\">End the advance invoicing schedule on a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific date</code>\n.</p>",
                        "enum" : [ "after_number_of_intervals", "specific_date", "subscription_end" ],
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date when the schedule should end. Advance invoices are not generated beyond this date. It must be at least 1 day before the start of the last billing cycle of the subscription and also within 5 years from the current date. This parameter is only applicable when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_end_schedule_on\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code></a>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>\n.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "specific_dates_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for specific_dates_schedule\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "The [unique id](/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#id)\nof the member of the [advance_invoice_schedule](/docs/api/advance_invoice_schedules)\narray which corresponds to the [specific_dates_schedule](/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#specific_dates_schedule)\nthat you intend to modify. Only applicable when [schedule_type](/docs/api/subscriptions/edit-advance-invoice-schedule#schedule_type)\nis specific_dates.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "terms_to_charge" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The number of billing cycles to charge for, on the date specified. Applicable only when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#schedule_type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code></a>\nis specific_dates.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id of the member of the advance_invoice_schedule array which corresponds to the specific_dates_schedule that you intend to modify. Only applicable when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#schedule_type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "fixed_interval_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "specific_dates_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "advance_invoice_schedules" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing advance_invoice_schedule</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/AdvanceInvoiceSchedule",
                        "description" : "Resource object representing advance_invoice_schedule"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "advance_invoice_schedules" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/discounts" : {
      "get" : {
        "summary" : "List discounts for a subscription",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-discounts\"></span><p class=\"mb-2\">Retrieves a list of <code><a href=\"/docs/api/discounts\">discount</a></code>\nresources <a href=\"/docs/api/subscriptions/subscription-object#discounts\">currently attached</a>\nto a specific subscription. The list is sorted in descending order based on the <code><a href=\"/docs/api/discounts/discount-object#created_at\">created_at</a></code>\ntimestamp.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThis endpoint does not return <code><a href=\"/docs/api/coupons\">coupon</a></code> or <code><a href=\"/docs/api/coupon_codes\">coupon_code</a></code> resources.</p></div></div>",
        "operationId" : "list_discounts_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "discount" : {
                            "$ref" : "#/components/schemas/Discount",
                            "description" : "Resource object representing discount"
                          }
                        },
                        "required" : [ "discount" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/contract_terms" : {
      "get" : {
        "summary" : "List contract terms for a subscription",
        "description" : "Retrieves a list of contract term resources for the subscription specified in the path.  \n**Warning**\nThis API will return an error when [multi-frequency billing](/docs/api/subscriptions) is enabled.\n",
        "operationId" : "list_contract_terms_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending (earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "contract_term" : {
                            "$ref" : "#/components/schemas/ContractTerm",
                            "description" : "Resource object representing contract_term"
                          }
                        },
                        "required" : [ "contract_term" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/pause" : {
      "post" : {
        "summary" : "Pause a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Use this API to pause an active or non-renewing subscription. When a subscription is paused, it does not renew, and Chargebee does not generate renewal <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">invoices</a> for it. This allows you to temporarily suspend a customer&#x27;s service without canceling the subscription.</p></div>\n\n\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/2.0/pause-subscription.html#configure-pause-resume-subscription\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Pause Subscription</a> feature must be enabled for the site.</li>\n<li class=\"text-base leading-relaxed\">Only subscriptions in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> state can be paused.</li>\n<li class=\"text-base leading-relaxed\">Subscriptions with <a href=\"/docs/api/contract_terms/contract_term-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\">active contract_terms</a> cannot be paused.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pause_option</code> parameter is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>, the subscription&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_billing_at</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pause_date</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resume_date</code> values are updated based on the input parameters.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Unbilled Charges</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the subscription has <a href=\"/docs/api/unbilled_charges\" class=\"text-blue-600 hover:text-blue-800 underline\">unbilled charges</a> and is paused immediately, you can choose to leave the charges unbilled or invoice them. If invoiced, Chargebee attempts payment collection based on the customer&#x27;s auto-collection settings. If payment fails or auto-collection is not enabled, the invoice is marked as unpaid.</p><p class=\"mb-2\">Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charges_handling</code> parameter to set your preference.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Dunning</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the subscription has unpaid invoices in <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning/dunning-v2\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">dunning</a> and is paused immediately, you can choose to either stop or continue the dunning process.</p><p class=\"mb-2\">Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_dunning_handling</code> parameter to set your preference.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Scheduled Ramps</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Any future <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription ramps</a> (such as price or quantity changes) effective on or after the pause date are automatically deleted.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Advanced Invoices</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the subscription has an <a href=\"/docs/api/subscriptions/charge-future-renewals\" class=\"text-blue-600 hover:text-blue-800 underline\">advance invoice</a>, Chargebee creates an adjustment credit note if the invoice is unpaid or in a payment-due state. If the invoice is already paid, a refundable credit note is created.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, perform the following checks:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Confirm that the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>. If it isn&#x27;t, the API returns an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invalid_state_for_pause</code> error.</li>\n<li class=\"text-base leading-relaxed\">Check the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">has_scheduled_changes</code> attribute. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, either remove the scheduled changes before calling the API or avoid the operation. Otherwise, the API returns an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">operation_failed</code> error.</li>\n<li class=\"text-base leading-relaxed\">Ensure that the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term</code> attribute is not present, or if it is present, that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term.status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>. Otherwise, the API returns an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invalid_request</code> error.</li>\n<li class=\"text-base leading-relaxed\">If a subscription is in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> state and you want to set the <a href=\"/docs/api/subscriptions/pause-a-subscription#pause_date\" class=\"text-blue-600 hover:text-blue-800 underline\">pause date</a> to a future date, the pause date must be earlier than the <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">cancellation date</a>. If you specify a <a href=\"/docs/api/subscriptions/pause-a-subscription#resume_date\" class=\"text-blue-600 hover:text-blue-800 underline\">resume date</a>, it must also be earlier than the cancellation date.</li>\n</ul></div>",
        "operationId" : "pause_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "pause_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">List of options to pause the subscription.</p>\n* billing_cycles - <p class=\"mb-2\">Pause at the end of the current term, and resume automatically after the set number of billing cycles (in <code><a href=\"/docs/api/subscriptions/pause-a-subscription#skip_billing_cycles\">skip_billing_cycles</a></code>) have been skipped</p>\n* immediately - <p class=\"mb-2\">Pause immediately</p>\n* end_of_term - <p class=\"mb-2\">Pause at the end of current term</p>\n* specific_date - <p class=\"mb-2\">Pause on a specific date</p>",
                    "enum" : [ "immediately", "end_of_term", "specific_date", "billing_cycles" ],
                    "example" : null
                  },
                  "pause_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Date on which the subscription will be paused. Applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code> option is chosen in the <code><a href=\"/docs/api/subscriptions/pause-a-subscription#pause_option\">pause_option</a></code> field.\nFor non-renewing subscriptions, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pause_date</code> should be before the cancellation date.</p>",
                    "example" : null
                  },
                  "unbilled_charges_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Applicable when unbilled charges are present for the subscription and <code><a href=\"/docs/api/subscriptions/pause-a-subscription#pause_option\">pause_option</a></code> is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>. <strong class=\"font-semibold\">Note:</strong> On the invoice raised, an automatic charge is attempted on the payment method available, if customer&#x27;s auto-collection property is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>.</p>\n* invoice - <p class=\"mb-2\">Invoice charges\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> is chosen, an automatic charge is attempted on the payment method available if the customer has enabled auto-collection. If a payment collection fails or when auto-collection is not enabled, the invoice is closed as unpaid.</p>\n* no_action - <p class=\"mb-2\">Retain as unbilled\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">no_action</code> is chosen, charges are added to the resumption invoice.</p>",
                    "enum" : [ "no_action", "invoice" ],
                    "example" : null
                  },
                  "invoice_dunning_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Handles dunning for invoices already in the dunning cycle when a subscription is paused. Applicable when <code><a href=\"/docs/api/subscriptions/pause-a-subscription#pause_option\">pause_option</a></code> is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>.\nIf invoice is in the dunning cycle, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_dunning_handing</code> allows you to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stop</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">continue</code> dunning.</p>\n* continue - <p class=\"mb-2\">Continue dunning</p>\n* stop - <p class=\"mb-2\">Stop dunning</p>",
                    "enum" : [ "continue", "stop" ],
                    "example" : null
                  },
                  "skip_billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles that will be skipped. The subscription resumes after the set number of billing cycles have been skipped. This is applicable only when the value of  of <code><a href=\"/docs/api/subscriptions/pause-a-subscription#pause_option\">pause_option</a></code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\n.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "resume_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">For a paused subscription, it is the date/time when the subscription is scheduled to resume. If the pause is for an indefinite period, this value is not returned.\nFor non-renewing subscriptions,<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resume_date</code> should be before the cancellation date.</p>",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    },
                    "credit_notes" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/CreditNote",
                        "description" : "Resource object representing credit_note"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/scheduled_changes" : {
      "get" : {
        "summary" : "Scheduled_changes a subscription_scheduled_change",
        "operationId" : "scheduled_changes_a_subscription_scheduled_change",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription_scheduled_change" : {
                      "$ref" : "#/components/schemas/SubscriptionScheduledChange",
                      "description" : "Resource object representing subscription_scheduled_change"
                    }
                  },
                  "required" : [ "subscription_scheduled_change" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/update_scheduled_changes" : {
      "post" : {
        "summary" : "Update_scheduled_changes a subscription_scheduled_change",
        "operationId" : "update_scheduled_changes_a_subscription_scheduled_change",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cancel_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "action_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "enum" : [ "cancel", "pause", "reactivate" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "subscription_scheduled_change" : {
                      "$ref" : "#/components/schemas/SubscriptionScheduledChange",
                      "description" : "Resource object representing subscription_scheduled_change"
                    }
                  },
                  "required" : [ "subscription_scheduled_change" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/delete" : {
      "post" : {
        "summary" : "Delete a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes a specified customer.</p><p class=\"mb-2\">This operation schedules the customer resource for deletion, and it is <strong class=\"font-semibold\">permanently</strong> deleted after a few minutes.</p><p class=\"mb-2\">If you wish to retain the customer data but stop further subscription renewals, consider <a href=\"/docs/api/subscriptions/cancel-subscription-for-items\" class=\"text-blue-600 hover:text-blue-800 underline\">canceling</a> or <a href=\"/docs/api/subscriptions/pause-a-subscription\" class=\"text-blue-600 hover:text-blue-800 underline\">pausing</a> the subscriptions instead.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The customer must not be part of an <a href=\"/docs/api/hierarchies\" class=\"text-blue-600 hover:text-blue-800 underline\">account hierarchy</a> (neither a parent nor a child).</li>\n<li class=\"text-base leading-relaxed\">The customer record must not have any linked <a href=\"/docs/api/gifts\" class=\"text-blue-600 hover:text-blue-800 underline\">gift subscriptions</a> (neither gifter nor recipient).</li>\n<li class=\"text-base leading-relaxed\">None of the customer&#x27;s <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">invoices</a> may be paid by a different customer.</li>\n<li class=\"text-base leading-relaxed\">None of the customer&#x27;s <a href=\"/docs/api/credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\">credit notes</a> may be allocated to an <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">invoice</a> that belongs to a different customer.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscriptions</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">All the subscriptions belonging to the customer are deleted.</li>\n<li class=\"text-base leading-relaxed\">See <a href=\"/docs/api/subscriptions/delete-a-subscription\" class=\"text-blue-600 hover:text-blue-800 underline\">Delete a subscription API</a> for more details on the impacts of deleting a subscription.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">All the invoices belonging to the customer are deleted.</li>\n<li class=\"text-base leading-relaxed\">See <a href=\"/docs/api/invoices/delete-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Delete an invoice API</a> for more details on the impacts of deleting an invoice.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit notes</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">All the credit notes belonging to the customer are deleted.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Payment sources</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The <a href=\"/docs/api/payment_sources\" class=\"text-blue-600 hover:text-blue-800 underline\">payment sources</a> linked to the customer are deleted and also removed from the <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment gateway</a>. To retain payment gateway records, pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">delete_payment_method</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Reports</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The numbers in the following <a href=\"https://www.chargebee.com/docs/billing/2.0/reports-and-analytics/metric_description\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">reports</a> are modified when a customer is deleted: Payments, New Revenue, Signups, Activations, Cancellations, and Refunds.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before deleting a customer, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Check and remove account hierarchy linkage:\n<ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the <a href=\"/docs/api/customers/get-hierarchy\" class=\"text-blue-600 hover:text-blue-800 underline\">Get hierarchy API</a> to check if the customer is part of an account hierarchy.</li>\n<li class=\"text-base leading-relaxed\">If the customer is part of an account hierarchy, use the <a href=\"/docs/api/customers/delink-a-customer\" class=\"text-blue-600 hover:text-blue-800 underline\">Unlink a customer from its parent account API</a> to remove the customer from the hierarchy.</li>\n</ol>\n</li>\n<li class=\"text-base leading-relaxed\">Remove any payments by other customers:\n<ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the <a href=\"/docs/api/invoices/list-invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">List invoices API</a> to retrieve all the invoices for this customer.</li>\n<li class=\"text-base leading-relaxed\">For each invoice, look up all the linked payments (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.linked_payments[]</code>).</li>\n<li class=\"text-base leading-relaxed\">For each linked payment, check if the payer (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction.customer_id</code>) is this customer.</li>\n<li class=\"text-base leading-relaxed\">If not, use the <a href=\"/docs/api/invoices/remove-payment-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove payment from an invoice API</a> to remove the payment from the invoice.</li>\n</ol>\n</li>\n<li class=\"text-base leading-relaxed\">Remove credit note allocations to other customers:\n<ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the <a href=\"/docs/api/credit_notes/list-credit-notes\" class=\"text-blue-600 hover:text-blue-800 underline\">List credit notes API</a> to retrieve all the credit notes for this customer.</li>\n<li class=\"text-base leading-relaxed\">For each credit note, look up all the invoice allocations (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.allocations.invoice_id</code>).</li>\n<li class=\"text-base leading-relaxed\">For all such invoices, check if the associated customer (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.customer_id</code>) is this customer.</li>\n<li class=\"text-base leading-relaxed\">If not, use the <a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove credit note from an invoice API</a> to remove the allocation.</li>\n</ol>\n</li>\n<li class=\"text-base leading-relaxed\">Remove credit note allocations from other customers:\n<ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the <a href=\"/docs/api/invoices/list-invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">List invoices API</a> to retrieve all the invoices for this customer.</li>\n<li class=\"text-base leading-relaxed\">For each invoice, look up all the applied credit notes (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.applied_credits.cn_id</code>).</li>\n<li class=\"text-base leading-relaxed\">For all such credit notes, check if the associated customer (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.customer_id</code>) is this customer.</li>\n<li class=\"text-base leading-relaxed\">If not, use the <a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove credit note from an invoice API</a> to remove the credit note allocation.</li>\n</ol>\n</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/subscriptions?prod_cat_ver=2#pause_a_subscription\"><p class=\"mb-2\">Pause a subscription</p></a><a href=\"/docs/api/subscriptions?prod_cat_ver=2#cancel_subscription_for_items\"><p class=\"mb-2\">Cancel a subscription</p></a><a href=\"/docs/api/customers?prod_cat_ver=2#delink_a_customer\"><p class=\"mb-2\">Unlink a customer from its parent account</p></a></div>",
        "operationId" : "delete_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "delete_payment_method" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Deletes the Payment Method from the gateway/vault.\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/relationships" : {
      "post" : {
        "summary" : "Link a customer to an account hierarchy",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a <a href=\"https://www.chargebee.com/docs/account-hierarchy.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">hierarchical relationship</a> between two customers. The path parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> identifies the child in this relationship, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_id</code> identifies the parent.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">For the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">use_default_hierarchy_settings</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_account_access</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">child_account_access</code> parameters in this operation, the term &quot;parent&quot; usually refers to <a href=\"/docs/api/customers/link-a-customer#payment_owner_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code></a>. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code> is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>, then &quot;parent&quot; refers to <a href=\"/docs/api/customers/link-a-customer#parent_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_id</code></a>.</p></div></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_id</code> must belong to the same <a href=\"/docs/api/advanced-features\" class=\"text-blue-600 hover:text-blue-800 underline\">business entity</a>.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/billing/2.0/customers/account-hierarchy#limits\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Account Hierarchy limits</a> must not be exceeded due to this operation.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Customer</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Sets the following attributes on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">relationship</code></a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">use_default_hierarchy_settings</code></a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">child_account_access</code></a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_account_access</code></a></li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For all invoices generated for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> after you link the customer, Chargebee sets <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.customer_id</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transactions</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When Chargebee generates invoices for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code> for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code>, Chargebee uses the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code> to pay the invoices and creates transactions for the payment under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">RevenueStory</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/billing/2.0/reports-and-analytics/chargebee-analytics#customer-insights\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Customer Insights</a> report in RevenueStory shows parent-level views for customers with hierarchy relationships.</li>\n</ul></div></div></div>",
        "operationId" : "link_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parent_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">ID of the customer intended to be set as the immediate parent of the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\n.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "payment_owner_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the customer responsible for paying the invoices for the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code> is the same as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code> can be the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> or an ancestor of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>.</li>\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code> is not the same as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code> must be the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code>.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "invoice_owner_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the customer who receives the invoice for charges incurred by the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraint</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This ID must match either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> or one of its ancestors.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "use_default_hierarchy_settings" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Decides if Chargebee should apply settings from the <a href=\"https://www.chargebee.com/docs/2.0/account-hierarchy.html#advanced-mode\" target=\"_blank\">Chargebee Billing UI</a> or from this API request.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: Chargebee uses settings configured in the Chargebee Billing UI.</li>\n<li class=\"text-base leading-relaxed\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: Settings provided in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_account_access</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">child_account_access</code> parameters are applied.</li>\n</ul>",
                    "example" : null
                  },
                  "parent_account_access" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Settings for the parent account's access.\n",
                    "properties" : {
                      "portal_edit_child_subscriptions" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines the parent's access to the child's subscriptions in the Self-Serve Portal.\n\\* yes -\n\nThe parent can view and edit the child's subscriptions.\n\\* no -\n\nThe parent can't view or edit the child's subscriptions.\n\\* view_only -\n\nThe parent can only view the child's subscriptions.\n",
                        "enum" : [ "yes", "view_only", "no" ],
                        "example" : null
                      },
                      "portal_download_child_invoices" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines the parent's access to the child's invoices in the Self-Serve Portal.\n\\* no -\n\nThe parent can't view or download the child's invoices.\n\\* view_only -\n\nThe parent can view but not download the child's invoices.\n\\* yes -\n\nThe parent can both view and download the child's invoices.\n",
                        "enum" : [ "yes", "view_only", "no" ],
                        "example" : null
                      },
                      "send_subscription_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the parent receives email notifications for the child&#x27;s subscriptions.</p>",
                        "example" : null
                      },
                      "send_payment_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the parent receives email notifications for payment-related activities on the child&#x27;s invoices.</p>",
                        "example" : null
                      },
                      "send_invoice_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the parent receives email notifications for the child&#x27;s invoices.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "child_account_access" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Settings for the child account's access.\n",
                    "properties" : {
                      "portal_edit_subscriptions" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines the child's access to its own subscriptions in the Self-Serve Portal.\n\\* view_only -\n\nThe child account can only view its subscriptions.\n\\* yes -\n\nThe child account can view and edit its subscriptions.\n",
                        "enum" : [ "yes", "view_only" ],
                        "example" : null
                      },
                      "portal_download_invoices" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines the child's access to its own invoices in the Self-Serve Portal.\n\\* yes -\n\nThe child account can both view and download its invoices.\n\\* view_only -\n\nThe child account can view but not download its invoices.\n\\* no -\n\nThe child account cannot view or download its own invoices.\n",
                        "enum" : [ "yes", "view_only", "no" ],
                        "example" : null
                      },
                      "send_subscription_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the child account receives email notifications for its subscriptions.</p>",
                        "example" : null
                      },
                      "send_payment_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the child account receives email notifications for payment-related activities for its invoices.</p>",
                        "example" : null
                      },
                      "send_invoice_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the child account receives email notifications for its invoices.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "child_account_access" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "parent_account_access" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/delete_relationship" : {
      "post" : {
        "summary" : "Unlink a customer from its parent account",
        "description" : "When a customer belongs to an [account hierarchy](https://www.chargebee.com/docs/2.0/account-hierarchy.html)\n, this operation detaches the customer from its parent. The hierarchy, if any, beneath the customer remains unchanged.\n",
        "operationId" : "delink_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/delete_contact" : {
      "post" : {
        "summary" : "Delete contacts for a customer",
        "description" : "Deletes a particular contact for a customer. You can delete a contact by giving the Contact ID as the input parameter.\n",
        "operationId" : "delete_contacts_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "contact" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contact\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Unique reference ID provided for the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "contact" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/assign_payment_role" : {
      "post" : {
        "summary" : "Assign payment role",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Assign or unassign the <a href=\"/docs/api/customers/customer-object#primary_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">primary</a> or <a href=\"/docs/api/customers/customer-object#backup_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">backup</a> payment role for a payment source.</p><h5>Set role when creating a payment source</h5><p class=\"mb-2\">You can also assign a payment source as primary when you create it using APIs such as:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/payment_sources/create-using-payment-intent\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a payment source using payment intent</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/payment_sources/create-using-gateway-temporary-token\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a payment source using temporary token</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/payment_sources/create-using-chargebee-token\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a payment source using permanent token</a></li>\n</ul><h5>Payment collection precedence</h5><p class=\"mb-2\">Chargebee uses the following precedence to determine which payment source to use when it collects payments for a <a href=\"/docs/api/subscriptions/list-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/subscriptions/subscription-object#payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">payment source</a> attached to the subscription, if available.</li>\n<li class=\"text-base leading-relaxed\">The primary payment source of the customer.</li>\n<li class=\"text-base leading-relaxed\">The backup payment source of the customer, if available.</li>\n</ul></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The payment source must belong to the customer and must not be <a href=\"/docs/api/payment_sources/payment_source-object#deleted\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deleted</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The payment source must not be the current primary payment source of the customer.</li>\n<li class=\"text-base leading-relaxed\">This operation doesn&#x27;t validate the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> of the payment source. Check the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> of the payment source before you assign it to the primary or backup role.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><h4>Payment collection</h4></strong><div class=\"impact-description\"><p class=\"mb-2\">The roles that you set using this API apply to all payments collected for the customer, except for subscriptions that have a payment source attached to them. Chargebee continues to collect such payments using the payment source attached to the subscription.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Customer</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When you assign a payment source as primary, Chargebee unassigns the existing primary payment source and doesn&#x27;t affect the backup payment source.</li>\n<li class=\"text-base leading-relaxed\">When you assign a payment source as backup, Chargebee unassigns the existing backup payment source and doesn&#x27;t affect the primary payment source.</li>\n<li class=\"text-base leading-relaxed\">You can set the role of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">backup</code> payment source to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">primary</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">none</code>.</li>\n<li class=\"text-base leading-relaxed\">You cannot set the role of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">primary</code> payment source to either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">backup</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">none</code>.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before you call this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/payment_sources/payment_source-object#customer_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source.customer_id</code></a> matches the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the customer.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source_id</code> isn&#x27;t the same as the <a href=\"/docs/api/customers/customer-object#primary_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.primary_payment_source_id</code></a>.</li>\n<li class=\"text-base leading-relaxed\">Since this API doesn&#x27;t validate the <a href=\"/docs/api/payment_sources/payment_source-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> of the payment source, check the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source.status</code> to ensure it isn&#x27;t <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invalid</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending_verification</code>.</li>\n</ul></div>",
        "operationId" : "assign_payment_role",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Payment source id this role will be assigned to.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "role" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates whether the payment source is Primary, Backup, or neither.\n\\* backup -\n\nBackup\n\\* none -\n\nNone\n\\* primary -\n\nPrimary\n",
                    "enum" : [ "primary", "backup", "none" ],
                    "example" : null
                  }
                },
                "required" : [ "payment_source_id", "role" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/move" : {
      "post" : {
        "summary" : "Move a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API copies a customer object from one site to another. The destination site (the site to which the customer is copied) is specified by the path parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{site}</code>; whereas, the source site (the site from which the customer is copied) is specified by the query parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">from_site</code>.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This endpoint is disabled by default. For the operation to work, the endpoint must be enabled for both the source and destination sites. Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to have it enabled.</li>\n<li class=\"text-base leading-relaxed\">The customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">preferred_currency_code</code> must be enabled in the destination site.</li>\n</ul></div></div>",
        "operationId" : "move_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id_at_from_site" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Id of the customer to be copied.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "from_site" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Name of the site from which this customer need to be copied.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "from_site", "id_at_from_site" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "resource_migration" : {
                      "$ref" : "#/components/schemas/ResourceMigration",
                      "description" : "<p class=\"mb-2\">Resource object representing resource_migration</p>"
                    }
                  },
                  "required" : [ "resource_migration" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/hierarchy" : {
      "get" : {
        "summary" : "Get account hierarchy for a customer",
        "description" : "Retrieves the full or partial [account hierarchy](/docs/api/hierarchies)\nfor a customer.\n",
        "operationId" : "get_hierarchy",
        "parameters" : [ {
          "name" : "hierarchy_operation_type",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Specifies which part of the account hierarchy to retrieve for the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{customer_id}</code>\n.</p>\n* complete_hierarchy - <p class=\"mb-2\">Retrieve all nodes in the account hierarchy.</p>\n* subordinates - <p class=\"mb-2\">Retrieve all nodes in the account hierarchy that start from the specified customer (identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{customer_id}</code>\n) and include its subordinates. In other words, get nodes in the account hierarchy tree where the root node is the specified customer.</p>\n* subordinates_with_unbilled_charges_payable_by_parent - <p class=\"mb-2\">List all the nodes of the hierarchy formed by its subordinates with unbilled charges whose payment owner is the customer.</p>\n* path_to_root - <p class=\"mb-2\">Retrieve nodes from the specified customer (identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{customer_id}</code>\n) to the root of its account hierarchy.</p>",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "complete_hierarchy", "subordinates", "path_to_root" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hierarchies" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing hierarchy</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/Hierarchy",
                        "description" : "Resource object representing hierarchy"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "hierarchies" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/update_payment_method" : {
      "post" : {
        "summary" : "Update payment method for a customer",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><a href=\"/docs/api/payment_sources\">Payment Sources</a>\ncomes with additional options and improvements to the <a href=\"/docs/api/cards\">Card APIs</a>\n. For this operation, use the <a href=\"/docs/api/payment_sources/create-using-gateway-temporary-token\" target=\"_blank\">Create using temporary token</a>\nAPI or <a href=\"/docs/api/payment_sources/create-using-permanent-token\" target=\"_blank\">Create using permanent token</a>\nAPI under Payment Sources to update payment method for the customer.</p></div><p class=\"mb-2\">Updates payment method details for a customer.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf you wish to pass the card number, CVV, or the single-use card tokens provided by gateways like Stripe, then use the <a href=\"/docs/api/cards/update-card-for-a-customer\">Update card for a customer</a>\nAPI under Cards resource. This API is not supported for Chargebee Test Gateway, it is provided to help you understand the billing workflow in Chargebee.</p></div><p class=\"mb-2\"><strong class=\"font-semibold\">PayPal Express Checkout</strong>\nYou can use this API if you are directly integrating PayPal Express Checkout in your website instead of using Chargebee&#x27;s hosted pages. When your customer updates his payment method using PayPal Express Checkout, you will be provided with the <em class=\"italic\">Billing Agreement ID</em> by PayPal. You can update the payment method for that customer in Chargebee by passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paypal_express_checkout</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> with the <em class=\"italic\">Billing Agreement ID</em>.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Login and Pay with Amazon</strong>\nYou can use this API if you are directly integrating <em class=\"italic\">Login and Pay with Amazon</em> in your website instead of using Chargebee&#x27;s hosted pages. When your customer updates Amazon as a payment method, you will be provided with the <em class=\"italic\">Billing Agreement ID</em> by Amazon. You can update the payment method for that customer in Chargebee by passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amazon_payments</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> with the <em class=\"italic\">Billing Agreement ID</em>.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Card Payments</strong>\nWhen the card details of your customer are stored in the vault of gateways such as Stripe or Braintree, you can use this API to update the <em class=\"italic\">reference id</em> provided by them in Chargebee. To use this API, pass</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway</code> with the gateway associated with the card. If the gateway is not specified, the default gateway will be used.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> with the identifier provided by the gateway/Spreedly to reference that specific card.</li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Reference id format for Card Payments</strong>\nThe format of reference_id will differ based on where the card is stored.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Stripe:</strong> In case of Stripe, the reference_id consists of combination of Stripe Customer ID and Stripe Card ID separated by forward slash (e.g. <em class=\"italic\">cus_63MnDn0t6kfDW7/card_6WjCF20vT9WN1G</em>). If you are passing Stripe Customer ID alone, then Chargebee will store the card marked as active for that customer in Stripe.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Braintree:</strong> In case of Braintree, the reference_id consists of combination of Braintree Customer ID and Braintree Payment Method Token separated by forward slash\n(e.g. <em class=\"italic\">cus_63MnDn0t6kfDW7/card_6WjCF20vT9WN1G</em> ). If you are passing Braintree Customer ID alone, then Chargebee will store the card marked as default for that customer in Braintree.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Spreedly Card vault:</strong> If the card details are stored in Spreedly vault, then you need to provide the Spreedly token as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code>.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Direct Debit Payments</strong>\nWhen the bank account details of your customer are stored in the gateway vault, you can use this API to update the reference id provided by them in Chargebee. To use this API, pass</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">direct_debit</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway</code> with the gateway where the bank account details are stored (e.g. <em class=\"italic\">authorize_net</em>). If the gateway is not specified, the gateway supporting the direct debit will be used.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> with the identifier provided by the gateway to reference the customer&#x27;s bank account details.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tmp_token</code> with the single use token provided by the gateway ( Should be passed only if reference_id is not passed ).</li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Reference id format for Direct Debit Payments</strong>\nThe format of reference_id will differ based on where the bank account is stored.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Stripe:</strong> In case of Stripe, the reference_id consists of combination of Stripe Customer ID and Stripe Bank Account ID separated by forward slash\n(e.g. <em class=\"italic\">cus_8suoHaLQH4G5AW/ba_18b8z2KmcbENlhgU03RznRYW</em>). If you are passing Stripe Customer ID alone, then Chargebee will store the first bank account details present in payment profile list of that customer in Stripe.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Authorize.Net:</strong> The reference_id consists of combination of Authorize.Net&#x27;s Customer Profile ID and Payment Profile ID separated by forward slash (e.g. <em class=\"italic\">2384383/34834382</em>). If you are passing Authorize.Net&#x27;s Customer Profile ID alone, then Chargebee will store the first bank account details present in payment profile list of that customer in Authorize.Net.</p><p class=\"mb-2\"><strong class=\"font-semibold\">GoCardless:</strong> The reference_id is the GoCardless Customer Mandate ID (e.g. <em class=\"italic\">MD0077Z99TTQXK</em>).</p><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> While using this API to update payment method details, <a href=\"https://www.chargebee.com/docs/cards.html#card-verification\">Card Verification</a> will not happen even if it is enabled for that particular gateway.</p></div>",
        "operationId" : "update_payment_method_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "payment_method" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_method\n",
                    "properties" : {
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of payment method. For more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* go_pay -\n\nPayments made via GoPay\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* upi -\n\nUPI Payments.\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* pix -\n\nPayments made via Pix\n\\* pay_by_bank -\n\nPay By Bank\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* sofort -\n\nPayments made via Sofort.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* twint -\n\nPayments made via Twint\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* payme -\n\nPayments made via PayMe\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* online_banking_poland -\n\nPayments made via Online Banking Poland\n\\* pay_to -\n\nPayments made via PayTo\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* pay_co -\n\nPayments made via PayCo\n\\* swish -\n\nPayments made via Swish\n\\* trustly -\n\nTrustly\n\\* venmo -\n\nPayments made via Venmo\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* giropay -\n\nPayments made via giropay.\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reference id. In the case of Amazon and PayPal this will be the *billing agreement id* .\nFor GoCardless direct debit this will be 'mandate id'. In the case of card this will be the identifier provided by the gateway/card vault for the specific payment method resource. **Note:**\nThis is not the one-time temporary token provided by gateways like Stripe.\n\nFor more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n",
                        "maxLength" : 200,
                        "example" : null
                      },
                      "tmp_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Single-use toke created by payment gateways. In Stripe, a single-use token is created for direct debit. In Braintree, a nonce is created for PayPal.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "issuing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n) is available as an option.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "required" : [ "type" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "payment_method" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}" : {
      "get" : {
        "summary" : "Retrieve a customer",
        "description" : "Retrieves the details of the desired customer. You can use the unique identifier for a particular customer to retrieve the desired details.\n",
        "operationId" : "retrieve_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Updates the details of the specified <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a>.</p><p class=\"mb-2\">Use this API to modify customer information, including standard attributes and any configured <a href=\"/docs/api/advanced-features\" class=\"text-blue-600 hover:text-blue-800 underline\">custom attributes</a>.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">To update the billing address or VAT number, use the <a href=\"/docs/api/customers/update-billing-info-for-a-customer\" class=\"text-blue-600 hover:text-blue-800 underline\">Update billing info for a customer</a> API instead.</li>\n<li class=\"text-base leading-relaxed\">The Account Hierarchy (Parent-Child Relationship) cannot be updated using this API.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">To add a child to a Parent Account, use the <a href=\"/docs/api/customers/link-a-customer\" class=\"text-blue-600 hover:text-blue-800 underline\">Link a customer to an account</a> API.</li>\n<li class=\"text-base leading-relaxed\">To remove a child from a Parent Account, use the <a href=\"/docs/api/customers/delink-a-customer\" class=\"text-blue-600 hover:text-blue-800 underline\">Unlink a customer from its parent account</a> API.</li>\n</ul>\n</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">See <a href=\"/docs/api/customers/update-a-customer#auto_collection\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code></a> parameter to understand the impact on invoices.</li>\n<li class=\"text-base leading-relaxed\">See <a href=\"/docs/api/customers/update-a-customer#taxability\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxability</code></a> parameter to understand how taxes on invoices are impacted.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">CRM integrations</p></strong><div class=\"impact-description\"><p class=\"mb-2\">When you update customer details in Chargebee using this API, the corresponding records are synced with integrated CRM systems, such as <a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/hubspot\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">HubSpot</a> or <a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/chargebee-salesforce\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Salesforce</a>, depending on your integration configuration.</p></div></div></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/customers?prod_cat_ver=2#update_billing_info_for_a_customer\"><p class=\"mb-2\">Update billing info for a customer</p></a><a href=\"/docs/api/customers?prod_cat_ver=2#link_a_customer\"><p class=\"mb-2\">Link a customer to an account</p></a><a href=\"/docs/api/customers?prod_cat_ver=2#delink_a_customer\"><p class=\"mb-2\">Unlink a customer from its parent account</p></a></div>",
        "operationId" : "update_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "first_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "First name of the customer.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "last_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Last name of the customer.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "email" : {
                    "type" : "string",
                    "format" : "email",
                    "deprecated" : false,
                    "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                    "maxLength" : 70,
                    "example" : null
                  },
                  "preferred_currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the customer. Applicable if Multicurrency is enabled.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "phone" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Phone number of the customer.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "company" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Company name of the customer.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "default" : "on",
                    "deprecated" : false,
                    "description" : "Determines whether payments should be collected automatically for this customer.  \n**Note**\nThis setting can be overridden at the [subscription level](/docs/api/subscriptions/update-subscription-for-items#auto_collection).\n\\* on -\n\nPayments are automatically collected for new invoices. For existing invoices, Chargebee attempts collections through [dunning](https://www.chargebee.com/docs/payments/2.0/dunning/dunning-v2) as per the configured schedule.\n\\* off -\n\nPayments are not automatically collected for this customer.\n",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  },
                  "allow_direct_debit" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Whether the customer can pay via Direct Debit.\n",
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<span featureId=\"cb-net-d-payment-terms\" isMicro=\"true\"></span>",
                    "example" : null
                  },
                  "taxability" : {
                    "type" : "string",
                    "default" : "taxable",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies whether taxes are applicable to invoices generated for this customer.</p>\n* taxable - <p class=\"mb-2\">Taxes are calculated for this customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site&#x27;s tax configuration</a>.\nIn some regions, <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">shipping_address</a> is required for tax computation.\nIf a shipping address is not provided, the <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">billing_address</a> is used. If neither address is available, no tax is applied.</p>\n* exempt - <p class=\"mb-2\">The customer is exempt from tax.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you use Chargebee <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Taxes</a> or the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">TaxJar integration</a>, no additional action is required.</li>\n<li class=\"text-base leading-relaxed\">If you use the <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Avalara integration</a>, optionally specify the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code> attributes with <a href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">AvaTax for Sales</a>, or the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> attribute with <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">AvaTax for Communications</a>. Avalara may still apply tax depending on the values of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code>, and the jurisdiction (state, region, or province) of the taxable address.</li>\n</ul>",
                    "enum" : [ "taxable", "exempt" ],
                    "example" : null
                  },
                  "exemption_details" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Indicates the exemption information. You can customize customer exemption based on specific Location, Tax level (Federal, State, County and Local), Category of Tax or specific Tax Name. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\nTo know more about what values you need to provide, refer to this [Avalara's API document](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/exemption/)\n.\n",
                    "items" : {
                      "example" : null
                    },
                    "example" : null
                  },
                  "customer_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the type of the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* senior_citizen -\n\nWhen the purchase is made by a customer who meets the jurisdiction requirements to be considered a senior citizen and qualifies for senior citizen tax breaks\n\\* industrial -\n\nWhen the purchase is made by an industrial business\n\\* business -\n\nWhen the purchase is made at a place of business\n\\* residential -\n\nWhen the purchase is made by a customer for home use\n",
                    "enum" : [ "residential", "business", "senior_citizen", "industrial" ],
                    "example" : null
                  },
                  "client_profile_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the Client profile id for the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "taxjar_exemption_category" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the exemption type of the customer. This is applicable only if you use Chargebee's TaxJar integration.\n\\* government -\n\nGovernment\n\\* other -\n\nOther\n\\* wholesale -\n\nWhole-sale\n",
                    "enum" : [ "wholesale", "government", "other" ],
                    "example" : null
                  },
                  "locale" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "entity_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The exemption category of the customer, for USA and Canada. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n\\* med2 -\n\nUS Medical Device Excise Tax with taxable sales tax\n\\* med1 -\n\nUS Medical Device Excise Tax with exempt sales tax\n\\* d -\n\nForeign diplomat\n\\* e -\n\nCharitable or benevolent organization\n\\* f -\n\nReligious organization\n\\* g -\n\nResale\n\\* a -\n\nFederal government\n\\* b -\n\nState government\n\\* c -\n\nTribe/Status Indian/Indian Band\n\\* l -\n\nOther or custom\n\\* m -\n\nEducational organization\n\\* n -\n\nLocal government\n\\* h -\n\nCommercial agricultural production\n\\* i -\n\nIndustrial production/manufacturer\n\\* j -\n\nDirect pay permit\n\\* k -\n\nDirect mail\n\\* p -\n\nCommercial aquaculture\n\\* q -\n\nCommercial Fishery\n\\* r -\n\nNon-resident\n",
                    "enum" : [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p", "q", "r", "med1", "med2" ],
                    "example" : null
                  },
                  "exempt_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Any string value that will cause the sale to be exempted. Use this if your finance team manually verifies and tracks exemption certificates. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "offline_payment_method" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The preferred offline payment method for the customer.\n\\* custom -\n\nCustom\n\\* bank_transfer -\n\nBank Transfer\n\\* boleto -\n\nBoleto\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* sepa_credit -\n\nSEPA Credit\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* no_preference -\n\nNo Preference\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n",
                    "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "auto_close_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Override for this customer, the [site-level setting](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing)\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute is also available at the [subscription level](/docs/api/subscriptions/subscription-object#auto_close_invoices)\nwhich takes precedence.\n",
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the customer. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
                    "example" : null
                  },
                  "fraud_flag" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates whether or not the customer has been identified as fraudulent.\n\\* fraudulent -\n\nThe customer has been marked as fraudulent\n\\* suspicious -\n\nThe customer has been identified as potentially fraudulent by the gateway\n\\* safe -\n\nThe customer has been marked as safe\n",
                    "enum" : [ "safe", "fraudulent" ],
                    "example" : null
                  },
                  "consolidated_invoicing" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether invoices raised on the same day for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> are consolidated. When provided, this overrides the default configuration at the <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html#configuring-consolidated-invoicing\" target=\"_blank\">site-level</a>. This parameter can be provided only when <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html\" target=\"_blank\">Consolidated Invoicing</a> is enabled.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">Any invoices raised when a subscription activates from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, are not consolidated by default. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable consolidation for such invoices.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the related tax field\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/hierarchy_detail" : {
      "get" : {
        "summary" : "Get paginated account hierarchy for a customer",
        "description" : "Retrieves the [account hierarchy tree](/docs/api/hierarchies)\nfor the customer.\n",
        "operationId" : "list_hierarchy_details",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Used for pagination. Set this to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nvalue from the previous API response to fetch the next page.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "hierarchy_operation_type",
          "in" : "query",
          "description" : "Specifies which part of the hierarchy to fetch. Choose from the available operation types.\n\\* complete_hierarchy -\n\nFetches all nodes in the full hierarchy that the customer belongs to.\n\\* subordinates -\n\nFetches all nodes in the sub-hierarchy rooted at the customer, including the customer and its subordinates.\n\\* subordinates_with_unbilled_charges_payable_by_parent -\n\nFetches subordinate nodes with [unbilled charges](/docs/api/customers/customer-object#unbilled_charges)\nfor which the customer is the payment owner.\n\\* path_to_root -\n\nFetches a list of nodes along the path from the customer to the root of the hierarchy.\n\\* immediate_children -\n\nRetrieves only the immediate children of the customer.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "complete_hierarchy", "subordinates", "path_to_root" ],
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "hierarchy" : {
                            "$ref" : "#/components/schemas/Hierarchy",
                            "description" : "Resource object representing hierarchy"
                          }
                        },
                        "required" : [ "hierarchy" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/change_billing_date" : {
      "post" : {
        "summary" : "Change billing date",
        "description" : "Applicable when *calendar billing* (with customer specific billing date support) is enabled. Changes the customer's *billing_date* and/or *billing_day_of_week*.  \nDuring this operation the upcoming renewal dates are **not** updated to align immediately with the new date. The alignment will happen during subsequent renewals.\nFor example, a customer's upcoming renewal is scheduled for *January 10th* , when the customer's billing date is changed to the *15th* , the next renewal date is still *January 10th* . The new billing date does not take effect until the subsequent renewal, which in this case is *February 15th* .\nIf you want to align with the new date immediately (in this example: you want the next renewal to be on *January 15th* and not *January 10th* ) you need to manually [change the subscription's term end](/docs/api/subscriptions/change-term-end).\n",
        "operationId" : "change_billing_date",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "billing_date" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Applicable when *calendar billing*\n(with customer specific billing date support) is enabled. When set, renewals of all the monthly and yearly subscriptions of this customer will be aligned to this date.\n",
                    "maximum" : 31,
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_month</code>, together with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code>, specify, for this customer, the day of the year when the renewals of all the year-based subscriptions take place.</p>\n<p class=\"mb-2\">For example, the renewals happen on 15th July when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_month</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">7</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">15</code>.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable when <a href=\"https://www.chargebee.com/docs/calendar-billing.html\" target=\"_blank\">Calendar Billing</a> (with customer-specific billing date support) is enabled and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date_mode</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manually_set</code>.</p></div>",
                    "maximum" : 12,
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_date_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates whether this customer's *billing_date*\nvalue is derived as per configurations or its specifically set (overriden). When specifically set, the *billing_date*\nwill not be reset even when all of the monthly/yearly subscriptions are cancelled.\n\\* manually_set -\n\nBilling date is specifically set (default configuration is overridden)\n\\* using_defaults -\n\nBilling date is set based on defaults configured.\n",
                    "enum" : [ "using_defaults", "manually_set" ],
                    "example" : null
                  },
                  "billing_day_of_week" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Applicable when *calendar billing*\n(with customer specific billing date support) is enabled. When set, renewals of all the weekly subscriptions of this customer will be aligned to this week day.\n\\* sunday -\n\nSunday\n\\* wednesday -\n\nWednesday\n\\* tuesday -\n\nTuesday\n\\* monday -\n\nMonday\n\\* saturday -\n\nSaturday\n\\* friday -\n\nFriday\n\\* thursday -\n\nThursday\n",
                    "enum" : [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ],
                    "example" : null
                  },
                  "billing_day_of_week_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates whether this customer's *billing_day_of_week*\nvalue is derived as per configurations or its specifically set (overriden). When specifically set, the *billing_day_of_week*\nwill not be reset even when all of the weekly subscriptions are cancelled.\n\\* manually_set -\n\nBilling date is specifically set (default configuration is overridden)\n\\* using_defaults -\n\nBilling date is set based on defaults configured.\n",
                    "enum" : [ "using_defaults", "manually_set" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers" : {
      "get" : {
        "summary" : "List customers",
        "description" : "Retrieves a list of customers added to your Chargebee site. The list contains the necessary customer details such as First Name, Last Name and the Customer ID.\n",
        "operationId" : "list_customers",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '**deleted**\n' attribute will be '**true**\n'.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nIdentifier of the customer.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"9bsvnHgsvmsI\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "9bsvnHgsvmsI",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "first_name",
          "in" : "query",
          "description" : "optional, string filter\n\nFirst name of the customer.\n**Supported operators :**\nis, is_not, starts_with, is_present\n\n**Example →**\n*first_name\\[is\\] = \"John\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "John",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "last_name",
          "in" : "query",
          "description" : "optional, string filter\n\nLast name of the customer.\n**Supported operators :**\nis, is_not, starts_with, is_present\n\n**Example →**\n*last_name\\[is\\] = \"Clint\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Clint",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "email",
          "in" : "query",
          "description" : "optional, string filter\n\nEmail of the customer. Configured email notifications will be sent to this email.\n**Supported operators :**\nis, is_not, starts_with, is_present\n\n**Example →**\n*email\\[is\\] = \"john@test.com\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "john@test.com",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "company",
          "in" : "query",
          "description" : "optional, string filter\n\nCompany name of the customer.\n**Supported operators :**\nis, is_not, starts_with, is_present\n\n**Example →**\n*company\\[is_not\\] = \"Globex Corp\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Globex Corp",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "phone",
          "in" : "query",
          "description" : "optional, string filter\n\nPhone number of the customer.\n**Supported operators :**\nis, is_not, starts_with, is_present\n\n**Example →**\n*phone\\[is_not\\] = \"(541) 754-3010\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "(541) 754-3010",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "auto_collection",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nWhether payments needs to be collected automatically for this customer. Possible values are : on, off.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*auto_collection\\[is\\] = \"on\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "on",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                "enum" : [ "on", "off" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                "enum" : [ "on", "off" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                "enum" : [ "on", "off" ],
                "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                "enum" : [ "on", "off" ],
                "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "taxability",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nSpecifies if the customer is liable for tax. Possible values are : taxable, exempt.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*taxability\\[is\\] = \"taxable\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "taxable",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                "enum" : [ "taxable", "exempt" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                "enum" : [ "taxable", "exempt" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                "enum" : [ "taxable", "exempt" ],
                "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                "enum" : [ "taxable", "exempt" ],
                "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this customer resource is created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[before\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[after] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "offline_payment_method",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe preferred offline payment method for the customer. Possible values are : no_preference, cash, check, bank_transfer, ach_credit, sepa_credit.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*offline_payment_method\\[is\\] = \"cash\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "cash",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "auto_close_invoices",
          "in" : "query",
          "description" : "optional, boolean filter\n\nOverride for this customer, the [site-level setting](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing)\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute is also available at the [subscription level](/docs/api/subscriptions/subscription-object#auto_close_invoices)\nwhich takes precedence. Possible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*auto_close_invoices\\[is\\] = \"true\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "channel",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe subscription channel this object originated from and is maintained in. Possible values are : web, app_store, play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*channel\\[is\\] = \"APP STORE\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "APP STORE",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "business_entity_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe unique ID of the [business entity](/docs/api/advanced-features)\nof this subscription. This is always the same as the\n[business entity](/docs/api/subscriptions/subscription-object#customer_id)\nof the customer.\n\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*business_entity_id\\[is_not\\] = \"business_entity_id\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "business_entity_id",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "relationship",
          "in" : "query",
          "description" : "Parameters for relationship\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "parent_id" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Immediate parent with whom we will link our new customer(child)\n",
                "example" : "future_billing",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                }
              },
              "payment_owner_id" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Parent who is going to pay\n",
                "example" : "active1",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                }
              },
              "invoice_owner_id" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Parent who is going to handle invoices\n",
                "example" : "future_billing",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "customer" : {
                            "$ref" : "#/components/schemas/Customer",
                            "description" : "Resource object representing customer"
                          },
                          "card" : {
                            "$ref" : "#/components/schemas/Card",
                            "description" : "Resource object representing card"
                          }
                        },
                        "required" : [ "customer" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a customer resource. Optionally, creates a payment source for the customer.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Creating payment source</strong></p><p class=\"mb-2\">Although this operation supports creation of a customer with a <a href=\"/docs/api/payment_sources\" class=\"text-blue-600 hover:text-blue-800 underline\">payment source</a>, it is recommended to use one of the <a href=\"/docs/api/payment_sources\" class=\"text-blue-600 hover:text-blue-800 underline\">Payment Source APIs</a> to capture payment source details instead of using this operation. This way, even if payment source creation fails due to errors at the payment gateway, the customer resource can still be created successfully.</p></div></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><h4>Customer</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the multi-business entity feature is enabled, the customer is linked to the business entity specified; otherwise, the customer record is linked to the <a href=\"/docs/api/advanced-features\" class=\"text-blue-600 hover:text-blue-800 underline\">default business entity</a> defined for the site.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Invoices</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee uses the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> object from the customer to set the values in the <a href=\"/docs/api/invoices/invoice-object#billing_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code></a> of the invoices generated for the customer.</li>\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> object does not include the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_name</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">last_name</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">company</code> fields, Chargebee automatically uses the values from <a href=\"/docs/api/customers/customer-object#first_name\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.first_name</code></a>, <a href=\"/docs/api/customers/customer-object#last_name\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.last_name</code></a>, and <a href=\"/docs/api/customers/customer-object#company\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.company</code></a> (if available) when generating invoices.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h4>Payment source</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code> parameter is passed, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> resource of the appropriate type is created for the customer.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_account</code> parameter is passed, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> resource of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">direct_debit</code> is created for the customer.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code> parameter is passed, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> resource of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code> is created for the customer.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><h5>Integrations</h5></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If CRM systems are connected to Chargebee, a corresponding record is created in the connected CRM (such as Salesforce, and HubSpot).</li>\n</ul></div></div></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> parameter to create a payment source for the customer. Using payment intents is the recommended way to create a payment source in Chargebee for both <a href=\"https://www.chargebee.com/docs/payments/2.0/others/psd2-sca\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Strong Customer Authentication</a> (SCA) (i.e. 3D-Secure) and non-SCA flows.</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Create a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> resource by calling the <a href=\"payment_intents/create-a-payment-intent\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a payment intent API</a>.</li>\n<li class=\"text-base leading-relaxed\">Pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> object to your frontend and use Chargebee.js to capture the payment source details from the customer. Use <a href=\"https://www.chargebee.com/checkout-portal-docs/payment-method-helper.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Payment Method Helpers</a> to show payment method UIs and collect payment method details from the customer.</li>\n<li class=\"text-base leading-relaxed\">Listen to the <a href=\"events/webhook/payment_intent_updated\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent_updated</code></a> event. Once the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorized</code>, pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.id</code> using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent[id]</code> parameter in this API call.</li>\n</ol></div></div><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">If you prefer to use the payment gateway&#x27;s SDKs to capture the payment method details, you can then use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code> parameter in this API to pass the payment method token and other details.</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the JavaScript library of your payment gateway to capture the payment method details. Examples include:</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://stripe.com/docs/js\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Stripe.js</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Braintree.js</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://developer.authorize.net/api/reference/features/acceptjs.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Accept.js</a> (if you use <a href=\"https://developer.authorize.net/api/reference/features/acceptjs.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Authorize.Net</a>)</li>\n<li class=\"text-base leading-relaxed\">Adyen&#x27;s <a href=\"https://docs.adyen.com/online-payments/classic-integrations/api-integration-ecommerce/cse-integration-ecommerce\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Client-Side Encryption</a> (if you use Adyen)</li>\n</ul><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Pass the payment method token using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method[reference_id]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method[tmp_token]</code> parameter along with any additional parameters required by the payment gateway to create the payment source.</li>\n</ol></div></div><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_account</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">You can pass raw bank account details via this API. Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_account</code> parameter to pass the bank account details.</p></div></div><div class=\"use-case\"><div class=\"use-case-title\"><h4>Create payment source using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code></h4></div><div class=\"use-case-description\"><p class=\"mb-2\">If you are PCI compliant, you can pass raw card details via this API. Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code> parameter to pass the card details.</p></div></div></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/customers?prod_cat_ver=2#update_a_customer\"><p class=\"mb-2\">Update a customer</p></a><a href=\"/docs/api/customers?prod_cat_ver=2#update_billing_info_for_a_customer\"><p class=\"mb-2\">Update billing info for a customer</p></a></div>",
        "operationId" : "create_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Id for the new customer. If not given, this will be auto-generated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "first_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "First name of the customer.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "last_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Last name of the customer.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "email" : {
                    "type" : "string",
                    "format" : "email",
                    "deprecated" : false,
                    "description" : "Email address of the customer. Configured email notifications are sent to this email address. Invalid email address will result in an error.\n",
                    "maxLength" : 70,
                    "example" : null
                  },
                  "preferred_currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (in [ISO 4217 format](https://www.iso.org/iso-4217-currency-codes.html)) of the customer.  \n**Prerequisites**\n\n* Applicable only when [Multi-currency pricing](https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing) is enabled.\n* The currency must be [enabled](https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing#1-adding-and-managing-currencies) in Chargebee Billing before passing this parameter.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "phone" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Phone number of the customer.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "company" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Company name of the customer.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "default" : "on",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Whether payments needs to be collected automatically for this customer.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offline_payment_method</code> cannot be passed when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>.</li>\n</ul></div>\n* on - <p class=\"mb-2\">Whenever an invoice is created, an automatic attempt to charge the customer&#x27;s payment method is made.</p>\n* off - <p class=\"mb-2\">Automatic collection of charges will not be made. All payments must be recorded offline.</p>",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<span featureId=\"cb-net-d-payment-terms\" isMicro=\"true\"></span>",
                    "example" : null
                  },
                  "allow_direct_debit" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Whether the customer can pay via Direct Debit.\n",
                    "example" : null
                  },
                  "vat_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The VAT/tax registration number for the customer. For customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n), the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>\ncan be overridden by setting\n<code><a href=\"/docs/api/customers/customer-object#vat_number_prefix\">vat_number_prefix</a></code>\n.</p>",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "vat_number_prefix" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                    "maxLength" : 10,
                    "example" : null
                  },
                  "entity_identifier_scheme" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "entity_identifier_standard" : {
                    "type" : "string",
                    "default" : "iso6523-actorid-upis",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nCurrently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "registered_for_gst" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
                    "example" : null
                  },
                  "is_einvoice_enabled" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines whether the customer is e-invoiced. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nor not set to any value, the customer is e-invoiced so long as e-invoicing is enabled for their country (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>\n). When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the customer is not e-invoiced even if e-invoicing is enabled for their country.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">It is possible to set a value for this flag even when E-Invoicing is disabled. However, it comes into effect only when E-Invoicing is enabled.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                    "example" : null
                  },
                  "einvoicing_method" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Determines whether to send an e-invoice manually or automatic.\n\\* automatic -\n\nUse this value to send e-invoice every time an invoice or credit note is created.\n\\* manual -\n\nWhen manual is selected the automatic e-invoice sending is disabled. Use this value to send e-invoice manually through UI or API.\n\\* site_default -\n\nThe default value of the site which can be overridden at the customer level.\n",
                    "enum" : [ "automatic", "manual", "site_default" ],
                    "example" : null
                  },
                  "taxability" : {
                    "type" : "string",
                    "default" : "taxable",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies if the customer is liable for tax.</p>\n* taxable - <p class=\"mb-2\">Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>.\nIn some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that&#x27;s not available either, the tax is taken as zero.</p>\n* exempt - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Customer is exempted from tax. When using Chargebee&#x27;s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li>\n<li class=\"text-base leading-relaxed\">However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code> attributes if you use Chargebee&#x27;s <a href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\" target=\"_blank\">AvaTax for Sales</a> or specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee&#x27;s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> based on the state/region/province of the taxable address.</li>\n</ul>",
                    "enum" : [ "taxable", "exempt" ],
                    "example" : null
                  },
                  "exemption_details" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Indicates the exemption information. You can customize customer exemption based on specific Location, Tax level (Federal, State, County and Local), Category of Tax or specific Tax Name. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\nTo know more about what values you need to provide, refer to this [Avalara's API document](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/exemption/)\n.\n",
                    "items" : {
                      "example" : null
                    },
                    "example" : null
                  },
                  "customer_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the type of the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* industrial -\n\nWhen the purchase is made by an industrial business\n\\* residential -\n\nWhen the purchase is made by a customer for home use\n\\* senior_citizen -\n\nWhen the purchase is made by a customer who meets the jurisdiction requirements to be considered a senior citizen and qualifies for senior citizen tax breaks\n\\* business -\n\nWhen the purchase is made at a place of business\n",
                    "enum" : [ "residential", "business", "senior_citizen", "industrial" ],
                    "example" : null
                  },
                  "client_profile_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the Client profile id for the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "taxjar_exemption_category" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the exemption type of the customer. This is applicable only if you use Chargebee's TaxJar integration.\n\\* other -\n\nOther\n\\* government -\n\nGovernment\n\\* wholesale -\n\nWhole-sale\n",
                    "enum" : [ "wholesale", "government", "other" ],
                    "example" : null
                  },
                  "business_customer_without_vat_number" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Confirms that a customer is a valid business without an EU/UK VAT number.\n",
                    "example" : null
                  },
                  "locale" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines which region-specific language Chargebee uses to communicate with the customer. Use the <a href=\"https://www.chargebee.com/docs/billing/2.0/customers/configure-multiple-languages#step-2-download-the-language-pack-and-provide-the-translations\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">language pack</a> to customize the translations for each locale.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value must be one from the <a href=\"https://www.chargebee.com/docs/billing/2.0/customers/supported-locales\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">supported locale list</a>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/customers/configure-multiple-languages#enable-multiple-languages-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Add and activate</a> the locale in Chargebee.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you don&#x27;t pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">locale</code>, or if you pass it but it is not added and activated in Chargebee, then the <a href=\"https://www.chargebee.com/docs/billing/2.0/customers/configure-multiple-languages#primary-language-of-your-chargebee-site\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">primary language</a> for customers would be used.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "entity_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The exemption category of the customer, for USA and Canada. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n\\* l -\n\nOther or custom\n\\* m -\n\nEducational organization\n\\* n -\n\nLocal government\n\\* h -\n\nCommercial agricultural production\n\\* i -\n\nIndustrial production/manufacturer\n\\* j -\n\nDirect pay permit\n\\* k -\n\nDirect mail\n\\* p -\n\nCommercial aquaculture\n\\* q -\n\nCommercial Fishery\n\\* r -\n\nNon-resident\n\\* d -\n\nForeign diplomat\n\\* e -\n\nCharitable or benevolent organization\n\\* f -\n\nReligious organization\n\\* g -\n\nResale\n\\* a -\n\nFederal government\n\\* b -\n\nState government\n\\* c -\n\nTribe/Status Indian/Indian Band\n\\* med2 -\n\nUS Medical Device Excise Tax with taxable sales tax\n\\* med1 -\n\nUS Medical Device Excise Tax with exempt sales tax\n",
                    "enum" : [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p", "q", "r", "med1", "med2" ],
                    "example" : null
                  },
                  "exempt_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Any string value that will cause the sale to be exempted. Use this if your finance team manually verifies and tracks exemption certificates. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the customer. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
                    "example" : null
                  },
                  "offline_payment_method" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The preferred offline payment method for the customer.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/customers/customer-object#auto_collection\" class=\"text-blue-600 hover:text-blue-800 underline\">auto_collection</a> must be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">off</code> when passing this parameter.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/payments/2.0/offline-checkout/offline_payments#step-1-configuring-offline-payments\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Offline payment methods</a> are enabled.</li>\n</ul></div>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* cash - <p class=\"mb-2\">Cash</p>\n* no_preference - <p class=\"mb-2\">No Preference</p>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* check - <p class=\"mb-2\">Check</p>\n* eu_automated_bank_transfer - <p class=\"mb-2\">EU Automated Bank Transfer</p>\n* jp_automated_bank_transfer - <p class=\"mb-2\">JP Automated Bank Transfer</p>\n* uk_automated_bank_transfer - <p class=\"mb-2\">UK Automated Bank Transfer</p>\n* custom - <p class=\"mb-2\">Custom</p>\n* boleto - <p class=\"mb-2\">Boleto</p>\n* mx_automated_bank_transfer - <p class=\"mb-2\">MX Automated Bank Transfer</p>\n* us_automated_bank_transfer - <p class=\"mb-2\">US Automated Bank Transfer</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>",
                    "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                    "example" : null
                  },
                  "auto_close_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Override for this customer, the [site-level setting](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing)\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute is also available at the [subscription level](/docs/api/subscriptions/subscription-object#auto_close_invoices)\nwhich takes precedence.\n",
                    "example" : null
                  },
                  "consolidated_invoicing" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether invoices raised on the same day for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> are consolidated. When provided, this overrides the default configuration at the <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html#configuring-consolidated-invoicing\" target=\"_blank\">site-level</a>. This parameter can be provided only when <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html\" target=\"_blank\">Consolidated Invoicing</a> is enabled.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">Any invoices raised when a subscription activates from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, are not consolidated by default. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable consolidation for such invoices.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "token_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The Chargebee payment token generated by <a href=\"https://www.chargebee.com/checkout-portal-docs/3ds-helper-overview.html#using-gateway-s-hosted-fields\">Chargebee JS</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nThe payment token created via Chargebee JS uses the gateway selected through <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\">Smart Routing</a>.\nExplicitly passing a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway_id</code>\nin this API call will not override the gateway associated with the token.</p></div>",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique ID of the [business entity](/docs/api/advanced-features) this customer should be [linked](/docs/api/advanced-features) to. An alternative way of passing this parameter is by means of a [custom HTTP header](/docs/api/advanced-features).  \n**Prerequisites**\n\n* Multiple business entities have been created for the site.  \n**Default behavior**\n\n* When not provided, the customer is linked to the [default business entity](/docs/api/advanced-features) defined for the site.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card. Use this parameter to pass raw card details. Passing raw card data via API involves PCI liability at your end due to the sensitivity of the data.\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The gateway account in which these card details are stored.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required when</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">All of the following conditions are met together:</li>\n<li class=\"text-base leading-relaxed\">Passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code> parameter.</li>\n<li class=\"text-base leading-relaxed\">There are multiple <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment gateway</a> accounts configured for the site.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Smart Routing</a> is not configured for card payments.</li>\n</ul></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The 16 digit credit card number.  \nIf you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js), you can specify the Braintree encrypted card number here.\n",
                        "maxLength" : 1500,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "cvv" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The card verification value (CVV). If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted CVV here.\n",
                        "maxLength" : 520,
                        "example" : null
                      },
                      "preferred_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The customer's preferred card scheme for co-branded cards.  \n**Note**:\nCurrently, this parameter is only supported for Stripe.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card scheme.\n\\* mastercard -\n\nA MasterCard scheme.\n\\* visa -\n\nA Visa card scheme.\n\\* mada -\n\nA Mada card scheme.\n",
                        "enum" : [ "cartes_bancaires", "mastercard", "visa" ],
                        "example" : null
                      },
                      "billing_addr1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_addr2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "bank_account" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for bank_account\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The gateway account in which this payment source is stored.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required when</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">All of the following conditions are met together:</li>\n<li class=\"text-base leading-relaxed\">Passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_account</code> parameter.</li>\n<li class=\"text-base leading-relaxed\">There are multiple <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment gateway</a> accounts configured for the site.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Smart Routing</a> is not configured for bank account payments.</li>\n</ul></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "iban" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's International Bank Account Number. For the [GoCardless](https://www.chargebee.com/docs/gocardless.html)\nplatform, this can be the [local bank details](https://developer.gocardless.com/api-reference/#appendix-local-bank-details)\n",
                        "maxLength" : 50,
                        "minLength" : 10,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's first name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's last name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's company name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Account holder's email address. If not passed, details from customer details will be considered. All Direct Debit compliant emails will be sent to this email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the account holder that is linked to the bank account.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "bank_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Name of account holder's bank.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "account_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's bank account number.\n",
                        "maxLength" : 17,
                        "minLength" : 4,
                        "example" : null
                      },
                      "routing_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Bank account routing number.\n",
                        "maxLength" : 9,
                        "minLength" : 3,
                        "example" : null
                      },
                      "bank_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates the bank code.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "account_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Represents the account type used to create a payment source. Available for [Authorize.net](https://www.authorize.net/)\nACH and Razorpay NetBanking users only. If not passed, account type is taken as null.\n\\* checking -\n\nChecking Account\n\\* business_checking -\n\nBusiness Checking Account\n\\* savings -\n\nSavings Account\n\\* current -\n\nCurrent Account\n",
                        "enum" : [ "checking", "savings", "business_checking", "current" ],
                        "example" : null
                      },
                      "account_holder_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For Stripe ACH users only. Indicates the account holder type.\n\\* individual -\n\nIndividual Account.\n\\* company -\n\nCompany Account.\n",
                        "enum" : [ "individual", "company" ],
                        "example" : null
                      },
                      "echeck_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For Authorize.net ACH users only. Indicates the type of eCheck.\n\\* ppd -\n\nPayment Authorization is prearranged between the customer and the merchant.\n\\* ccd -\n\nPayment Authorization agreement from the corporate customer is required. Applicable for business_checking account_type.\n\\* web -\n\nPayment Authorization obtained from the customer via the internet.\n",
                        "enum" : [ "web", "ppd", "ccd" ],
                        "example" : null
                      },
                      "issuing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "[two-letter(alpha2)](https://www.iso.org/iso-3166-country-codes.html)\nISO country code. Required when local bank details are provided, and not IBAN.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "swedish_identity_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For GoCardless Autogiro users only. The civic/company number (personnummer, samordningsnummer, or organisationsnummer) of the customer. Must be supplied if the customer's bank account is denominated in Swedish krona (SEK). This field cannot be changed once it has been set.\n",
                        "maxLength" : 12,
                        "minLength" : 10,
                        "example" : null
                      },
                      "billing_address" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address associated with the bank account. The value is a JSON object with the following keys and their values:-   <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_name</code>:(string, max chars=150) The first name of the contact.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">last_name</code>:(string, max chars=150) The last name of the contact.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">company_name</code>:(string, max chars=250) The company name for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line1</code>:(string, max chars=180) The first line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line2</code>:(string, max chars=180) The second line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>:(string) The name of the country for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_code</code>:(string, max chars=50) The two-letter, <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO 3166 alpha-2</a> country code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code>:(string, max chars=50) The name of the state or province for the address. When not provided, this is set automatically for US, Canada, and India.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>:(string, max chars=50) The <a href=\"https://www.iso.org/obp/ui/#search/code/\">ISO 3166-2 state/province code</a> without the country prefix. This is supported for USA, Canada, and India. For instance, for Arizona (USA), set state_code as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC)</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">city</code>:(string, max chars=50) The city name for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">postal_code</code>:(string, max chars=20) The postal or ZIP code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">phone</code>:(string, max chars=50) The contact phone number for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>:(string, max chars=70) The contact email address for the address.</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_method" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_method\n",
                    "properties" : {
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of payment method. For more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* go_pay -\n\nPayments made via GoPay\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* pix -\n\nPayments made via Pix\n\\* pay_by_bank -\n\nPay By Bank\n\\* sofort -\n\nPayments made via Sofort.\n\\* twint -\n\nPayments made via Twint\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* giropay -\n\nPayments made via giropay.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* upi -\n\nUPI Payments.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* payme -\n\nPayments made via PayMe\n\\* pay_to -\n\nPayments made via PayTo\n\\* pay_co -\n\nPayments made via PayCo\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* swish -\n\nPayments made via Swish\n\\* venmo -\n\nPayments made via Venmo\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* online_banking_poland -\n\nPayments made via Online Banking Poland\n\\* trustly -\n\nTrustly\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reference id. In the case of Amazon and PayPal this will be the *billing agreement id* .\nFor GoCardless direct debit this will be 'mandate id'. In the case of card this will be the identifier provided by the gateway/card vault for the specific payment method resource. **Note:**\nThis is not the one-time temporary token provided by gateways like Stripe.\n\nFor more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n",
                        "maxLength" : 200,
                        "example" : null
                      },
                      "tmp_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Single-use tokens created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet, card details or direct debit. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.Net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "issuing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n) is available as an option.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Identifier for the <a href=\"/docs/api/payment_intents\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code></a> resource. If you provide this parameter, you do not need to pass other <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> parameters.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value of <a href=\"/docs/api/payment_intents/payment_intent-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent.status</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorized</code>.</li>\n</ul></div>",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment method type.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code></li>\n</ul></div>\n* card - <p class=\"mb-2\">card</p>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* dotpay - <p class=\"mb-2\">dotpay</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* upi - <p class=\"mb-2\">upi</p>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">google_pay</p>\n* paypal_express_checkout - <p class=\"mb-2\">paypal_express_checkout</p>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* ideal - <p class=\"mb-2\">ideal</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* direct_debit - <p class=\"mb-2\">direct_debit</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* bancontact - <p class=\"mb-2\">bancontact</p>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* apple_pay - <p class=\"mb-2\">apple_pay</p>\n* online_banking_poland - <p class=\"mb-2\">Online Banking Poland</p>\n<span featureId=\"cb-online-banking-poland\" isMicro=\"true\"></span>\n* giropay - <p class=\"mb-2\">giropay</p>\n* sofort - <p class=\"mb-2\">sofort</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "entity_identifiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for entity_identifiers\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nin Chargebee. When not provided, it is autogenerated.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "scheme" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>.\nThis identifies the customer entity on the Peppol network. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10101010-STO-10</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "standard" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>.\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "default" : "iso6523-actorid-upis",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the related tax field\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "bank_account" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "entity_identifiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_method" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/add_contact" : {
      "post" : {
        "summary" : "Add contacts to a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Add a <a href=\"/docs/api/contacts\" class=\"text-blue-600 hover:text-blue-800 underline\">contact</a> to a <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> resource.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The customer must have fewer than 10 contacts already added.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Email notifications</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contact[send_billing_email]</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the contact receives <a href=\"https://www.chargebee.com/docs/billing/2.0/customers/customers#billing-emails\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">billing emails</a>.</li>\n<li class=\"text-base leading-relaxed\">If you set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contact[send_account_email]</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the contact receives <a href=\"https://www.chargebee.com/docs/billing/2.0/customers/customers#account-emails\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">account emails</a>.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Check the customer&#x27;s <a href=\"/docs/api/customers/customer-object#contacts\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contacts[]</code></a> array and ensure it contains fewer than 10 contacts before calling this API.</p></div>",
        "operationId" : "add_contacts_to_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "contact" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contact\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Unique reference ID provided for the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the contact.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the contact.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "label" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Label/Tag provided for contact.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "enabled" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Contact enabled / disabled\n",
                        "example" : null
                      },
                      "send_billing_email" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Whether Billing Emails option is enabled for the contact.\n",
                        "example" : null
                      },
                      "send_account_email" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Whether Account Emails option is enabled for the contact.\n",
                        "example" : null
                      }
                    },
                    "required" : [ "email" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "contact" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/contacts" : {
      "get" : {
        "summary" : "List of contacts for a customer",
        "description" : "This API retrieves all the contacts for a customer.\n",
        "operationId" : "list_of_contacts_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "contact" : {
                            "$ref" : "#/components/schemas/Contact",
                            "description" : "Resource object representing contact"
                          }
                        },
                        "required" : [ "contact" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/clear_personal_data" : {
      "post" : {
        "summary" : "Clear Personal Data of a customer",
        "description" : "Clear personal details of a customer using this API.\n",
        "operationId" : "clear_personal_data_of_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/merge" : {
      "post" : {
        "summary" : "Merge customers",
        "description" : "This API moves a customer's payment methods, subscriptions, invoices, credit notes, transactions, unbilled charges, and orders to another customer. Events and email logs will not be moved. The API execution is asynchronous.  \n**Note**\n\n* Moving virtual bank accounts from one customer to another is not supported in this API.\n* Merging customers from different [business entities](/docs/api/getting-started) is not permitted.\n",
        "operationId" : "merge_customers",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "from_customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "From customer id.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "to_customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "To customer id.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "from_customer_id", "to_customer_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/collect_payment" : {
      "post" : {
        "summary" : "Collect payment for customer",
        "description" : "**Note:**\nThis operation optionally supports 3DS verification flow. To achieve the same, create the [Payment Intent](/docs/api/getting-started)\nand pass it as input parameter to this API.\n\nThis API can be used to collect the payments for customer's **payment_due** and **not_paid** invoices. You can either choose to collect the payment from an existing payment source or a new payment source. You can choose to either retain or discard the new payment source, which is being used for payment. If the amount collected exceeds the invoice amount, the surplus will be counted in as excess payments.\n",
        "operationId" : "collect_payment_for_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Amount to be collected. If this parameter is not passed then the invoice(s) amount to collect will be collected.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Payment source used for the payment.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "token_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Token generated by Chargebee JS representing payment method details.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "retain_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the payment source should be retained for the customer.\n",
                    "example" : null
                  },
                  "payment_initiator" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of initiator to be used for the payment request triggered by this operation.\n\\* customer -\n\nPass this value to indicate that the request is initiated by the customer\n\\* merchant -\n\nPass this value to indicate that the request is initiated by the merchant\n",
                    "enum" : [ "customer", "merchant" ],
                    "example" : null
                  },
                  "payment_method" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_method\n",
                    "properties" : {
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of payment method. For more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* go_pay -\n\nPayments made via GoPay\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* ideal -\n\nPayments made via iDEAL.\n\\* pix -\n\nPayments made via Pix\n\\* pay_by_bank -\n\nPay By Bank\n\\* sofort -\n\nPayments made via Sofort.\n\\* twint -\n\nPayments made via Twint\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* swish -\n\nPayments made via Swish\n\\* venmo -\n\nPayments made via Venmo\n\\* giropay -\n\nPayments made via giropay.\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* upi -\n\nUPI Payments.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* payme -\n\nPayments made via PayMe\n\\* pay_to -\n\nPayments made via PayTo\n\\* pay_co -\n\nPayments made via PayCo\n\\* trustly -\n\nTrustly\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reference id. In the case of Amazon and PayPal this will be the *billing agreement id* .\nFor GoCardless direct debit this will be 'mandate id'. In the case of card this will be the identifier provided by the gateway/card vault for the specific payment method resource. **Note:**\nThis is not the one-time temporary token provided by gateways like Stripe.\n\nFor more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n",
                        "maxLength" : 200,
                        "example" : null
                      },
                      "tmp_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Single-use token created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet or card details. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.Net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The credit card number without any format. If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted card number here.\n",
                        "maxLength" : 1500,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "cvv" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The card verification value (CVV). If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted CVV here.\n",
                        "maxLength" : 520,
                        "example" : null
                      },
                      "preferred_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The customer's preferred card scheme for co-branded cards.  \n**Note**:\nCurrently, this parameter is only supported for Stripe.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card scheme.\n\\* mada -\n\nA Mada card scheme.\n\\* mastercard -\n\nA MasterCard scheme.\n\\* visa -\n\nA Visa card scheme.\n",
                        "enum" : [ "cartes_bancaires", "mastercard", "visa" ],
                        "example" : null
                      },
                      "billing_addr1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_addr2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n\\* card -\n\ncard\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* dotpay -\n\ndotpay\n\\* faster_payments -\n\nFaster Payments\n\\* upi -\n\nupi\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* payme -\n\nPayments made via PayMe\n\\* go_pay -\n\nPayments made via GoPay\n\\* google_pay -\n\ngoogle_pay\n\\* trustly -\n\nTrustly\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* venmo -\n\nVenmo\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* alipay -\n\nPayments made via Alipay.\n\\* ideal -\n\nideal\n\\* pay_to -\n\nPayTo\n\\* boleto -\n\nboleto\n\\* pay_co -\n\nPayments made via PayCo\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* direct_debit -\n\ndirect_debit\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* bancontact -\n\nbancontact\n\\* pay_by_bank -\n\nPay By Bank\n\\* apple_pay -\n\napple_pay\n\\* giropay -\n\ngiropay\n\\* sofort -\n\nsofort\n\\* amazon_payments -\n\nAmazon Payments\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "invoice_allocations" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice_allocations\n",
                    "properties" : {
                      "invoice_id" : {
                        "type" : "array",
                        "description" : "Identifier for the invoice. Multiple invoices can be passed.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "allocation_amount" : {
                        "type" : "array",
                        "description" : "Amount that will override the Invoice amount to be collected. If not specified Invoice amount to collect will be taken as default. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "invoice_id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "invoice_allocations" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_method" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "customer", "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/record_excess_payment" : {
      "post" : {
        "summary" : "Record an excess payment for a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Records an offline payment for a customer and adds it to the customer&#x27;s <a href=\"customers#customer_balances\" class=\"text-blue-600 hover:text-blue-800 underline\">excess payments balance</a>.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee automatically applies excess payments to future invoices, subject to <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#credits-flexibility\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">limits set at the site level</a> or overridden for subscriptions via <a href=\"subscriptions#subscription_billing_override\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.billing_override</code></a>.</li>\n<li class=\"text-base leading-relaxed\">Use the <a href=\"invoices#apply_payments_for_an_invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Apply payments to an invoice API</a> to apply excess payments to an invoice on an ad-hoc basis.</li>\n</ul></div></div></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/invoices?prod_cat_ver=2#apply_payments_for_an_invoice\"><p class=\"mb-2\">Apply payments for an invoice</p></a></div>",
        "operationId" : "record_an_excess_payment_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Remarks, if any, on the payment.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "transaction" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transaction\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique ID of the transaction.  \n**Constraints**\n\n* The value must be unique within the site; it should not collide with any existing transaction ID.\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The payment transaction amount.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "currency_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The currency code (ISO 4217 format) for the transaction.\n",
                        "maxLength" : 3,
                        "example" : null
                      },
                      "date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates when this transaction occurred.\n",
                        "example" : null
                      },
                      "payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment method of this transaction</p>\n* cash - <p class=\"mb-2\">Cash</p>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* custom - <p class=\"mb-2\">Custom payment method.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/custom-payment-methods&amp;ref=feature\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Custom payment methods</a> must be enabled in Chargebee Billing.</li>\n</ul></div>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* check - <p class=\"mb-2\">Check</p>\n* upi - <p class=\"mb-2\">upi</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* card - <p class=\"mb-2\">Card</p>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* giropay - <p class=\"mb-2\">giropay</p>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>",
                        "enum" : [ "cash", "check", "bank_transfer", "other", "custom" ],
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reference number for this transaction. e.g check number in case of 'check' payments.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "custom_payment_method_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Identifier of the custom payment method of this transaction.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[payment_method]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>.</li>\n</ul></div>",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "date", "payment_method" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "transaction" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "customer", "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/update_contact" : {
      "post" : {
        "summary" : "Update contacts for a customer",
        "description" : "Updates the details of a contact for a customer. You can give the field data to be updated as input parameters along with the Contact ID to update it.\n",
        "operationId" : "update_contacts_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "contact" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contact\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Unique reference ID provided for the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the contact.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the contact.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "label" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Label/Tag provided for contact.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "enabled" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Contact enabled / disabled\n",
                        "example" : null
                      },
                      "send_billing_email" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Whether Billing Emails option is enabled for the contact.\n",
                        "example" : null
                      },
                      "send_account_email" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Whether Account Emails option is enabled for the contact.\n",
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "contact" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/update_hierarchy_settings" : {
      "post" : {
        "summary" : "Update account hierarchy access settings for a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When the customer is part of an <a href=\"https://www.chargebee.com/docs/account-hierarchy.html\" target=\"_blank\">account hierarchy</a>, this operation updates the access privileges that both the customer and its parent have to the customer&#x27;s data.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Terminology</strong>\nThe term &quot;parent&quot; usually refers to the customer with the ID <code><a href=\"/docs/api/customers/customer-object#relationship_payment_owner_id\">payment_owner_id</a></code>. However, if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code> is the same as the child&#x27;s ID (given by the path parameter), the &quot;parent&quot; is identified by <code><a href=\"/docs/api/customers/customer-object#relationship_parent_id\">parent_id</a></code>.</p></div><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nYou cannot use this endpoint to change the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_id</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code> for the customer. To change them, <a href=\"/docs/api/customers/delink-a-customer\">unlink the customer</a> and then call <a href=\"/docs/api/customers/link-a-customer\">Link a customer</a> with the updated values.</p></div></div>",
        "operationId" : "update_hierarchy_access_settings_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "use_default_hierarchy_settings" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Decides if Chargebee should apply settings from the <a href=\"https://www.chargebee.com/docs/2.0/account-hierarchy.html#advanced-mode\" target=\"_blank\">Chargebee Billing UI</a> or from this API request.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: Chargebee removes existing settings stored in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_account_access</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">child_account_access</code> attributes of the customer. The settings configured in the Chargebee Billing UI apply for the customer.</li>\n<li class=\"text-base leading-relaxed\">If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: Chargebee replaces existing settings stored in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_account_access</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">child_account_access</code> parameters with those passed in this API call. If any of those parameters are not passed, they remain unchanged for the customer.</li>\n</ul>",
                    "example" : null
                  },
                  "parent_account_access" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for parent_account_access\n",
                    "properties" : {
                      "portal_edit_child_subscriptions" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Sets parent's level of access to child subscriptions on the Self-Serve Portal.\n\\* yes -\n\nThe parent account can view and edit the subscriptions of the child account.\n\\* no -\n\nThe parent account cannot view or edit the subscriptions of the child account.\n\\* view_only -\n\nThe parent account can only view the subscriptions of the child account.\n",
                        "enum" : [ "yes", "view_only", "no" ],
                        "example" : null
                      },
                      "portal_download_child_invoices" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Sets parent's level of access to child invoices on the Self-Serve Portal.\n\\* yes -\n\nThe parent account can view and download the invoices of the child account.\n\\* no -\n\nThe parent account can neither view nor download the invoices of the child account.\n\\* view_only -\n\nThe parent account can only view the invoices of the child account.\n",
                        "enum" : [ "yes", "view_only", "no" ],
                        "example" : null
                      },
                      "send_subscription_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the parent account will receive subscription-related emails sent to the child account.</p>",
                        "example" : null
                      },
                      "send_payment_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the parent account will receive payment-related emails sent to the child account.</p>",
                        "example" : null
                      },
                      "send_invoice_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the parent account will receive invoice-related emails sent to the child account.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "child_account_access" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "When the customer is part of an \\[account hierarchy\\](https://www.chargebee.com/docs/account-hierarchy.html) , this attribute defines the level of access that the customer has to its own information.\n",
                    "properties" : {
                      "portal_edit_subscriptions" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines the child's access to its own subscriptions in the Self-Serve Portal.\n\\* view_only -\n\nThe child account can only view its subscriptions.\n\\* yes -\n\nThe child account can view and edit its subscriptions.\n",
                        "enum" : [ "yes", "view_only" ],
                        "example" : null
                      },
                      "portal_download_invoices" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines the child's access to its own invoices in the Self-Serve Portal.\n\\* view_only -\n\nThe child account can view but not download its invoices.\n\\* no -\n\nThe child account cannot view or download its own invoices.\n\\* yes -\n\nThe child account can both view and download its invoices.\n",
                        "enum" : [ "yes", "view_only", "no" ],
                        "example" : null
                      },
                      "send_subscription_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the child account receives email notifications for its subscriptions.</p>",
                        "example" : null
                      },
                      "send_payment_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the child account receives email notifications for payment-related activities for its invoices.</p>",
                        "example" : null
                      },
                      "send_invoice_emails" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the child account receives email notifications for its invoices.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "child_account_access" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "parent_account_access" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/update_billing_info" : {
      "post" : {
        "summary" : "Update billing info for a customer",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Updates a customer&#x27;s billing information, including billing address and tax-related details such as VAT number.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">See <strong class=\"font-semibold\">Related APIs</strong> for other customer attributes that can be updated.</p></div></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><p class=\"mb-2\">In some cases, passing the following parameters can cause the request to fail: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_customer_without_vat_number</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_providers_fields</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">registered_for_gst</code>. See <strong class=\"font-semibold\">Implementation Notes</strong> for more details.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Customer</p></strong><div class=\"impact-description\"><p class=\"mb-2\">For certain parameters, if you do not include a parameter in the request, Chargebee removes the corresponding attribute from the customer object. To retain an existing attribute, you must explicitly include its parameter in your request.</p><h5>Parameters that are affected by this behavior</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.first_name</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.last_name</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.phone</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.email</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.line1</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.line2</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.line3</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.city</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.state</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.zip</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_customer_without_vat_number</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">registered_for_gst</code></li>\n</ul><h5>Example</h5><p class=\"mb-2\">Assume the customer object has these attributes set:</p><p class=\"mb-2\"><strong class=\"font-semibold\">Current attributes:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.first_name</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.last_name</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.phone</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.email</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code></li>\n</ul><p class=\"mb-2\">You make an API call with only the following parameters:</p><p class=\"mb-2\"><strong class=\"font-semibold\">Request parameters:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.first_name</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.last_name</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.phone</code></li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Result:</strong> The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.email</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code> attributes are removed from the customer object because they weren&#x27;t included in the request. To preserve these attributes, include them in the request.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee uses the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> object from the customer to set the values in the <a href=\"/docs/api/invoices/invoice-object#billing_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code></a> of the invoices generated for the customer.</li>\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> object does not include the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_name</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">last_name</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">company</code> fields, Chargebee automatically uses the values from <a href=\"/docs/api/customers/customer-object#first_name\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.first_name</code></a>, <a href=\"/docs/api/customers/customer-object#last_name\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.last_name</code></a>, and <a href=\"/docs/api/customers/customer-object#company\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.company</code></a> (if available) when generating invoices.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Ensure that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_customer_without_vat_number</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> are not passed together in the same request.</li>\n<li class=\"text-base leading-relaxed\">Ensure that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_providers_fields</code> is not passed if <a href=\"https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Indian GST</a> is not configured for your site.</li>\n<li class=\"text-base leading-relaxed\">Ensure that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">registered_for_gst</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> is not passed if <a href=\"https://www.chargebee.com/docs/australian-gst.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Australian GST</a> is not configured for your site.</li>\n</ul></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><p class=\"mb-2\">Prevent tax provider errors due to missing billing information</p></div><div class=\"use-case-description\"><p class=\"mb-2\">After integrating <a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/tax-integration-index\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">tax providers</a>, you might encounter unintended tax calculation failures during renewals. The error message typically states:</p><blockquote>\n<p class=\"mb-2\">Unable to calculate the tax rate as the shipping/billing address is either invalid or incomplete. Please verify and try again.</p>\n</blockquote><p class=\"mb-2\">This error can occur even if the <a href=\"/docs/api/item_prices/update-an-item-price#is_taxable\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">is_taxable</code></a> value of item prices is changed from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> before subscription renewal and reactivation.</p><h5>Solution</h5><p class=\"mb-2\">Use this operation to update the billing address attributes to ensure they are accurate and complete.</p></div></div></div>\n<div class=\"troubleshooting\"><h3>Troubleshooting</h3><div>Here are some commonly encountered errors when using this API, along with their resolutions</div><div class=\"troubleshoot\"><div class=\"troubleshoot-title\"><p class=\"mb-2\">Error: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code>: &quot;Operation failed as the country entered in the billing address by the customer cannot be verified against IP address or card BIN number.&quot;</p></div><div class=\"troubleshoot-description\"><p class=\"mb-2\">This error occurs when location validation is enabled in the tax settings and there&#x27;s a mismatch between the customer&#x27;s billing country and their IP address or the card issuing country.</p><h5>Resolution</h5><p class=\"mb-2\">Choose one of the following solutions:</p><p class=\"mb-2\"><strong class=\"font-semibold\">Option A: Fix IP address mismatch</strong></p><p class=\"mb-2\">Use the <a href=\"/docs/api/payment_sources/update-a-card-payment-source\" class=\"text-blue-600 hover:text-blue-800 underline\">Update a card payment source API</a> and include the correct IP address in the <a href=\"/docs/api/advanced-features\" class=\"text-blue-600 hover:text-blue-800 underline\">request header</a>.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Option B: Fix BIN mismatch</strong></p><p class=\"mb-2\">Ask the customer to update their payment method with one whose BIN matches their country. You can do this using the <a href=\"https://www.chargebee.com/docs/billing/2.0/hosted-capabilities/manage-payment-sources\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Request Payment Method</a> option or the <a href=\"/docs/api/customers/update-billing-info-for-a-customer\" class=\"text-blue-600 hover:text-blue-800 underline\">Self-Serve Portal</a>.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Option C: Disable location validation</strong></p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">In <a href=\"https://app.chargebee.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Billing</a>, navigate to <strong class=\"font-semibold\">Settings &gt; Configure Chargebee &gt; Taxes</strong>.</li>\n<li class=\"text-base leading-relaxed\">Select the country.</li>\n<li class=\"text-base leading-relaxed\">In the right pane, clear the <strong class=\"font-semibold\">Enable location validation</strong> checkbox.</li>\n</ol></div></div></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/customers?prod_cat_ver=2#update_a_customer\"><p class=\"mb-2\">Update a customer</p></a><a href=\"/docs/api/customers?prod_cat_ver=2#link_a_customer\"><p class=\"mb-2\">Link a customer to an account</p></a><a href=\"/docs/api/customers?prod_cat_ver=2#delink_a_customer\"><p class=\"mb-2\">Unlink a customer from its parent account</p></a></div>",
        "operationId" : "update_billing_info_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "vat_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The VAT/tax registration number for the customer.\nFor customers with <a href=\"/docs/api/customers/customer-object#billing_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code></a> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (United Kingdom - Northern Ireland), the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">full VAT number</a> can be overridden by setting <a href=\"/docs/api/customers/customer-object#vat_number_prefix\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code></a>.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you don&#x27;t pass this parameter, the value will be <strong class=\"font-semibold\">deleted</strong> from the customer object.</li>\n<li class=\"text-base leading-relaxed\">If you pass this parameter and also pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_customer_without_vat_number</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the request will fail.</li>\n</ul></div>",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "vat_number_prefix" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">full VAT number</a>.\nOnly applicable specifically for customers with <a href=\"/docs/api/customers/customer-object#billing_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code></a> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (United Kingdom - Northern Ireland).</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>\nIf you don&#x27;t pass this parameter, the value will be <strong class=\"font-semibold\">deleted</strong> from the customer object.</p></div>",
                    "maxLength" : 10,
                    "example" : null
                  },
                  "entity_identifier_scheme" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "entity_identifier_standard" : {
                    "type" : "string",
                    "default" : "iso6523-actorid-upis",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nCurrently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "registered_for_gst" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> then the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Reverse Charge Mechanism</a> is applicable. This field is applicable only when Australian GST is configured for your site.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you don&#x27;t pass this parameter, the value will be <strong class=\"font-semibold\">deleted</strong> from the customer object.</li>\n<li class=\"text-base leading-relaxed\">If you pass this parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> and Australian GST is not configured for your site, the request will fail.</li>\n</ul></div>",
                    "example" : null
                  },
                  "business_customer_without_vat_number" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Confirms that a customer is a valid business without an EU/UK VAT number.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you don&#x27;t pass this parameter, the value will be <strong class=\"font-semibold\">deleted</strong> from the customer object.</li>\n<li class=\"text-base leading-relaxed\">If you pass this parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> and also pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, the request will fail.</li>\n</ul></div>",
                    "example" : null
                  },
                  "is_einvoice_enabled" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Determines whether the customer is e-invoiced. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nor not set to any value, the customer is e-invoiced so long as e-invoicing is enabled for their country (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>\n). When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the customer is not e-invoiced even if e-invoicing is enabled for their country.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">It is possible to set a value for this flag even when E-Invoicing is disabled. However, it comes into effect only when E-Invoicing is enabled.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                    "example" : null
                  },
                  "einvoicing_method" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Determines whether to send einvoice manually or automatic.\n\\* automatic -\n\nUse this value to send e-invoice every time an invoice or credit note is created.\n\\* manual -\n\nWhen manual is selected the automatic e-invoice sending is disabled. Use this value to send e-invoice manually through UI or API.\n\\* site_default -\n\nThe default value of the site which can be overridden at the customer level.\n",
                    "enum" : [ "automatic", "manual", "site_default" ],
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address.\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">ISO 3166-2 state/province code</a> without the country prefix. Currently supported for USA, Canada and India.\nFor example:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>).</li>\n<li class=\"text-base leading-relaxed\">For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>).</li>\n<li class=\"text-base leading-relaxed\">For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>).</li>\n</ul>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>\nIf you don&#x27;t pass this parameter, the value will be <strong class=\"font-semibold\">deleted</strong> from the customer object.</p></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nIf you don&#x27;t pass this parameter, the value will be set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address).  \n**Warning**\nIf you don't pass this parameter, the value will be **deleted** from the customer object.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">ISO 3166 alpha-2 country code</a>.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>\nIf you don&#x27;t pass this parameter, the value will be <strong class=\"font-semibold\">deleted</strong> from the customer object.</p></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong>\nIf you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">E-Invoicing</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code> is provided as different from the existing value and if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_standard</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code> already exist and are not provided for this operation, they&#x27;re cleared.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* invalid -\n\nAddress is invalid.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "entity_identifiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for entity_identifiers.\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[i]</code> in Chargebee. This is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[operation][i]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">update</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">delete</code>.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "scheme" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <a href=\"/docs/api/customers/customer-object#vat_number\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code></a> of the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code> is used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code> is used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>. See <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">list of possible values</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nIf there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"customers#customer_entity_identifiers\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a> description.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>.\nThis identifies the customer entity on the Peppol network. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10101010-STO-10</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be performed for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>\n* update - <p class=\"mb-2\">Updates an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code> for the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code> must be provided in this case.</p>\n* delete - <p class=\"mb-2\">Deletes an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code> for the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code> must be provided in this case.</p>\n* create - <p class=\"mb-2\">Creates a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code> for the customer.</p>",
                          "enum" : [ "create", "update", "delete" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "standard" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>.\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "default" : "iso6523-actorid-upis",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields. \\*\\*Note\\*\\* This parameter is supported only when selling to \\[India-SEZ\\](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-special-economic-zones-sezs) customers or when you're an \\[Indian business that sells to customers outside India\\](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-exports).\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider.  \n**Note**\nThis parameter is supported only when selling to [India-SEZ](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-special-economic-zones-sezs) customers or when you're an [Indian business that sells to customers outside India](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-exports).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with Chargebee.  \n**Note**\nThis parameter is supported only when selling to [India-SEZ](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-special-economic-zones-sezs) customers or when you're an [Indian business that sells to customers outside India](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-exports).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the related tax field.  \n**Note**\nThis parameter is supported only when selling to [India-SEZ](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-special-economic-zones-sezs) customers or when you're an [Indian business that sells to customers outside India](https://www.chargebee.com/docs/billing/2.0/taxes/indian-gst#configuring-taxes-for-exports).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "entity_identifiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/tokens/create_using_temp_token" : {
      "post" : {
        "summary" : "Create using vault temp token",
        "description" : "Generate a token using the one time token created by payment gateways for any specific payment method.\n",
        "operationId" : "create_using_vault_temp_token",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account to which the token is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "payment_method_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Type of payment method of the token.\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* pay_co -\n\nPayments made via PayCo\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* trustly -\n\nTrustly\n\\* after_pay -\n\nPayments made via Afterpay\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* giropay -\n\nPayments made via giropay.\n\\* upi -\n\nUPI Payments.\n\\* sofort -\n\nPayments made via Sofort.\n\\* pay_by_bank -\n\nPay By Bank\n\\* go_pay -\n\nPayments made via GoPay\n\\* swish -\n\nPayments made via Swish\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* twint -\n\nPayments made via Twint\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* payme -\n\nPayments made via PayMe\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* kbc_payment_button -\n\nKBC Payment Button\n",
                    "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                    "example" : null
                  },
                  "id_at_vault" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Single-use token created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet, card details or direct debit. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "gw_obj_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Represents what type of object at gateway eg. \"token\" in case Stripe token and \"source\" in case of Stripe Source.\n",
                    "maxLength" : 255,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Used to derieve Bank Account Scheme by default will take site default currency.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "additional_information" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device\n.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                    "example" : null
                  },
                  "token_additional_detail" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for token_additional_detail\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "token_billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for token_billing_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The state/province name.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "country_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "id_at_vault", "payment_method_type" ],
                "example" : null
              },
              "encoding" : {
                "token_additional_detail" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "token_billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "token" : {
                      "$ref" : "#/components/schemas/Token",
                      "description" : "<p class=\"mb-2\">Resource object representing token</p>"
                    }
                  },
                  "required" : [ "token" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/tokens/create_for_card" : {
      "post" : {
        "summary" : "Create a card payment method token",
        "description" : "Generate a token that holds card related information.\n",
        "operationId" : "create_a_card_payment_method_token",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The credit card number without any format. If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted card number here.\n",
                        "maxLength" : 1500,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "cvv" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The card verification value (CVV). If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted CVV here.\n",
                        "maxLength" : 520,
                        "example" : null
                      },
                      "preferred_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The customer's preferred card scheme for co-branded cards.  \n**Note**:\nCurrently, this parameter is only supported for Stripe.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card scheme.\n\\* mastercard -\n\nA MasterCard scheme.\n\\* mada -\n\nA Mada card scheme.\n\\* visa -\n\nA Visa card scheme.\n",
                        "enum" : [ "cartes_bancaires", "mastercard", "visa" ],
                        "example" : null
                      },
                      "billing_addr1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_addr2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      },
                      "card_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Type of the card\n\\* not_applicable -\n\nUsed for offline entries in transactions. Not applicable for cards\n\\* visa -\n\nA Visa card.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* jcb -\n\nA JCB card.\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* diners_club -\n\nA Diner's Club card.\n\\* other -\n\nCard belonging to types other than those listed above.\n\\* discover -\n\nA Discover card.\n\\* american_express -\n\nAn American Express card.\n\\* bancontact -\n\nA Bancontact card.\n\\* pay_by_bank -\n\nPay By Bank\n\\* mastercard -\n\nA MasterCard.\n\\* trustly -\n\nTrustly\n",
                        "enum" : [ "visa", "mastercard", "american_express", "discover", "jcb", "diners_club", "bancontact", "cmr_falabella", "tarjeta_naranja", "nativa", "cencosud", "cabal", "argencard", "elo", "hipercard", "carnet", "rupay", "maestro", "dankort", "cartes_bancaires", "mada", "other", "not_applicable" ],
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email address of the cardholder. Required by some gateways when creating a card token.\n",
                        "maxLength" : 70,
                        "example" : null
                      }
                    },
                    "required" : [ "expiry_month", "expiry_year", "number" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "token" : {
                      "$ref" : "#/components/schemas/Token",
                      "description" : "<p class=\"mb-2\">Resource object representing token</p>"
                    }
                  },
                  "required" : [ "token" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/tokens/{cb-token-id}" : {
      "get" : {
        "summary" : "Retrieve a token",
        "description" : "Retrieve a token using token ID.\n",
        "operationId" : "retrieve_a_token",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cb-token-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cb-token-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "token" : {
                      "$ref" : "#/components/schemas/Token",
                      "description" : "<p class=\"mb-2\">Resource object representing token</p>"
                    }
                  },
                  "required" : [ "token" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/create_using_permanent_token" : {
      "post" : {
        "summary" : "Create using permanent token",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a payment source for a <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> using a permanent token obtained from the <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment gateway</a>.</p><p class=\"mb-2\">Use this API to add a payment method that has already been vaulted in your gateway account. The permanent token enables Chargebee to securely link the payment method to the customer. This enables payment collection for future charges (both recurring and one-time) without requiring the customer to re-enter their payment details.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The permanent token must belong to a gateway account configured in Chargebee.</li>\n<li class=\"text-base leading-relaxed\">The token should be a <strong class=\"font-semibold\">permanent/vault token</strong>, not a single-use token.</li>\n<li class=\"text-base leading-relaxed\">When multiple gateway accounts are configured in <a href=\"https://app.chargebee.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Billing</a>, you must pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway_account_id</code> parameter if:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Smart Routing</a> is not configured for the payment method.</li>\n<li class=\"text-base leading-relaxed\">Smart Routing is configured for the payment method, but the selected gateway account does not match the provided token.</li>\n</ul>\n</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\">Customer</strong><div class=\"impact-description\"><p class=\"mb-2\">Pass the <a href=\"/docs/api/payment_sources/create-using-permanent-token#replace_primary_payment_source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">replace_primary_payment_source</code></a> parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> to update the customer&#x27;s <a href=\"/docs/api/payment_sources/export-payment-source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">primary_payment_source_id</code></a>. Otherwise, the existing primary payment source will remain unchanged.</p></div></div></div>",
        "operationId" : "create_using_permanent_token",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer with whom this payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of payment method. For more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* pay_to -\n\nPayments made via PayTo\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* giropay -\n\nPayments made via giropay.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* sofort -\n\nPayments made via Sofort.\n\\* pix -\n\nPayments made via Pix\n\\* pay_co -\n\nPayments made via PayCo\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* go_pay -\n\nPayments made via GoPay\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* pay_by_bank -\n\nPay By Bank\n\\* after_pay -\n\nPayments made via Afterpay\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* payme -\n\nPayments made via PayMe\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* venmo -\n\nPayments made via Venmo\n\\* ideal -\n\nPayments made via iDEAL.\n\\* trustly -\n\nTrustly\n\\* upi -\n\nUPI Payments.\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n",
                    "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                    "example" : null
                  },
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account to which the payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "reference_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The reference id. In the case of Amazon and PayPal, this will be the billing agreement ID. For GoCardless direct debit this will be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandate_id</code>. In the case of a card, this will be the identifier provided by the gateway or card vault for the specific payment method resource.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">This is not the one-time temporary token provided by gateways like Stripe.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> is an alternative for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_token</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_profile_token</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">network_transaction_id</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandate_id</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_token</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_profile_token</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">network_transaction_id</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandate_id</code> cannot be used with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> is a combination of multiple tokens available at the gateway. Learn more about the combination of each gateway from this <a href=\"/docs/api/payment_parameters\">document</a>.</p>\n</li>\n</ul></div>",
                    "maxLength" : 200,
                    "example" : null
                  },
                  "issuing_country" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "2-letter (alpha2) ISO country code. Indicates your customer's payment method country of issuance. Applicable for PayPal via Braintree.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "payment_method_token" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An identifier provided by the gateway or card vault for the specific payment method resource.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_token</code> is an alternative for reference_id and cannot be used with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code>.</p></div>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "customer_profile_token" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A unique identifier associated with a customer`s profile within a payment gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_profile_token</code> is an alternative for reference_id and cannot be used with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code>.</p></div>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "network_transaction_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An identifier of the payment or authorization transaction at the gateway initiated using this payment method.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">network_transaction_id</code> is an alternative for reference_id and cannot be used with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code>.</p></div>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "mandate_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An identifier of mandates which is an authorization given by the payer (usually a customer or account holder) to allow a third party such as a merchant or service provider to initiate payments from their account.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandate_id</code> is an alternative for reference_id and cannot be used with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code>.</p></div>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "skip_retrieval" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">By default, the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> and payment method details will be retrieved from the selected payment gateway using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_token</code> / <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_profile_token</code> / <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">network_transaction_id</code> / <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandate_id</code>. Learn more about the multiple token combinations of each gateway from this <a href=\"/docs/api/payment_parameters\">document</a>.\nEnter the value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for the payment gateways that do not allow to retrieve the payment method details. Once passed, it will create payment method at Chargebee with the provided attributes in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_token</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_profile_token</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">network_transaction_id</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandate_id</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nCurrently, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">skip_retrieval</code> value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> is only supported for the Vantiv payment gateway.</p></div>",
                    "example" : null
                  },
                  "additional_information" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://docs.checkout.com/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device\n.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters of tokenized card details\n",
                    "properties" : {
                      "last4" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last four digits of the card number\n",
                        "maxLength" : 4,
                        "minLength" : 4,
                        "example" : null
                      },
                      "iin" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The Issuer Identification Number, i.e. the first six digits of the card number\n",
                        "maxLength" : 6,
                        "minLength" : 6,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "brand" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Card brand\n\\* cabal -\n\nA Cabal card.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card.\n\\* american_express -\n\nAn American Express card.\n\\* visa -\n\nA Visa card.\n\\* cencosud -\n\nA Cencosud card.\n\\* not_applicable -\n\nUsed for offline entries in transactions. Not applicable for cards\n\\* maestro -\n\nA Maestro card.\n\\* carnet -\n\nA Carnet card.\n\\* argencard -\n\nAn Argencard.\n\\* dankort -\n\nA Dankort card.\n\\* tarjeta_naranja -\n\nA Tarjeta Naranja card.\n\\* mastercard -\n\nA MasterCard.\n\\* jcb -\n\nA JCB card.\n\\* pay_by_bank -\n\nPay By Bank\n\\* hipercard -\n\nAn Hipercard.\n\\* other -\n\nCard belonging to types other than those listed above.\n\\* trustly -\n\nTrustly\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* bancontact -\n\nA Bancontact card.\n\\* cmr_falabella -\n\nA CMR Falabella card.\n\\* rupay -\n\nA Rupay card.\n\\* nativa -\n\nA Nativa card.\n\\* discover -\n\nA Discover card.\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* elo -\n\nA Elo card.\n\\* diners_club -\n\nA Diner's Club card.\n\\* mada -\n\nA Mada card.\n",
                        "enum" : [ "visa", "mastercard", "american_express", "discover", "jcb", "diners_club", "other", "bancontact", "cmr_falabella", "tarjeta_naranja", "nativa", "cencosud", "cabal", "argencard", "elo", "hipercard", "carnet", "rupay", "maestro", "dankort", "cartes_bancaires", "mada" ],
                        "example" : null
                      },
                      "funding_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Card Funding type\n\\* not_known -\n\nAn unknown card.\n\\* debit -\n\nA debit card.\n\\* credit -\n\nA credit card.\n\\* prepaid -\n\nA prepaid card.\n\\* not_applicable -\n\nUsed for ACH. Not applicable for cards\n",
                        "enum" : [ "credit", "debit", "prepaid", "not_known" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "customer_id", "type" ],
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}/delete" : {
      "post" : {
        "summary" : "Delete a payment source",
        "description" : "Deletes a payment source. Once the payment source is deleted, if\n\n* **Deleted payment source is Primary, and Backup is available**\n  * The Backup payment source will become the Primary payment source.\n* **Deleted payment source is Primary, and no Backup is available**\n  * The other payment source available, but not assigned to any subscription, will become the Primary payment source.\n\n    **Note** : *When multiple payment sources exist, the payment method added most recently will be considered*.\n  * If other payment sources available are assigned to subscriptions, the auto collection attribute for the customer will be set to Off, and the events *card_deleted* and *payment_source_deleted* will be triggered.\n\n* **Deleted payment source is attached to subscriptions**\n  * Dunning will be initiated for subscriptions attached to this payment source if auto collection is set to On, and when no customer default is present.\n\nIf there is no such payment source present in the gateway for the customer, this API will return successfully without throwing any error.  \n**Note**\n:\n\nIf you delete the only available payment method of a customer in Chargebee, it also deletes the customer's record at the gateway. To delete the payment method locally(delete only in Chargebee), use [Local Delete a Payment Source API](/docs/api/payment_sources/local-delete-a-payment-source)\n.\n",
        "operationId" : "delete_a_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/create_card" : {
      "post" : {
        "summary" : "Create a card payment source",
        "description" : "Storing card after successful 3DS completion is not supported in this API. Use [create using Payment Intent API](/docs/api/payment_sources/create-using-payment-intent)\nunder Payment source to store the card after successful 3DS flow completion.\n",
        "operationId" : "create_a_card_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer with whom this payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The credit card number without any format. If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted card number here.\n",
                        "maxLength" : 1500,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "cvv" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The card verification value (CVV). If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted CVV here.\n",
                        "maxLength" : 520,
                        "example" : null
                      },
                      "preferred_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The customer's preferred card scheme for co-branded cards.  \n**Note**:\nCurrently, this parameter is only supported for Stripe.\n\\* mastercard -\n\nA MasterCard scheme.\n\\* mada -\n\nA Mada card scheme.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card scheme.\n\\* visa -\n\nA Visa card scheme.\n",
                        "enum" : [ "cartes_bancaires", "mastercard", "visa" ],
                        "example" : null
                      },
                      "billing_addr1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_addr2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "required" : [ "expiry_month", "expiry_year", "number" ],
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}/verify_bank_account" : {
      "post" : {
        "summary" : "Verify bank account payment source",
        "description" : "This API can be used to verify bank accounts which have been added as payment source. This is applicable for **Stripe ACH with micro-deposit mode bank accounts** only. Stripe handles verification in two ways - via Plaid, and micro-deposit.\n\nFor verifying bank accounts via **micro-deposit**, Stripe deposits two small amounts to the bank account being added. These deposits will take 1-2 business days to appear on the customer's bank statement. The bank statement description for the two micro-deposits contains the amount and the values deposited. Your customer will need to relay the value of the two deposits to you, after which you can verify the bank account. Once the bank account has been verified, the payment source will be marked as \"Valid\".  \nA maximum of 10 failed verification attempts are allowed. Once this limit has been crossed, the bank account can no longer be verified, and will be marked as \"Invalid\" in Chargebee.\n",
        "operationId" : "verify_bank_account_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount1" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Value of the micro-deposits sent to the bank account.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "amount2" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Value of the micro-deposits sent to the bank account.\n",
                    "minimum" : 0,
                    "example" : null
                  }
                },
                "required" : [ "amount1", "amount2" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources" : {
      "get" : {
        "summary" : "List payment sources",
        "description" : "Lists all the payment sources\n",
        "operationId" : "list_payment_sources",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Unique subscription identifier that helps to retrieve the payment source of a subscription which has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandate</code>\nassociated to it.</p>",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Indicates whether to include deleted objects in the list. The deleted objects have the attribute &#x27;<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deleted</code>\n&#x27; as &#x27;<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n&#x27;.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nTo filter based on Customer Id.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*customer_id\\[is\\] = \"3bdjnDnsdQn\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "3bdjnDnsdQn",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nType of payment source. Possible values are : card, paypal_express_checkout, amazon_payments, direct_debit, generic, alipay, unionpay, apple_pay, wechat_pay, ideal, google_pay, sofort, bancontact, giropay, dotpay, upi, netbanking_emandates.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*type\\[is\\] = \"card\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "card",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`card\\` - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \\* \\`paypal_express_checkout\\` - Payments made via PayPal Express Checkout. \\* \\`amazon_payments\\` - Payments made via Amazon Payments. \\* \\`direct_debit\\` - Represents bank account for which the direct debit or ACH agreement/mandate is created. \\* \\`generic\\` - Payments made via Generic Payment Method. \\* \\`alipay\\` - Payments made via Alipay \\* \\`unionpay\\` - Payments made via UnionPay. \\* \\`apple_pay\\` - Payments made via Apple Pay. \\* \\`wechat_pay\\` - Payments made via WeChat Pay \\* \\`ideal\\` - Payments made via iDEAL. \\* \\`google_pay\\` - Payments made via Google Pay. \\* \\`sofort\\` - Payments made via Sofort. \\* \\`bancontact\\` - Payments made via Bancontact Card. \\* \\`giropay\\` - Payments made via giropay. \\* \\`dotpay\\` - Payments made via Dotpay. \\* \\`upi\\` - UPI Payments. \\* \\`netbanking_emandates\\` - Netbanking (eMandates) Payments. \\* \\`venmo\\` - Payments made via Venmo \\* \\`pay_to\\` - Payments made via PayTo \\* \\`faster_payments\\` - Payments made via Faster Payments \\* \\`sepa_instant_transfer\\` - Payments made via Sepa Instant Transfer \\* \\`automated_bank_transfer\\` - Represents virtual bank account using which the payment will be done. \\* \\`klarna_pay_now\\` - Payments made via Klarna Pay Now \\* \\`online_banking_poland\\` - Payments made via Online Banking Poland \\* \\`payconiq_by_bancontact\\` - Payments made via Payconiq by Bancontact \\* \\`electronic_payment_standard\\` - Payments made via Electronic Payment Standard. \\* \\`kbc_payment_button\\` - Payments made via KBC Payment Button. \\* \\`pay_by_bank\\` - Payments made via Pay By Bank. \\* \\`trustly\\` - Payments made via Trustly. \\* \\`stablecoin\\` - Payments made via Stablecoin \\* \\`kakao_pay\\` - Payments made via Kakao Pay \\* \\`naver_pay\\` - Payments made via Naver Pay \\* \\`revolut_pay\\` - Payments made via Revolut Pay \\* \\`cash_app_pay\\` - Payments made via Cash App Pay \\* \\`twint\\` - Payments made via Twint \\* \\`go_pay\\` - Payments made via Go Pay \\* \\`grab_pay\\` - Payments made via Grab Pay \\* \\`pay_co\\` - Payments made via Pay Co \\* \\`after_pay\\` - Payments made via After pay \\* \\`swish\\` - Payments made via Swish \\* \\`payme\\` - Payments made via PayMe \\* \\`pix\\` - Payments made via Pix \\* \\`klarna\\` - Payments made via Klarna\n",
                "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`card\\` - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \\* \\`paypal_express_checkout\\` - Payments made via PayPal Express Checkout. \\* \\`amazon_payments\\` - Payments made via Amazon Payments. \\* \\`direct_debit\\` - Represents bank account for which the direct debit or ACH agreement/mandate is created. \\* \\`generic\\` - Payments made via Generic Payment Method. \\* \\`alipay\\` - Payments made via Alipay \\* \\`unionpay\\` - Payments made via UnionPay. \\* \\`apple_pay\\` - Payments made via Apple Pay. \\* \\`wechat_pay\\` - Payments made via WeChat Pay \\* \\`ideal\\` - Payments made via iDEAL. \\* \\`google_pay\\` - Payments made via Google Pay. \\* \\`sofort\\` - Payments made via Sofort. \\* \\`bancontact\\` - Payments made via Bancontact Card. \\* \\`giropay\\` - Payments made via giropay. \\* \\`dotpay\\` - Payments made via Dotpay. \\* \\`upi\\` - UPI Payments. \\* \\`netbanking_emandates\\` - Netbanking (eMandates) Payments. \\* \\`venmo\\` - Payments made via Venmo \\* \\`pay_to\\` - Payments made via PayTo \\* \\`faster_payments\\` - Payments made via Faster Payments \\* \\`sepa_instant_transfer\\` - Payments made via Sepa Instant Transfer \\* \\`automated_bank_transfer\\` - Represents virtual bank account using which the payment will be done. \\* \\`klarna_pay_now\\` - Payments made via Klarna Pay Now \\* \\`online_banking_poland\\` - Payments made via Online Banking Poland \\* \\`payconiq_by_bancontact\\` - Payments made via Payconiq by Bancontact \\* \\`electronic_payment_standard\\` - Payments made via Electronic Payment Standard. \\* \\`kbc_payment_button\\` - Payments made via KBC Payment Button. \\* \\`pay_by_bank\\` - Payments made via Pay By Bank. \\* \\`trustly\\` - Payments made via Trustly. \\* \\`stablecoin\\` - Payments made via Stablecoin \\* \\`kakao_pay\\` - Payments made via Kakao Pay \\* \\`naver_pay\\` - Payments made via Naver Pay \\* \\`revolut_pay\\` - Payments made via Revolut Pay \\* \\`cash_app_pay\\` - Payments made via Cash App Pay \\* \\`twint\\` - Payments made via Twint \\* \\`go_pay\\` - Payments made via Go Pay \\* \\`grab_pay\\` - Payments made via Grab Pay \\* \\`pay_co\\` - Payments made via Pay Co \\* \\`after_pay\\` - Payments made via After pay \\* \\`swish\\` - Payments made via Swish \\* \\`payme\\` - Payments made via PayMe \\* \\`pix\\` - Payments made via Pix \\* \\`klarna\\` - Payments made via Klarna\n",
                "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`card\\` - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \\* \\`paypal_express_checkout\\` - Payments made via PayPal Express Checkout. \\* \\`amazon_payments\\` - Payments made via Amazon Payments. \\* \\`direct_debit\\` - Represents bank account for which the direct debit or ACH agreement/mandate is created. \\* \\`generic\\` - Payments made via Generic Payment Method. \\* \\`alipay\\` - Payments made via Alipay \\* \\`unionpay\\` - Payments made via UnionPay. \\* \\`apple_pay\\` - Payments made via Apple Pay. \\* \\`wechat_pay\\` - Payments made via WeChat Pay \\* \\`ideal\\` - Payments made via iDEAL. \\* \\`google_pay\\` - Payments made via Google Pay. \\* \\`sofort\\` - Payments made via Sofort. \\* \\`bancontact\\` - Payments made via Bancontact Card. \\* \\`giropay\\` - Payments made via giropay. \\* \\`dotpay\\` - Payments made via Dotpay. \\* \\`upi\\` - UPI Payments. \\* \\`netbanking_emandates\\` - Netbanking (eMandates) Payments. \\* \\`venmo\\` - Payments made via Venmo \\* \\`pay_to\\` - Payments made via PayTo \\* \\`faster_payments\\` - Payments made via Faster Payments \\* \\`sepa_instant_transfer\\` - Payments made via Sepa Instant Transfer \\* \\`automated_bank_transfer\\` - Represents virtual bank account using which the payment will be done. \\* \\`klarna_pay_now\\` - Payments made via Klarna Pay Now \\* \\`online_banking_poland\\` - Payments made via Online Banking Poland \\* \\`payconiq_by_bancontact\\` - Payments made via Payconiq by Bancontact \\* \\`electronic_payment_standard\\` - Payments made via Electronic Payment Standard. \\* \\`kbc_payment_button\\` - Payments made via KBC Payment Button. \\* \\`pay_by_bank\\` - Payments made via Pay By Bank. \\* \\`trustly\\` - Payments made via Trustly. \\* \\`stablecoin\\` - Payments made via Stablecoin \\* \\`kakao_pay\\` - Payments made via Kakao Pay \\* \\`naver_pay\\` - Payments made via Naver Pay \\* \\`revolut_pay\\` - Payments made via Revolut Pay \\* \\`cash_app_pay\\` - Payments made via Cash App Pay \\* \\`twint\\` - Payments made via Twint \\* \\`go_pay\\` - Payments made via Go Pay \\* \\`grab_pay\\` - Payments made via Grab Pay \\* \\`pay_co\\` - Payments made via Pay Co \\* \\`after_pay\\` - Payments made via After pay \\* \\`swish\\` - Payments made via Swish \\* \\`payme\\` - Payments made via PayMe \\* \\`pix\\` - Payments made via Pix \\* \\`klarna\\` - Payments made via Klarna\n",
                "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                "pattern" : "^\\[(card|paypal_express_checkout|amazon_payments|direct_debit|generic|alipay|unionpay|apple_pay|wechat_pay|ideal|google_pay|sofort|bancontact|giropay|dotpay|upi|netbanking_emandates|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|pix|klarna)(,(card|paypal_express_checkout|amazon_payments|direct_debit|generic|alipay|unionpay|apple_pay|wechat_pay|ideal|google_pay|sofort|bancontact|giropay|dotpay|upi|netbanking_emandates|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|pix|klarna))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`card\\` - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \\* \\`paypal_express_checkout\\` - Payments made via PayPal Express Checkout. \\* \\`amazon_payments\\` - Payments made via Amazon Payments. \\* \\`direct_debit\\` - Represents bank account for which the direct debit or ACH agreement/mandate is created. \\* \\`generic\\` - Payments made via Generic Payment Method. \\* \\`alipay\\` - Payments made via Alipay \\* \\`unionpay\\` - Payments made via UnionPay. \\* \\`apple_pay\\` - Payments made via Apple Pay. \\* \\`wechat_pay\\` - Payments made via WeChat Pay \\* \\`ideal\\` - Payments made via iDEAL. \\* \\`google_pay\\` - Payments made via Google Pay. \\* \\`sofort\\` - Payments made via Sofort. \\* \\`bancontact\\` - Payments made via Bancontact Card. \\* \\`giropay\\` - Payments made via giropay. \\* \\`dotpay\\` - Payments made via Dotpay. \\* \\`upi\\` - UPI Payments. \\* \\`netbanking_emandates\\` - Netbanking (eMandates) Payments. \\* \\`venmo\\` - Payments made via Venmo \\* \\`pay_to\\` - Payments made via PayTo \\* \\`faster_payments\\` - Payments made via Faster Payments \\* \\`sepa_instant_transfer\\` - Payments made via Sepa Instant Transfer \\* \\`automated_bank_transfer\\` - Represents virtual bank account using which the payment will be done. \\* \\`klarna_pay_now\\` - Payments made via Klarna Pay Now \\* \\`online_banking_poland\\` - Payments made via Online Banking Poland \\* \\`payconiq_by_bancontact\\` - Payments made via Payconiq by Bancontact \\* \\`electronic_payment_standard\\` - Payments made via Electronic Payment Standard. \\* \\`kbc_payment_button\\` - Payments made via KBC Payment Button. \\* \\`pay_by_bank\\` - Payments made via Pay By Bank. \\* \\`trustly\\` - Payments made via Trustly. \\* \\`stablecoin\\` - Payments made via Stablecoin \\* \\`kakao_pay\\` - Payments made via Kakao Pay \\* \\`naver_pay\\` - Payments made via Naver Pay \\* \\`revolut_pay\\` - Payments made via Revolut Pay \\* \\`cash_app_pay\\` - Payments made via Cash App Pay \\* \\`twint\\` - Payments made via Twint \\* \\`go_pay\\` - Payments made via Go Pay \\* \\`grab_pay\\` - Payments made via Grab Pay \\* \\`pay_co\\` - Payments made via Pay Co \\* \\`after_pay\\` - Payments made via After pay \\* \\`swish\\` - Payments made via Swish \\* \\`payme\\` - Payments made via PayMe \\* \\`pix\\` - Payments made via Pix \\* \\`klarna\\` - Payments made via Klarna\n",
                "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                "pattern" : "^\\[(card|paypal_express_checkout|amazon_payments|direct_debit|generic|alipay|unionpay|apple_pay|wechat_pay|ideal|google_pay|sofort|bancontact|giropay|dotpay|upi|netbanking_emandates|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|pix|klarna)(,(card|paypal_express_checkout|amazon_payments|direct_debit|generic|alipay|unionpay|apple_pay|wechat_pay|ideal|google_pay|sofort|bancontact|giropay|dotpay|upi|netbanking_emandates|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|pix|klarna))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nCurrent status of the payment source. Possible values are : valid, expiring, expired, invalid, pending_verification.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"valid\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "valid",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`valid\\` - A payment source that is valid and active. \\* \\`expiring\\` - A payment source that is expiring (like card's status based on its expiry date). \\* \\`expired\\` - A payment source that has expired \\* \\`invalid\\` - The billing agreement cannot be used. It might become valid again either automatically or due to customer action. \\* \\`pending_verification\\` - The payment source needs to be verified\n",
                "enum" : [ "valid", "expiring", "expired", "invalid", "pending_verification" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`valid\\` - A payment source that is valid and active. \\* \\`expiring\\` - A payment source that is expiring (like card's status based on its expiry date). \\* \\`expired\\` - A payment source that has expired \\* \\`invalid\\` - The billing agreement cannot be used. It might become valid again either automatically or due to customer action. \\* \\`pending_verification\\` - The payment source needs to be verified\n",
                "enum" : [ "valid", "expiring", "expired", "invalid", "pending_verification" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`valid\\` - A payment source that is valid and active. \\* \\`expiring\\` - A payment source that is expiring (like card's status based on its expiry date). \\* \\`expired\\` - A payment source that has expired \\* \\`invalid\\` - The billing agreement cannot be used. It might become valid again either automatically or due to customer action. \\* \\`pending_verification\\` - The payment source needs to be verified\n",
                "enum" : [ "valid", "expiring", "expired", "invalid", "pending_verification" ],
                "pattern" : "^\\[(valid|expiring|expired|invalid|pending_verification)(,(valid|expiring|expired|invalid|pending_verification))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`valid\\` - A payment source that is valid and active. \\* \\`expiring\\` - A payment source that is expiring (like card's status based on its expiry date). \\* \\`expired\\` - A payment source that has expired \\* \\`invalid\\` - The billing agreement cannot be used. It might become valid again either automatically or due to customer action. \\* \\`pending_verification\\` - The payment source needs to be verified\n",
                "enum" : [ "valid", "expiring", "expired", "invalid", "pending_verification" ],
                "pattern" : "^\\[(valid|expiring|expired|invalid|pending_verification)(,(valid|expiring|expired|invalid|pending_verification))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this payment source resource was last updated.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[on\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this payment source resource is created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[on\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "payment_source" : {
                            "$ref" : "#/components/schemas/PaymentSource",
                            "description" : "Resource object representing payment_source"
                          }
                        },
                        "required" : [ "payment_source" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}/export_payment_source" : {
      "post" : {
        "summary" : "Export payment source",
        "description" : "Copies this payment source information to the gateway specified in the API.\n\nThis is useful if you want to port your customer's card details into another gateway.  \nThis operation does not support copying of cards from Stripe and Braintree gateways. If you need help using this API, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n",
        "operationId" : "export_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account you want to copy the card.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "gateway_account_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "third_party_payment_method" : {
                      "$ref" : "#/components/schemas/ThirdPartyPaymentMethod",
                      "description" : "<p class=\"mb-2\">Resource object representing third_party_payment_method</p>"
                    }
                  },
                  "required" : [ "third_party_payment_method" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/create_using_payment_intent" : {
      "post" : {
        "summary" : "Create using payment intent",
        "description" : "Used to attach the card to the customer after 3DS completion. [Learn more](/docs/api/3ds_card_payments)\non the 3DS implementation via Chargebee APIs.\n",
        "operationId" : "create_using_payment_intent",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer with whom this payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n\\* card -\n\ncard\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* after_pay -\n\nPayments made via Afterpay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* dotpay -\n\ndotpay\n\\* faster_payments -\n\nFaster Payments\n\\* upi -\n\nupi\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* payme -\n\nPayments made via PayMe\n\\* direct_debit -\n\ndirect_debit\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* bancontact -\n\nbancontact\n\\* go_pay -\n\nPayments made via GoPay\n\\* pay_by_bank -\n\nPay By Bank\n\\* google_pay -\n\ngoogle_pay\n\\* apple_pay -\n\napple_pay\n\\* trustly -\n\nTrustly\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* giropay -\n\ngiropay\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* venmo -\n\nVenmo\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* alipay -\n\nPayments made via Alipay.\n\\* sofort -\n\nsofort\n\\* amazon_payments -\n\nAmazon Payments\n\\* ideal -\n\nideal\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* pay_to -\n\nPayTo\n\\* boleto -\n\nboleto\n\\* pay_co -\n\nPayments made via PayCo\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_info" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Applicable only for Braintree gateway. Can be used only for Braintree&#x27;s <a href=\"https://developer.paypal.com/braintree/articles/guides/fraud-tools/premium/overview\" target=\"_blank\">Premium Fraud Management Tools</a>.\nPass a stringified JSON containing the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>\nas an input to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fingerprint</code>.\nHere&#x27;s a <a href=\"/docs/api/payment_parameters\" target=\"_blank\">sample</a>\nto it.</p>",
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}" : {
      "get" : {
        "summary" : "Retrieve a payment source",
        "description" : "Retrieves the payment source identified by the unique identifier.\n",
        "operationId" : "retrieve_a_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/create_voucher_payment_source" : {
      "post" : {
        "summary" : "Create a voucher payment method",
        "description" : "Create a voucher payment method for the payment source.\n",
        "operationId" : "create_a_voucher_payment_method",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer with whom this payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "voucher_payment_source" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for voucher_payment_source\n",
                    "properties" : {
                      "voucher_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Voucher based payment methods\n\\* boleto -\n\nBoleto\n",
                        "enum" : [ "boleto" ],
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account to which the payment method is associated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "tax_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Customer Tax id\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_address" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address of the customer. The value is a JSON object with the following keys and their values:-   <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_name</code>:(string, max chars=150) The first name of the contact.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">last_name</code>:(string, max chars=150) The last name of the contact.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line1</code>:(string, max chars=180) The first line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line2</code>:(string, max chars=180) The second line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_code</code>:(string, max chars=50) The two-letter, <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO 3166 alpha-2</a> country code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>:(string, max chars=50) The <a href=\"https://www.iso.org/obp/ui/#search/code/\">ISO 3166-2 state/province code</a> without the country prefix.For instance, for Arizona (USA), set state_code as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC)</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">city</code>:(string, max chars=50) The city name for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">postal_code</code>:(string, max chars=20) The postal or ZIP code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">phone</code>:(string, max chars=50) The contact phone number for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>:(string, max chars=70) The contact email address for the address.</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "required" : [ "voucher_type" ],
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "voucher_payment_source" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/create_using_temp_token" : {
      "post" : {
        "summary" : "Create using gateway temporary token",
        "description" : "This API offers an alternative way to create a payment source using a single-use gateway temporary token, which is generally provided by your payment gateway. In the case of Stripe, this temporary token is generated according to the instruction detailed in [Stripe documentation](https://stripe.com/docs/api/tokens/create_card).  \nStoring card after successful 3DS completion is not supported in this API. Use [create using Payment Intent API](/docs/api/payment_sources/create-using-payment-intent)\nunder Payment source to store the card after successful 3DS flow completion.\n",
        "operationId" : "create_using_gateway_temporary_token",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer with whom this payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account to which the payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Type of payment source.\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* venmo -\n\nPayments made via Venmo\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* sofort -\n\nPayments made via Sofort.\n\\* pix -\n\nPayments made via Pix\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* pay_co -\n\nPayments made via PayCo\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* trustly -\n\nTrustly\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* upi -\n\nUPI Payments.\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* pay_to -\n\nPayments made via PayTo\n\\* go_pay -\n\nPayments made via GoPay\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* payme -\n\nPayments made via PayMe\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* giropay -\n\nPayments made via giropay.\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* pay_by_bank -\n\nPay By Bank\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n",
                    "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                    "example" : null
                  },
                  "tmp_token" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Single-use token created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet, card details or direct debit. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "issuing_country" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "2-letter (alpha2) ISO country code. Indicates your customer's payment method country of issuance. Applicable for PayPal via Braintree.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "additional_information" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://docs.checkout.com/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device\n.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                    "example" : null
                  }
                },
                "required" : [ "customer_id", "tmp_token", "type" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}/update_card" : {
      "post" : {
        "summary" : "Update a card payment source",
        "description" : "Merchants look to update card details when:\n\n* The billing address of a customer has changed. In such a case, modify the billing address in the Chargebee and the payment gateway.\n* The expiration date of the card has been extended by the bank. (This usually happens when the date of card expiry is in near future).\n\nMultiple parameters such as address, expiry date, month, and so on, can be updated through this API.\n\nMeta data can also be added additionally(supported in Stripe only). Metadata is a JSON object. It is used to store additional information about customers.\n\nIn **Stripe** and **Braintree** payment gateways, changes in card details are auto-updated. This feature can also be used for other payment gateways in which auto-update is not enabled or is not supported by Chargebee.  \n**Note**\n: This endpoint supports Chargebee Test Gateway, [Stripe](https://www.chargebee.com/docs/2.0/stripe.html)\n, [Braintree](https://www.chargebee.com/docs/2.0/braintree.html)\n, [Authorize.net](https://www.chargebee.com/docs/2.0/authorize-index.html)\n, [Worldpay US eCom](https://www.chargebee.com/docs/2.0/vantiv_worldpay.html)\n, and [WorldPay Direct Integration](https://www.chargebee.com/docs/2.0/worldpay-direct.html)\n. For all other gateways, your customers must re-enter the full [card details](/docs/api/payment_sources/update-a-card-payment-source#card_first_name)\nto update existing card details. For example, consider a customer not using the gateways mentioned above and wants to update the [card\\[billing_addr1\\]](/docs/api/payment_sources/update-a-card-payment-source#card_billing_addr1)\nparameter. In such a case, the customer must re-enter the value of all the parameters present in the [card](/docs/api/payment_sources/update-a-card-payment-source#card_first_name)\nobject.\n",
        "operationId" : "update_a_card_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "gateway_meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Additional data about this resource can be passed to \\*\\*Stripe\\*\\* gateway here in the JSON Format. This will be stored along with payment source at the gateway account.\n",
                    "example" : null
                  },
                  "reference_transaction" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reference transaction is used for future purchases. This is only applicable for Vantiv.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "billing_addr1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_addr2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The state/province name.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}/switch_gateway_account" : {
      "post" : {
        "summary" : "Switch gateway account",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Moves a card payment source from one gateway account to another.</p><p class=\"mb-2\">Use this operation to migrate payment methods between gateway accounts, such as when:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">consolidating gateway accounts</li>\n<li class=\"text-base leading-relaxed\">switching from Spreedly to direct gateway integration</li>\n<li class=\"text-base leading-relaxed\">aligning payment sources with regional/business unit gateway configurations</li>\n</ul><div class=\"alert alert-info\"><h4>Supported gateways</h4><p class=\"mb-2\">See the <strong class=\"font-semibold\">Use Cases</strong> section for the list of supported source-destination gateway combinations.</p></div><div class=\"warning alert alert-warning\"><h4>Impact on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code></h4><p class=\"mb-2\">This operation updates the <a href=\"/docs/api/payment_sources/payment_source-object#reference_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code></a> attribute of the payment source. In case you are using this value for any downstream system integrations, you will need to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> for the payment source in the downstream system to the new value.</p></div></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/payment_sources/payment_source-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source.type</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>.</li>\n<li class=\"text-base leading-relaxed\">The destination payment gateway account must be active and not <a href=\"https://www.chargebee.com/docs/payments/2.0/kb/billing/archiving-gateways\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">archived</a>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\">Payment source</strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The following attributes are updated:</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/payment_sources/payment_source-object#gateway_account_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway_account_id</code></a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/payment_sources/payment_source-object#gateway\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway</code></a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/payment_sources/payment_source-object#reference_id\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code></a></li>\n<li class=\"text-base leading-relaxed\">The role (<a href=\"/docs/api/customers/customer-object#primary_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">primary</a> or <a href=\"/docs/api/customers/customer-object#backup_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">backup</a>) of the payment source is not changed.</li>\n</ul></div></div></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><h4>Supported source-destination gateway combinations</h4></div><div class=\"use-case-description\"><p class=\"mb-2\">The API supports only the following source-destination gateway combinations:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\"><tbody><tr><th>Source</th><th>Destination</th></tr><tr><td><p class=\"mb-2\">Any of the gateways via Spreedly. These include <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/authorize\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Authorize.net</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/bambora\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Bambora</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/bluesnap-spreedly\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">BlueSnap</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/moneris\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Moneris</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/orbital\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Orbital (Chase Paymentech)</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/paymill\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Paymill</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/paypal_payments_pro\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">PayPal Payments Pro</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/paypal_payflow_pro\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">PayPal Payflow Pro</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/sagepay\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">SagePay</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/ingenico\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Worldline Online Payments</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/worldpay\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Worldpay</a>.</p></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Any of the gateways via Spreedly. OR</li>\n<li class=\"text-base leading-relaxed\">Any of the following gateways: <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/stripe\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Stripe</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/authorize-direct\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Authorize.net (direct integration)</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/braintree\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Braintree</a>, <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/bluesnap\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">BlueSnap (direct integration)</a>, and <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/worldpay-direct\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Worldpay (direct integration)</a>.</li>\n</ul></td></tr><tr><td><a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/paypal_express_checkout\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">PayPal Express Checkout</a></td><td><a href=\"https://www.chargebee.com/docs/payments/1.0/payment-gateways-and-configuration/paypal-commerce\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">PayPal Commerce</a></td></tr></tbody></table></div></div></div></div>",
        "operationId" : "switch_gateway_account",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account you want to switch to.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "gateway_account_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/create_using_token" : {
      "post" : {
        "summary" : "Create using Chargebee token",
        "description" : "Storing card after successful 3DS completion is not supported in this API. Use [create using Payment Intent API](/docs/api/payment_sources/create-using-payment-intent)\nunder Payment source to store the card after successful 3DS flow completion.\n",
        "operationId" : "create_using_chargebee_token",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer with whom this payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "token_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Token generated by Chargebee JS representing payment method details.\n",
                    "maxLength" : 40,
                    "example" : null
                  }
                },
                "required" : [ "customer_id", "token_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}/delete_local" : {
      "post" : {
        "summary" : "Local delete a payment source",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Delete a <strong class=\"font-semibold\">payment source</strong> reference from a Chargebee customer without deleting or altering payment source data stored at the payment gateway.</p></div>\n\n\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Payment Source</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Sets <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deleted</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> on the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> and detaches it from the customer. The payment source is no longer accessible through the API or the UI.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Customer</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the deleted <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> is the customer&#x27;s only payment method and <a href=\"/docs/api/customers/customer-object#auto_collection\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>, <a href=\"https://www.chargebee.com/docs/billing/2.0/customers/customers#auto-collection-status\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">automatic payment collection</a> for future invoices fails.</p><p class=\"mb-2\">If the deleted payment source was the <a href=\"/docs/api/customers/customer-object#primary_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">primary</a> payment method for the customer, and a <a href=\"/docs/api/customers/customer-object#backup_payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">backup</a> exists, Chargebee promotes the backup to primary.</p><p class=\"mb-2\">If no backup is set but other <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> objects exist for the <a href=\"/docs/api/payment_sources/payment_source-object#customer_id\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a>, Chargebee promotes one of them to primary.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><p class=\"mb-2\">When you delete a payment source <a href=\"/docs/api/subscriptions/subscription-object#payment_source_id\" class=\"text-blue-600 hover:text-blue-800 underline\">linked</a> to an active <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a>, Chargebee immediately clears the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source_id</code> on that subscription. Future charges use the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">primary_payment_source_id</code>.</p></div></div></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/payment_sources?prod_cat_ver=2#delete_a_payment_source\"><p class=\"mb-2\">Delete a payment source</p></a><a href=\"/docs/api/payment_sources?prod_cat_ver=2#list_payment_sources\"><p class=\"mb-2\">List payment sources</p></a></div>",
        "operationId" : "local_delete_a_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/create_bank_account" : {
      "post" : {
        "summary" : "Create a bank account payment source",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API adds a Direct Debit payment source for a customer. The bank account details collected from your customer are passed as input to this API.</p><h4><a href=\"https://www.chargebee.com/docs/direct-debit-payments.html#direct-debit-payments-in-the-united-states\" target=\"_blank\">Automated Clearing House (ACH) Network</a></h4><p class=\"mb-2\">ACH is an electronic network for passing financial transactions in the US. Chargebee currently supports ACH via <a href=\"https://www.chargebee.com/docs/ach-payments-stripe.html\" target=\"_blank\">Stripe</a> , <a href=\"https://www.chargebee.com/docs/ach-payments-authorize_net.html\" target=\"_blank\">Authorize.Net</a>, and <a href=\"https://www.chargebee.com/docs/2.0/gocardless.html\" target=\"_blank\">GoCardless</a>.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For ACH via Stripe, it is mandatory to pass <a href=\"/docs/api/advanced-features\">user details</a> such as IP address(<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-ip</code>) and the device information(<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-device</code>).</li>\n</ul></div><h5>Bank account verification</h5><p class=\"mb-2\">Once the bank account has been added, it needs to be verified.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For Stripe, perform this verification using the <a href=\"/docs/api/payment_sources/verify-bank-account-payment-source\">Verify bank account payment source API</a>.</li>\n<li class=\"text-base leading-relaxed\">For <a href=\"https://www.authorize.net/\" target=\"_blank\">Authorize.net</a>, the verification is done by them in 2-3 days after the account is added. No intervention is needed from your side or your customer.</li>\n</ul><h4>Single Euro Payment Area (SEPA)</h4><p class=\"mb-2\">SEPA is an initiative that integrates bank transfer payments denominated in euro. It is supported via <a href=\"https://www.chargebee.com/docs/gocardless.html\" target=\"_blank\">GoCardless</a>, <a href=\"https://www.chargebee.com/docs/sepa-stripe.html\" target=\"_blank\">Stripe</a> and <a href=\"https://www.chargebee.com/docs/adyen-sepa.html\" target=\"_blank\">Adyen</a>.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For SEPA via Stripe, it is mandatory to pass <a href=\"/docs/api/advanced-features\">user details</a> such as IP address and device information.</li>\n<li class=\"text-base leading-relaxed\">For GoCardless, <a href=\"https://developer.gocardless.com/api-reference/#appendix-local-bank-details\" target=\"_blank\">local bank details</a> can be passed instead of IBAN.</li>\n</ul></div><h4>Bacs Payment Schemes Limited (BACS) and Bg Autogiro</h4><p class=\"mb-2\">Bacs is an organization that manages the Direct Debit and Direct Credit payment methods in the UK. Bg Autogiro is a Direct Debit scheme for krona denominated payments in Sweden. Both Bacs and Bg Autogiro are supported via <a href=\"https://www.chargebee.com/docs/gocardless.html\" target=\"_blank\">GoCardless</a>.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For BACS via Stripe, it is mandatory to pass <a href=\"/docs/api/advanced-features\">user details</a> such as IP address(<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-ip</code>) and the device information(<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-device</code>).</li>\n</ul></div><h4>Bulk Electronic Clearing System (BECS) and Pre-Authorized Debit (PAD)</h4><p class=\"mb-2\">BECS is an automated payment method for Direct Debit in Australia and New Zealand while PAD does the same for Canada. <a href=\"https://www.chargebee.com/docs/gocardless.html\" target=\"_blank\">GoCardless</a> supports both.</p><p class=\"mb-2\">For Direct Debit, the customer needs to accept a mandate that allows the merchant to debit their bank account. This agreement PDF can be obtained using the <a href=\"/docs/api/hosted_pages/retrieve-direct-debit-agreement-pdf\">Retrieve direct debit agreement PDF API</a>.</p><p class=\"mb-2\">If the customer has already reached the payment source limit allowed for the site, pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">replace_primary_payment_source</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>. Alternatively, <a href=\"/docs/api/payment_sources/delete-a-payment-source\">delete</a> one of the payment sources first and then add the bank account payment source for the customer.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For BECS via Stripe, it is mandatory to pass <a href=\"/docs/api/advanced-features\">user details</a> such as IP address(<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-ip</code>) and the device information(<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-device</code>).</li>\n</ul></div></div>",
        "operationId" : "create_a_bank_account_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer with whom this payment source is associated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "issuing_country" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "2-letter(alpha2) ISO country code. Required when local bank details are provided, and not IBAN.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "bank_account" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for bank_account\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "iban" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's International Bank Account Number. For the [GoCardless](https://www.chargebee.com/docs/gocardless.html)\nplatform, this can be the [local bank details](https://developer.gocardless.com/api-reference/#appendix-local-bank-details)\n",
                        "maxLength" : 50,
                        "minLength" : 10,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's first name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's last name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's company name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Account holder's email address. If not passed, details from customer details will be considered. All Direct Debit compliant emails will be sent to this email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the account holder that is linked to the bank account.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "bank_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Name of account holder's bank.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "account_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's bank account number.\n",
                        "maxLength" : 17,
                        "minLength" : 4,
                        "example" : null
                      },
                      "routing_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Bank account routing number.\n",
                        "maxLength" : 9,
                        "minLength" : 3,
                        "example" : null
                      },
                      "bank_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates the bank code.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "account_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Represents the account type used to create a payment source. Available for [Authorize.net](https://www.authorize.net/)\nACH and Razorpay NetBanking users only. If not passed, account type is taken as null.\n\\* current -\n\nCurrent Account\n\\* savings -\n\nSavings Account\n\\* checking -\n\nChecking Account\n\\* business_checking -\n\nBusiness Checking Account\n",
                        "enum" : [ "checking", "savings", "business_checking", "current" ],
                        "example" : null
                      },
                      "account_holder_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For Stripe ACH users only. Indicates the account holder type.\n\\* company -\n\nCompany Account.\n\\* individual -\n\nIndividual Account.\n",
                        "enum" : [ "individual", "company" ],
                        "example" : null
                      },
                      "echeck_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For Authorize.net ACH users only. Indicates the type of eCheck.\n\\* ppd -\n\nPayment Authorization is prearranged between the customer and the merchant.\n\\* web -\n\nPayment Authorization obtained from the customer via the internet.\n\\* ccd -\n\nPayment Authorization agreement from the corporate customer is required. Applicable for business_checking account_type.\n",
                        "enum" : [ "web", "ppd", "ccd" ],
                        "example" : null
                      },
                      "swedish_identity_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For GoCardless Autogiro users only. The civic/company number (personnummer, samordningsnummer, or organisationsnummer) of the customer. Must be supplied if the customer's bank account is denominated in Swedish krona (SEK). This field cannot be changed once it has been set.\n",
                        "maxLength" : 12,
                        "minLength" : 10,
                        "example" : null
                      },
                      "billing_address" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address associated with the bank account. The value is a JSON object with the following keys and their values:-   <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_name</code>:(string, max chars=150) The first name of the contact.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">last_name</code>:(string, max chars=150) The last name of the contact.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">company_name</code>:(string, max chars=250) The company name for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line1</code>:(string, max chars=180) The first line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line2</code>:(string, max chars=180) The second line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>:(string) The name of the country for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_code</code>:(string, max chars=50) The two-letter, <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO 3166 alpha-2</a> country code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code>:(string, max chars=50) The name of the state or province for the address. When not provided, this is set automatically for US, Canada, and India.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>:(string, max chars=50) The <a href=\"https://www.iso.org/obp/ui/#search/code/\">ISO 3166-2 state/province code</a> without the country prefix. This is supported for USA, Canada, and India. For instance, for Arizona (USA), set state_code as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC)</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">city</code>:(string, max chars=50) The city name for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">postal_code</code>:(string, max chars=20) The postal or ZIP code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">phone</code>:(string, max chars=50) The contact phone number for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>:(string, max chars=70) The contact email address for the address.</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "bank_account" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_sources/{cust-payment-source-id}/update_bank_account" : {
      "post" : {
        "summary" : "Update a bank account payment source",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API is used to update the payment source details of a customer. Information related to bank account payment source such as email, first name, and last name can be updated.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For GoCardless, Chargebee supports (ACH,BACS,SEPA,AUTOGIRO,BECS,BECS_NZ,PAD).</li>\n<li class=\"text-base leading-relaxed\">For Stripe, Chargebee only supports SEPA.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\">The API is only supported for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code> of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">direct_debit</code>.</p></div></div>",
        "operationId" : "update_a_bank_account_payment_source",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "cust-payment-source-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/cust-payment-source-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "bank_account" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for bank_account\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's first name as per bank account.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's last name as per bank account.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Account holder's email address. All Direct Debit compliant emails will be sent to this email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "bank_account" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "payment_source" : {
                      "$ref" : "#/components/schemas/PaymentSource",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_source</p>"
                    }
                  },
                  "required" : [ "customer", "payment_source" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/virtual_bank_accounts/{virtual-bank-account-id}/delete_local" : {
      "post" : {
        "summary" : "Local delete a virtual bank account",
        "description" : "Deletes virtual bank accounts from Chargebee. Payment method in the payment gateway, and Auto Collection settings in Chargebee are not affected.\n",
        "operationId" : "local_delete_a_virtual_bank_account",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "virtual-bank-account-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/virtual-bank-account-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "virtual_bank_account" : {
                      "$ref" : "#/components/schemas/VirtualBankAccount",
                      "description" : "<p class=\"mb-2\">Resource object representing virtual_bank_account</p>"
                    }
                  },
                  "required" : [ "virtual_bank_account" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/virtual_bank_accounts/{virtual-bank-account-id}/delete" : {
      "post" : {
        "summary" : "Delete a virtual bank account",
        "description" : "Deletes a virtual bank account. If there is no virtual bank account present in the gateway for the customer, this API will return successfully without throwing an error.\n",
        "operationId" : "delete_a_virtual_bank_account",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "virtual-bank-account-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/virtual-bank-account-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "virtual_bank_account" : {
                      "$ref" : "#/components/schemas/VirtualBankAccount",
                      "description" : "<p class=\"mb-2\">Resource object representing virtual_bank_account</p>"
                    }
                  },
                  "required" : [ "virtual_bank_account" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/virtual_bank_accounts" : {
      "get" : {
        "summary" : "List virtual bank accounts",
        "description" : "Lists all the virtual bank accounts.\n",
        "operationId" : "list_virtual_bank_accounts",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nIdentifier of the customer.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*customer_id\\[is\\] = \"3bdjnDnsdQn\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "3bdjnDnsdQn",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this virtual bank account resource was last updated.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[after\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this virtual bank account resource is created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[after\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "virtual_bank_account" : {
                            "$ref" : "#/components/schemas/VirtualBankAccount",
                            "description" : "Resource object representing virtual_bank_account"
                          }
                        },
                        "required" : [ "virtual_bank_account" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a virtual bank account",
        "description" : "Creates a virtual bank account for a customer. Email address is mandatory for virtual bank account creation. All notifications related to this virtual bank account will be sent to the email address you specify.  \nCustomer's email and virtual bank accounts will always be in sync.\n",
        "operationId" : "create_a_virtual_bank_account",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "email" : {
                    "type" : "string",
                    "format" : "email",
                    "deprecated" : false,
                    "description" : "Email address associated with the virtual bank account.\n",
                    "maxLength" : 70,
                    "example" : null
                  },
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Identifier of the gateway account to use when creating the virtual bank account.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong>\nWhen not provided, Chargebee selects an applicable gateway account for the chosen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>. Selection follows your site&#x27;s <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Smart Routing</a> rules.</p></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "scheme" : {
                    "type" : "string",
                    "default" : "ach_credit",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Type of the credit transfer.</p>\n* mx_automated_bank_transfer - <p class=\"mb-2\">MX Automated Bank Transfer</p>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit Transfer</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This scheme is deprecated. Instead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sepa_credit</code>\nuse <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">eu_automated_bank_transfer</code>\n.</p></div>\n* eu_automated_bank_transfer - <p class=\"mb-2\">EU Automated Bank Transfer</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit Transfer</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This scheme is deprecated. Instead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ach_credit</code>\nuse <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">us_automated_bank_transfer</code>\n.</p></div>\n* jp_automated_bank_transfer - <p class=\"mb-2\">JP Automated Bank Transfer</p>\n* us_automated_bank_transfer - <p class=\"mb-2\">US Automated Bank Transfer</p>\n* gb_automated_bank_transfer - <p class=\"mb-2\">UK Automated Bank Transfer</p>",
                    "enum" : [ "ach_credit", "sepa_credit", "us_automated_bank_transfer", "gb_automated_bank_transfer", "eu_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer" ],
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "virtual_bank_account" : {
                      "$ref" : "#/components/schemas/VirtualBankAccount",
                      "description" : "<p class=\"mb-2\">Resource object representing virtual_bank_account</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "virtual_bank_account" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/virtual_bank_accounts/{virtual-bank-account-id}" : {
      "get" : {
        "summary" : "Retrieve a virtual bank account",
        "description" : "Retrieves the virtual bank account identified by the unique identifier.\n",
        "operationId" : "retrieve_a_virtual_bank_account",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "virtual-bank-account-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/virtual-bank-account-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "virtual_bank_account" : {
                      "$ref" : "#/components/schemas/VirtualBankAccount",
                      "description" : "<p class=\"mb-2\">Resource object representing virtual_bank_account</p>"
                    }
                  },
                  "required" : [ "virtual_bank_account" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/virtual_bank_accounts/create_using_permanent_token" : {
      "post" : {
        "summary" : "Create a virtual bank account using permanent token",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a virtual bank account (VBA) for a <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> using a <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/stripe-automated-bank-transfer#supported-token-formats\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">permanent token</a> obtained from a payment gateway.</p><p class=\"mb-2\">Use this operation when you have already created a payment source at the gateway and obtained a permanent token (reference ID) for it.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The customer must not already have an active VBA for the same <a href=\"/docs/api/virtual_bank_accounts#scheme\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code></a>. For example, if the customer already has a VBA with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">us_automated_bank_transfer</code>, you cannot create another VBA with the same scheme.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Virtual bank account</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A new virtual bank account resource is created and associated with the customer. The virtual bank account includes details such as bank account number, routing number (or IBAN), bank name, and other payment instructions retrieved from the gateway using the provided reference ID.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/virtual_bank_accounts#email\" class=\"text-blue-600 hover:text-blue-800 underline\">email address</a> for the VBA is set at the gateway from the <a href=\"/docs/api/customers#email\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.email</code></a> attribute. Later, if the email address is updated for the customer, the email address for the VBA is also updated.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Check if the customer already has a virtual bank account for the same scheme by calling the <a href=\"/docs/api/virtual_bank_accounts/list-virtual-bank-accounts\" class=\"text-blue-600 hover:text-blue-800 underline\">List virtual bank accounts API</a> with the <a href=\"/docs/api/customers/list-customers#list_customers_id\" class=\"text-blue-600 hover:text-blue-800 underline\">customer ID</a> filter. If a virtual bank account exists for the same scheme, the API returns a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_already_exists</code> error.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Validate that the required currency for the scheme is enabled. Use the <a href=\"/docs/api/currencies/list-currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">List currencies API</a> to check if the currency is enabled.</p>\n</li>\n</ul></div>",
        "operationId" : "create_a_virtual_bank_account_using_permanent_token",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier of the [customer](/docs/api/customers) for whom you want to create a virtual bank account.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "reference_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The identifier (permanent token) used to fetch the payment source details from the gateway. For example, in Stripe it may be only the Stripe Customer ID (for example, cus_63MnDn0t6kfDW7), or a combination of Stripe Customer ID and Stripe Source ID separated by a forward slash (for example, cus_63MnDn0t6kfDW7/src_6WjCF20vT9WN1G).</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway_account_id</code> is provided, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> must belong to the gateway account.</li>\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">gateway_account_id</code> is not provided, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_id</code> must belong to the gateway account selected based on the <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">gateway routing rules</a> for the payment method type and currency combination.</li>\n</ul></div>",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Identifier of the payment gateway account to use when creating the virtual bank account.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong>\nWhen not provided, Chargebee selects an applicable gateway account for the chosen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>. Selection follows your site&#x27;s <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/gateway_settings#smart-routing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Smart Routing</a> rules.</p></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "scheme" : {
                    "type" : "string",
                    "default" : "ach_credit",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The type of automated bank transfer scheme for the virtual bank account.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If billing address validation is enabled for your site, the customer must have a billing address with a country code.</li>\n</ul></div>\n* mx_automated_bank_transfer - <p class=\"mb-2\">Mexico Automated Bank Transfer scheme for Mexico-based customers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">MXN currency must be <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for the site.</li>\n<li class=\"text-base leading-relaxed\">The customer&#x27;s <a href=\"/docs/api/customers#billing_address_country\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">MX</code>.</li>\n</ul></div>\n* sepa_credit - <div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This scheme is deprecated. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">eu_automated_bank_transfer</code> instead.</li>\n</ul></div>\n<p class=\"mb-2\">SEPA Credit Transfer scheme for customers in the European Union.</p>\n* eu_automated_bank_transfer - <p class=\"mb-2\">EU Automated Bank Transfer scheme for customers in the European Union.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">EUR currency must be <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for the site.</li>\n<li class=\"text-base leading-relaxed\">The customer&#x27;s <a href=\"/docs/api/customers#billing_address_country\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code></a> must be in a SEPA-supported region.</li>\n</ul></div>\n* ach_credit - <div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This scheme is deprecated. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">us_automated_bank_transfer</code> instead.</li>\n</ul></div>\n<p class=\"mb-2\">ACH Credit Transfer scheme for US-based customers.</p>\n* jp_automated_bank_transfer - <p class=\"mb-2\">Japan Automated Bank Transfer scheme for Japan-based customers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">JPY currency must be <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for the site.</li>\n<li class=\"text-base leading-relaxed\">The customer&#x27;s <a href=\"/docs/api/customers#billing_address_country\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">JP</code>.</li>\n</ul></div>\n* us_automated_bank_transfer - <p class=\"mb-2\">US Automated Bank Transfer scheme for US-based customers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">USD currency must be <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for the site.</li>\n<li class=\"text-base leading-relaxed\">The customer&#x27;s <a href=\"/docs/api/customers#billing_address_country\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US</code>.</li>\n</ul></div>\n<p class=\"mb-2\">US Automated Bank Transfer</p>\n* gb_automated_bank_transfer - <p class=\"mb-2\">UK Automated Bank Transfer scheme for UK-based customers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">GBP currency must be <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for the site.</li>\n<li class=\"text-base leading-relaxed\">The customer&#x27;s <a href=\"/docs/api/customers#billing_address_country\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.</li>\n</ul></div>",
                    "enum" : [ "ach_credit", "sepa_credit", "us_automated_bank_transfer", "gb_automated_bank_transfer", "eu_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer" ],
                    "example" : null
                  }
                },
                "required" : [ "customer_id", "reference_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "virtual_bank_account" : {
                      "$ref" : "#/components/schemas/VirtualBankAccount",
                      "description" : "<p class=\"mb-2\">Resource object representing virtual_bank_account</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "virtual_bank_account" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/copy_card" : {
      "post" : {
        "summary" : "Copy card",
        "description" : "#### deprecated\n\nThe [Payment Sources API](/docs/api/payment_sources)\n, with its additional options and improvements, obsoletes the Cards APIs. This request is obsoleted by the [Export payment source API](/docs/api/payment_sources/export-payment-source)\n.\n\nCopies the customer's card information to another payment gateway. This is useful if you want to port your customer's card details to another gateway.  \n**Limitation**\n\nThis request does not support copying of cards between Braintree and Stripe payment gateways. Contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support)\nto perform those actions.\n",
        "operationId" : "copy_card",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account you want to copy the card.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "gateway_account_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "third_party_payment_method" : {
                      "$ref" : "#/components/schemas/ThirdPartyPaymentMethod",
                      "description" : "<p class=\"mb-2\">Resource object representing third_party_payment_method</p>"
                    }
                  },
                  "required" : [ "third_party_payment_method" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/cards/{customer-id}" : {
      "get" : {
        "summary" : "Retrieve card for a customer",
        "description" : "#### Deprecated\n\nThis operation is obsoleted by the [Retrieve a payment source API](/docs/api/payment_sources/retrieve-a-payment-source)\n.\n\nRetrieves the credit card for the customer id.\n",
        "operationId" : "retrieve_card_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "card" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/switch_gateway" : {
      "post" : {
        "summary" : "Switch gateway",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><h4>Deprecated</h4><p class=\"mb-2\">This request is obsoleted by the <a href=\"/docs/api/payment_sources/switch-gateway-account\">Switch gateway account API</a>\nfor Payment Sources.</p></div><p class=\"mb-2\">Switches the gateway in which customer&#x27;s card information is stored. This is applicable only if the payment method is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Limitation</strong></p><p class=\"mb-2\">This request does not support switching between Braintree and Stripe payment gateways. Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>\nto perform those actions.</p></div></div>",
        "operationId" : "switch_gateway",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account you want to switch to.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "gateway_account_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "card", "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/delete_card" : {
      "post" : {
        "summary" : "Delete card for a customer",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><h4>deprecated</h4><p class=\"mb-2\">The <a href=\"/docs/api/payment_sources\">Payment Sources API</a>\n, with its additional options and improvements, obsoletes the Cards APIs. This request is obsoleted by the <a href=\"/docs/api/payment_sources/delete-a-payment-source\">Delete a payment source API</a>\n.</p></div><p class=\"mb-2\">Deletes the card for a customer. Upon successful deletion the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> attribute for the customer is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">off</code> and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card_deleted</code> event is triggered. If there is no card found at the gateway for the customer, this API returns without errors.</p></div>",
        "operationId" : "delete_card_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/credit_card" : {
      "post" : {
        "summary" : "Update card for a customer",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><h4>Deprecated</h4><p class=\"mb-2\">The <a href=\"/docs/api/payment_sources\">Payment Sources API</a>\n, with its additional options and improvements, obsoletes the <a href=\"/docs/api/cards\">Cards APIs</a>\n. This operation is obsoleted by the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/payment_sources/create-using-gateway-temporary-token\">Create using temporary token</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/payment_sources/create-using-permanent-token\">Create using permanent token</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/payment_sources/create-a-card-payment-source\">Create a card payment source</a>\n</li>\n</ul></div><p class=\"mb-2\">Adds or replaces card details of a customer. Updating card details replaces the present payment method.</p><p class=\"mb-2\">Passing credit card details to this API involves PCI liability at your end as sensitive card info passes through your servers. If you wish to avoid that, you can use one of the following integration methodologies if applicable</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If you are using Stripe gateway, you can use <a href=\"https://stripe.com/docs/stripe.js\" target=\"_blank\">Stripe.js</a> with your card update form.</li>\n<li class=\"text-base leading-relaxed\">If you are using Braintree gateway, you can use <a href=\"https://www.braintreepayments.com/docs/javascript\" target=\"_blank\">Braintree.js</a> with your card update form.</li>\n<li class=\"text-base leading-relaxed\">If you are using Authorize.Net gateway, you use <a href=\"https://developer.authorize.net/api/reference/features/acceptjs.html\" target=\"_blank\">Accept.js</a> with your card update form.</li>\n<li class=\"text-base leading-relaxed\">In case you are using the Adyen gateway, you will have to use the Adyen&#x27;s <a href=\"https://docs.adyen.com/online-payments/classic-integrations/api-integration-ecommerce/cse-integration-ecommerce\" target=\"_blank\">Client Side Encryption</a> to encrypt sensitive cardholder data. Once the cardholder data is encrypted, pass the value in adyen.encrypted.data as temp token in this API.</li>\n<li class=\"text-base leading-relaxed\">You can also use our <a href=\"https://www.chargebee.com/docs/hosted_pages.html\" target=\"_blank\">Hosted Pages</a> based integration. Use our <a href=\"/docs/api/hosted_pages\">Hosted Page - Update Card</a> API to generate a &#x27;Update Card&#x27; Hosted Page link.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Legacy behavior:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">For <a href=\"https://www.chargebee.com/docs/sites-intro.html\" target=\"_blank\">sites</a> created before March 1st, 2014:</strong> On making this request, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code> of the customer are <strong class=\"font-semibold\">deleted</strong> and replaced by the values passed with this request. Ensure that you pass the <a href=\"/docs/api/v2/pcv-1/subscriptions/create-a-subscription#card_billing_addr1\">billing address parameters</a> and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code> parameters each time you make this request, to avoid losing the same information at the customer-level.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">For <a href=\"https://www.chargebee.com/docs/sites-intro.html\" target=\"_blank\">sites</a> created on or after March 1st, 2014:</strong> This request does not alter the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code> of the customer.</li>\n</ul></div></div>",
        "operationId" : "update_card_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account in which this payment source is stored.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "tmp_token" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The single-use card token returned by vaults like Stripe/Braintree which act as a substitute for your card details. Before calling this API, you should have submitted your card details to the gateway and gotten this token in return.\n**Note:**\nSupported only for Stripe, Braintree and Authorize.Net. If this value is specified, there is no need to specify other card details (like number, cvv, etc).\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "first_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Cardholder's first name.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "last_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Cardholder's last name.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The credit card number without any format. If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted card number here.\n",
                    "maxLength" : 1500,
                    "example" : null
                  },
                  "expiry_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Card expiry month.\n",
                    "maximum" : 12,
                    "minimum" : 1,
                    "example" : null
                  },
                  "expiry_year" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Card expiry year.\n",
                    "example" : null
                  },
                  "cvv" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The card verification value (CVV). If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted CVV here.\n",
                    "maxLength" : 520,
                    "example" : null
                  },
                  "preferred_scheme" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customer's preferred card scheme for co-branded cards.  \n**Note**:\nCurrently, this parameter is only supported for Stripe.\n\\* mada -\n\nA Mada card scheme.\n\\* mastercard -\n\nA MasterCard scheme.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card scheme.\n\\* visa -\n\nA Visa card scheme.\n",
                    "enum" : [ "cartes_bancaires", "mastercard", "visa" ],
                    "example" : null
                  },
                  "billing_addr1" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 1, as available in card billing address.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "billing_addr2" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 2, as available in card billing address.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "billing_city" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "City, as available in card billing address.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "billing_state_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "billing_state" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "billing_zip" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Postal or Zip code, as available in card billing address.\n",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "billing_country" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>\n<p class=\"mb-2\">.</p>",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "expiry_month", "expiry_year", "number" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "card" : {
                      "$ref" : "#/components/schemas/Card",
                      "description" : "<p class=\"mb-2\">Resource object representing card</p>"
                    }
                  },
                  "required" : [ "card", "customer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/promotional_credits/{account-credit-id}" : {
      "get" : {
        "summary" : "Retrieve a promotional credit",
        "description" : "This endpoint retrieves the promotional credit based on the promotional credit id\n",
        "operationId" : "retrieve_a_promotional_credit",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "account-credit-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/account-credit-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "promotional_credit" : {
                      "$ref" : "#/components/schemas/PromotionalCredit",
                      "description" : "<p class=\"mb-2\">Resource object representing promotional_credit</p>"
                    }
                  },
                  "required" : [ "promotional_credit" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/promotional_credits" : {
      "get" : {
        "summary" : "List promotional credits",
        "description" : "This endpoint lists the promotional credits set for a customer\n",
        "operationId" : "list_promotional_credits",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nUnique reference ID provided for promotional credits.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*id\\[is\\] = \"1bkfc8dw2o\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1bkfc8dw2o",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this promotional credit resource is created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[on\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nType of promotional credits. Possible values are : increment, decrement.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*type\\[is\\] = \"increment\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "increment",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`increment\\` - Increment \\* \\`decrement\\` - Decrement\n",
                "enum" : [ "increment", "decrement" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`increment\\` - Increment \\* \\`decrement\\` - Decrement\n",
                "enum" : [ "increment", "decrement" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`increment\\` - Increment \\* \\`decrement\\` - Decrement\n",
                "enum" : [ "increment", "decrement" ],
                "pattern" : "^\\[(increment|decrement)(,(increment|decrement))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`increment\\` - Increment \\* \\`decrement\\` - Decrement\n",
                "enum" : [ "increment", "decrement" ],
                "pattern" : "^\\[(increment|decrement)(,(increment|decrement))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nIdentifier of the customer.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*customer_id\\[is\\] = \"4gkYnd21ouvW\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "4gkYnd21ouvW",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "promotional_credit" : {
                            "$ref" : "#/components/schemas/PromotionalCredit",
                            "description" : "Resource object representing promotional_credit"
                          }
                        },
                        "required" : [ "promotional_credit" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/promotional_credits/deduct" : {
      "post" : {
        "summary" : "Deduct Promotional Credits",
        "description" : "This API call can be used to deduct promotional credits for a customer. [Learn more about Promotional Credits](https://www.chargebee.com/docs/2.0/credit-notes.html#creating-promotional-credits).\n\nFor example, if a customer has a credit balance of $20, if you pass the **amount** as $5, then the customer's credit balance would become $15.\n\nIf you do not pass any amount as the input parameter then, it will deduct the whole available amount from the credit balance.\n",
        "operationId" : "deduct_promotional_credits",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Promotional credits amount.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "amount_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Amount in decimal.\n",
                    "maxLength" : 33,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) for promotional credit.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Detailed description of this promotional credits.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "credit_type" : {
                    "type" : "string",
                    "default" : "general",
                    "deprecated" : false,
                    "description" : "Type of promotional credits provided to customer.\n\\* general -\n\nGeneral\n\\* referral_rewards -\n\nReferral\n\\* loyalty_credits -\n\nLoyalty Credits\n",
                    "enum" : [ "loyalty_credits", "referral_rewards", "general" ],
                    "example" : null
                  },
                  "reference" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Describes why promotional credits were provided.\n",
                    "maxLength" : 500,
                    "example" : null
                  }
                },
                "required" : [ "customer_id", "description" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "promotional_credit" : {
                      "$ref" : "#/components/schemas/PromotionalCredit",
                      "description" : "<p class=\"mb-2\">Resource object representing promotional_credit</p>"
                    }
                  },
                  "required" : [ "customer", "promotional_credit" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/promotional_credits/set" : {
      "post" : {
        "summary" : "Set Promotional Credits",
        "description" : "This API call can be used to set the promotional credits balance of a customer. [Learn more about Promotional Credits](https://www.chargebee.com/docs/2.0/credit-notes.html#creating-promotional-credits).\n\nFor example,\n\n* If a customer has a credit balance of $10 and if you would like to set the balance to $100, you could pass the **amount** as $100.\n* If a customer has a credit balance of $10 and if you would like to set the balance to $5, you could pass the **amount** as $5.\n* If a customer has a credit balance of $10 and if you would like to clear the balance, you could pass the **amount** as $0.\n",
        "operationId" : "set_promotional_credits",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Promotional credits amount.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "amount_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Amount in decimal.\n",
                    "maxLength" : 33,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) for promotional credit.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Detailed description of this promotional credits.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "credit_type" : {
                    "type" : "string",
                    "default" : "general",
                    "deprecated" : false,
                    "description" : "Type of promotional credits provided to customer. \\\\\\* general - General \\\\\\* referral_rewards - Referral \\\\\\* loyalty_credits - Loyalty Credits\n",
                    "enum" : [ "loyalty_credits", "referral_rewards", "general" ],
                    "example" : null
                  },
                  "reference" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Describes why promotional credits were provided.\n",
                    "maxLength" : 500,
                    "example" : null
                  }
                },
                "required" : [ "customer_id", "description" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "promotional_credit" : {
                      "$ref" : "#/components/schemas/PromotionalCredit",
                      "description" : "<p class=\"mb-2\">Resource object representing promotional_credit</p>"
                    }
                  },
                  "required" : [ "customer", "promotional_credit" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/promotional_credits/add" : {
      "post" : {
        "summary" : "Add Promotional Credits",
        "description" : "This API call can be used to add promotional credits to a customer. [Learn more about Promotional Credits](https://www.chargebee.com/docs/2.0/credit-notes.html#creating-promotional-credits).\n\nFor example, if a customer has credits of $10, if you pass the **amount** as $10, then the customer's credit balance would become $20.\n",
        "operationId" : "add_promotional_credits",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Promotional credits amount.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "amount_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Amount in decimal.\n",
                    "maxLength" : 33,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) for promotional credit.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Detailed description of this promotional credits.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "credit_type" : {
                    "type" : "string",
                    "default" : "general",
                    "deprecated" : false,
                    "description" : "Type of promotional credits provided to customer. \\\\\\* general - General \\\\\\* referral_rewards - Referral \\\\\\* loyalty_credits - Loyalty Credits\n",
                    "enum" : [ "loyalty_credits", "referral_rewards", "general" ],
                    "example" : null
                  },
                  "reference" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Describes why promotional credits were provided.\n",
                    "maxLength" : 500,
                    "example" : null
                  }
                },
                "required" : [ "customer_id", "description" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "promotional_credit" : {
                      "$ref" : "#/components/schemas/PromotionalCredit",
                      "description" : "<p class=\"mb-2\">Resource object representing promotional_credit</p>"
                    }
                  },
                  "required" : [ "customer", "promotional_credit" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/delete_line_items" : {
      "post" : {
        "summary" : "Delete Line Items",
        "description" : "This endpoint is used to delete line items from \"Pending\" invoice.\n",
        "operationId" : "delete_line_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "line_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "The list of line items which have to be deleted.\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies a line_item\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "line_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/remove_credit_note" : {
      "post" : {
        "summary" : "Remove credit note from an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Removes the specified adjustment credit or refundable credit allocation applied to the invoice.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice status must not be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note status must not be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note type must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">Refundable credit allocation cannot be removed if the amount allocated exceeds the refundable amount on the invoice. See <strong class=\"font-semibold\">Implementation Notes</strong> for more details.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/invoices/invoice-object#amount_due\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code></a> increases by the <a href=\"/docs/api/credit_notes/credit-note-object#allocations\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[i].allocated_amount</code></a> of the credit note.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/invoices/invoice-object#amount_adjusted\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_adjusted</code></a> decreases by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[i].allocated_amount</code> of the credit note if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/invoices/invoice-object#write_off_amount\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">write_off_amount</code></a> decreases by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[i].allocated_amount</code> of the credit note if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.create_reason_code</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Write Off</code>.</li>\n<li class=\"text-base leading-relaxed\">If the invoice <a href=\"/docs/api/invoices/invoice-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\">status</a> was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, the status does not change after the credit note is removed.</li>\n<li class=\"text-base leading-relaxed\">If the invoice status was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The status changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code> if the <a href=\"/docs/api/invoices/invoice-object#due_date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">due_date</code></a> is in the future.</li>\n<li class=\"text-base leading-relaxed\">The status changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code> if the due date is in the past.</li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit note</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_allocated</code> decreases and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code> increases by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[i].allocated_amount</code>, where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code> is such that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[i].invoice_id</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.id</code>.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before you call this API, make sure that:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice status is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note status is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">For refundable credit notes, the amount allocated to the invoice via the credit note must not exceed the refundable amount on the invoice. The refundable amount on the invoice is calculated as: (total amount paid) + (total refundable credits allocated to the invoice) + (total tax withheld recorded on the invoice) - (total refundable credits issued against the invoice). Each of these amounts can be obtained as follows:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">amount allocated to the invoice via the credit note: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.allocations[i].allocated_amount</code> where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.allocations[i].invoice_id</code> == <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.id</code>.</li>\n<li class=\"text-base leading-relaxed\">total amount paid: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_paid</code>.</li>\n<li class=\"text-base leading-relaxed\">total refundable credits allocated to the invoice: sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.applied_credits[i].applied_amount</code></li>\n<li class=\"text-base leading-relaxed\">total tax withheld recorded on the invoice: sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.linked_taxes_withheld[i].amount</code></li>\n<li class=\"text-base leading-relaxed\">total refundable credits issued against the invoice: sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.issued_credit_notes[i].cn_total</code></li>\n</ul>\n</li>\n</ul></div>",
        "operationId" : "remove_credit_note_from_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "credit_note" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_note\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Credit-note id.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "credit_note" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note", "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/remove_payment" : {
      "post" : {
        "summary" : "Remove payment from an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Removes a <a href=\"/docs/api/invoices/apply-payments-for-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">payment</a> <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">transaction</a> that was applied to an invoice and moves the amount to the customer&#x27;s excess payments balance.</p><p class=\"mb-2\">This API does not refund the payment to the customer. To refund a payment transaction, use one of the following APIs:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For online payments, use <a href=\"/docs/api/transactions/refund-a-payment\" class=\"text-blue-600 hover:text-blue-800 underline\">Refund a payment</a>.</li>\n<li class=\"text-base leading-relaxed\">For offline payments, use <a href=\"/docs/api/transactions/record-an-offline-refund\" class=\"text-blue-600 hover:text-blue-800 underline\">Record an offline refund</a>.</li>\n</ul></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice must not have any refunds or refundable credits issued. Specifically, there must be no <a href=\"/docs/api/invoices/invoice-object#issued_credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes</code></a> with a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code> for the invoice.</li>\n<li class=\"text-base leading-relaxed\">The specified transaction must be linked to the invoice. It must match one of the <a href=\"#invoice_linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[].txn_id</code></a> for the invoice.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/transactions/transaction-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> of the transaction must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/invoices/invoice-object#amount_due\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code></a> on the invoice increases by the amount of the removed payment.</li>\n<li class=\"text-base leading-relaxed\">If the invoice <a href=\"/docs/api/invoices/invoice-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\">status</a> was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, the status does not change after a payment is removed.</li>\n<li class=\"text-base leading-relaxed\">If the invoice status was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The status changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code> if the <a href=\"/docs/api/invoices/invoice-object#due_date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">due_date</code></a> is in the future.</li>\n<li class=\"text-base leading-relaxed\">The status changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code> if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">due_date</code> is in the past and <a href=\"/docs/api/customers/customer-object#auto_collection\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">off</code>, or if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code> and dunning is in progress for the invoice.</li>\n<li class=\"text-base leading-relaxed\">The status changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code> if the due date is in the past, <a href=\"/docs/api/customers/customer-object#auto_collection\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>, and dunning was <strong class=\"font-semibold\">not</strong> in progress for the invoice.</li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transaction</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The <a href=\"/docs/api/transactions/transaction-object#amount_unused\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_unused</code></a> on the transaction increases by the amount of the removed payment.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Customer excess payments balance</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The customer&#x27;s <a href=\"/docs/api/customers/customer-object#excess_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code></a> balance increases by the amount of the removed payment.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice dunning process</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the invoice status was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code> before this operation, and dunning was in progress for the invoice, the dunning process continues as configured.</li>\n<li class=\"text-base leading-relaxed\">If the invoice status was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> before this operation, the dunning process <strong class=\"font-semibold\">does not</strong> resume.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before you call this API, make sure that:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There are no <a href=\"/docs/api/invoices/invoice-object#issued_credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes</code></a> with a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code> for the invoice.</li>\n<li class=\"text-base leading-relaxed\">The specified transaction matches one of the <a href=\"#invoice_linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[].txn_id</code></a> for the invoice.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/transactions/transaction-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> of the transaction is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>.</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/transactions?prod_cat_ver=2#refund_a_payment\"><p class=\"mb-2\">Refund a payment</p></a><a href=\"/docs/api/transactions?prod_cat_ver=2#record_an_offline_refund\"><p class=\"mb-2\">Record an offline refund</p></a></div>\n<div class=\"faqs\"><h3>FAQs</h3><div class=\"faq\"><h4 class=\"faq-title\"><p class=\"mb-2\">Can I remove payments from multiple invoices at once?</p></h4><div class=\"faq-description\"><p class=\"mb-2\">Yes. To remove payments from multiple invoices in bulk, go to <strong class=\"font-semibold\">Settings</strong> &gt; <strong class=\"font-semibold\">Import</strong> &gt; <strong class=\"font-semibold\">Export Data</strong> &gt; <strong class=\"font-semibold\">Bulk Operation</strong>, and select <strong class=\"font-semibold\">Remove payment from Invoice</strong>.</p></div></div><div class=\"faq\"><h4 class=\"faq-title\"><p class=\"mb-2\">How can I track the history of payments removed from invoices?</p></h4><div class=\"faq-description\"><p class=\"mb-2\">You can view the history of payments removed from invoices in the <strong class=\"font-semibold\">Activity Log</strong> section of the invoice. The log shows all actions taken, including payments removed.</p></div></div></div>",
        "operationId" : "remove_payment_from_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "transaction" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transaction\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Uniquely identifies the transaction.\n",
                        "maxLength" : 40,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "transaction" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "invoice", "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/stop_dunning" : {
      "post" : {
        "summary" : "Stop dunning for invoice",
        "description" : "This API is used to stop dunning for \"Payment Due\" invoices that have been enabled for Auto Collection. When dunning is stopped, the status of the invoice will be changed to \"Not Paid\".\n",
        "operationId" : "stop_dunning_for_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/apply_payments" : {
      "post" : {
        "summary" : "Apply payments for an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Applies  payment to a single invoice. You can either specify individual payment <a href=\"/docs/api/transactions\" class=\"text-blue-600 hover:text-blue-800 underline\">transactions</a> as parameters, or Chargebee applies any available <a href=\"/docs/api/customers/customer-object#excess_payments\" class=\"text-blue-600 hover:text-blue-800 underline\">excess payments</a> for that customer. If you specify individual transactions then any <a href=\"/docs/api/transactions/transaction-object#amount_unused\" class=\"text-blue-600 hover:text-blue-800 underline\">un-applied amount</a> in those transactions will be used.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n<li class=\"text-base leading-relaxed\">The customer must have excess payments available.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Invoice&#x27;s <a href=\"/docs/api/invoices/invoice-object#amount_due\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code></a> is updated to reflect the applied payment. If no amount remains, the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transactions</p></strong><div class=\"impact-description\"><p class=\"mb-2\">When a payment is applied to an invoice, the <a href=\"/docs/api/transactions/transaction-object#amount_unused\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_unused</code></a> field of the associated transaction(s) is reduced accordingly.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Accounting Integrations</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Synchronization to the accounting system will not proceed if the linked transaction contains a surplus balance.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n<li class=\"text-base leading-relaxed\">Customer has <a href=\"/docs/api/customers/customer-object#excess_payments\" class=\"text-blue-600 hover:text-blue-800 underline\">excess_payments</a> .</li>\n</ul></div>",
        "operationId" : "apply_payments_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "transactions" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transactions\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies the transaction. Excess payments available with the customer will be applied against this invoice if this parameter is not passed.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the amount from the transaction to apply as a payment towards the invoice. The amount applied is the smallest of the following values: the amount you specify for this parameter, <code><a href=\"/docs/api/invoices/invoice-object#amount_due\">transactions.unused_amount</a></code>\n, or <code><a href=\"/docs/api/invoices/invoice-object#amount_due\">invoice.amount_due</a></code>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "transactions" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/apply_payment_schedule_scheme" : {
      "post" : {
        "summary" : "Apply payment schedule scheme to an invoice",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-payment-schedules\"></span><p class=\"mb-2\">Applying a payment schedule scheme to an invoice creates payment schedules, enabling the invoice to be paid in multiple, scheduled payments.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThe invoice must be in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>\n.</p></div></div>",
        "operationId" : "apply_payment_schedule_scheme_to_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "scheme_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule_scheme</code>\n, used to create the payment schedules.</p>",
                    "example" : null
                  },
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The part of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>\nto be distributed across the payment schedules. If not specified, the entire <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>\nis considered by default.</p>",
                    "minimum" : 0,
                    "example" : null
                  }
                },
                "required" : [ "scheme_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/void" : {
      "post" : {
        "summary" : "Void an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Voids the specified invoice.</p><p class=\"mb-2\">Use this operation when:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice was generated in error.</li>\n<li class=\"text-base leading-relaxed\">The invoice amount is incorrect.</li>\n<li class=\"text-base leading-relaxed\">The customer requests a change to the invoice.</li>\n<li class=\"text-base leading-relaxed\">The customer cancels the order.</li>\n</ul><p class=\"mb-2\">Voiding preserves the audit trail and allows for future reference and compliance without removing the original record.</p><h4>Regenerate or import an invoice</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the invoice is for the current term of a subscription, you can regenerate it using the <a href=\"/docs/api/subscriptions/regenerate-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Regenerate an invoice API</a>.</li>\n<li class=\"text-base leading-relaxed\">If the invoice is not for the current term of a subscription, you can import it using the <a href=\"/docs/api/invoices/import-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Import an invoice API</a> or the UI <a href=\"https://www.chargebee.com/docs/2.0/bulk-operations.html#overview_available-bulk-operations\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">bulk import</a> action.</li>\n</ul></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice must not have any <a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code></a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_adjusted</code> on the invoice must be zero.</li>\n<li class=\"text-base leading-relaxed\">The invoice must not have any <a href=\"/docs/api/invoices/invoice-object#applied_credits\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applied_credits</code></a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice must not have any <a href=\"/docs/api/invoices/invoice-object#issued_credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes</code></a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice must not have any <a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee sets the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the invoice is for the current term of a subscription and you change the subscription later within the same term with <a href=\"/docs/api/subscriptions/update-subscription-for-items#prorate\" class=\"text-blue-600 hover:text-blue-800 underline\">proration</a> enabled, Chargebee does not issue prorated credits.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Customer</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee adds back any promotional credits that were applied to the invoice to <a href=\"/docs/api/customers/customer-object#balances\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.balances.promotional_credits</code></a>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit Note</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/billing/how-to-enable-void-invoice-with-credit-note-setting\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\"><strong class=\"font-semibold\">Void invoices with credit note</strong></a> setting is enabled, Chargebee creates a credit note for the voided invoice:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_reason_code</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Invoice Void</code>.</li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Usages</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee delinks the <a href=\"/docs/api/usages\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage</code></a> resources associated with the invoice by clearing the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_id</code> attribute.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Integrations</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Review how voiding an invoice impacts your <a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/finance-integration-index\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">accounting</a> integrations.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/remove-payment-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove</a> any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove</a> the following credits:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applied_credits</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code></li>\n<li class=\"text-base leading-relaxed\">any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code></li>\n<li class=\"text-base leading-relaxed\">any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment_credit_notes</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code></li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/remove-tax-withheld-for-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove</a> any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code>.</li>\n</ul></div>",
        "operationId" : "void_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "void_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for voiding the invoice. Select from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Invoices \\> Void invoice**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/add_charge" : {
      "post" : {
        "summary" : "Add one-time charge to a pending invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Adds a one-time charge to a <a href=\"/docs/api/invoices/invoice-object#status\" target=\"_blank\">pending</a> invoice. A one-time charge is a charge that is added ad hoc to the invoice and does not represent a predefined <a href=\"/docs/api/item_prices\" target=\"_blank\">item price</a>. It appears in the invoice as a <code><a href=\"/docs/api/invoices/invoice-object#line_items\" target=\"_blank\">line_item</a></code> of <code><a href=\"/docs/api/invoices/invoice-object#line_items_entity_type\" target=\"_blank\">entity_type</a></code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adhoc</code>.</p></div>",
        "operationId" : "add_one-time_charge_to_a_pending_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Detailed description about this lineitem.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "avalara_sale_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* retail -\n\nTransaction is a sale to an end user\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n",
                    "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                    "example" : null
                  },
                  "avalara_transaction_type" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "example" : null
                  },
                  "avalara_service_type" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "example" : null
                  },
                  "avalara_tax_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This represents the Avalara tax code to which the one-time charge is mapped. Applicable only if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avatax-for-sales.html)\n.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "hsn_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the one-time charge is mapped for calculating the customer's tax in India. Applicable when both the conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee. .\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "taxjar_product_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This represents the TaxJar product code to which the one-time charge is mapped. Applicable only if you use Chargebee's [TaxJar integration](https://www.chargebee.com/docs/taxjar.html)\n.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the subscription for which this charge needs to be created. Applicable for consolidated invoice.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "line_item" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for line_item\n",
                    "properties" : {
                      "date_from" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "The time when the service period for the charge starts.\n",
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "The time when the service period for the charge ends.\n",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "amount", "description" ],
                "example" : null
              },
              "encoding" : {
                "line_item" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/send_einvoice" : {
      "post" : {
        "summary" : "Send an einvoice for invoices",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This endpoint is used to send an e-invoice for invoice.\nTo support cases like TDS and invoice edits, we need to stop auto e-invoice sending and be able to send e-invoices manually.\nThis endpoint schedules e-invoices manually. This operation is not allowed when any of the following condition matches:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If e-invoicing is not enabled at the site and customer level.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If there is an e-invoice generated already for the invoice.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If the <strong class=\"font-semibold\">Use automatic e-invoicing</strong>  option is selected.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If there are no generated e-invoices with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">skipped</code> status.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If the invoice status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>.</p>\n</li>\n</ul></div>",
        "operationId" : "send_an_einvoice_for_invoices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : { },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/payment_schedules" : {
      "get" : {
        "summary" : "Retrieve payment schedules for an invoice",
        "description" : "This endpoint retrieves payment schedules created for an invoice.\n",
        "operationId" : "retrieve_payment_schedules_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_schedules" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_schedule</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/PaymentSchedule",
                        "description" : "Resource object representing payment_schedule"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "payment_schedules" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/write_off" : {
      "post" : {
        "summary" : "Write off an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Write off the specified invoice.</p><p class=\"mb-2\">Use this operation to mark invoices as settled when they remain unpaid after multiple attempts to collect payment.</p><h4>Reverse a write-off</h4><p class=\"mb-2\">You can reverse the write-off by <a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">removing the linked credit note</a>.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There must be no in-progress payments for the invoice.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee sets the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>.</li>\n<li class=\"text-base leading-relaxed\">Chargebee sets the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">write_off_amount</code> to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit Note</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee creates a credit note with the following attributes:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_reason_code</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Write Off</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>.</li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Payment Schedules</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the invoice has an associated <a href=\"/docs/api/payment_schedules\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule</code></a> <a href=\"/docs/api/invoices/apply-payment-schedule-scheme-to-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">created</a> against it, Chargebee marks the schedule as paid. Chargebee sets <a href=\"/docs/api/payment_schedules/payment_schedule-object#schedule_entries\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_entries[].status</code></a> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">RevRec</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">To understand how write-offs sync to RevRec, see the <a href=\"https://www.chargebee.com/docs/revrec/revenue-recognition/recognizing-chargebee-credit-notes#use-case-cancel-write-off\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">write-off sync documentation</a>.</li>\n<li class=\"text-base leading-relaxed\">To understand how write-offs affect bad debt expenses in RevRec, see the <a href=\"https://www.chargebee.com/docs/revrec/revenue-recognition/bad-debt-expense\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">bad debt expense documentation</a>.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Accounting Integrations</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Write-offs sync to accounting platforms based on configured sync rules. For more details, see the following documentation:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/intacct-config#account-mapping-for-invoice-line-items\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Intacct</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/netsuite-config\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">NetSuite</a></li>\n</ul>\n</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.linked_payments[i].txn_status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>. If it is, then wait for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code> to be finalized.</li>\n</ul></div>",
        "operationId" : "write_off_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason for deleting this transaction. This comment will be added to the associated entity.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note", "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/add_charge_item" : {
      "post" : {
        "summary" : "Add a charge-item to a pending invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This endpoint is used when <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html\" target=\"_blank\">metered billing</a> is enabled and it adds a <a href=\"/docs/api/item_prices\">charge-item price</a> to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> invoice. To collect the accumulated charges by closing the invoice, call <a href=\"/docs/api/invoices/close-a-pending-invoice\">Close a pending invoice</a>.</p></div>",
        "operationId" : "add_a_charge-item_to_a_pending_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the subscription for which this addon needs to be created. Applicable for consolidated invoice.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "item_price" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_price\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique ID for your system to identify the item price.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Item price quantity\n",
                        "minimum" : 1,
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "maxLength" : 39,
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "The time when the service period for the item starts.\n",
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "The time when the service period for the item ends.\n",
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/invoices/add-a-charge-item-to-a-pending-invoice\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "item_price" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/pause_dunning" : {
      "post" : {
        "summary" : "Pause dunning for invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Pause <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">dunning</a> for the specified invoice until <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expected_payment_date</code>. Chargebee cancels all configured payment collection <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">retry attempts</a> and dunning <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html#dunning-email-notifications\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">email notifications</a> for the invoice until <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expected_payment_date</code>.</p><h4>Prerequisites</h4><p class=\"mb-2\">This operation is only permitted for an invoice that meets <em class=\"italic\">all</em> the following conditions:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/invoices/invoice-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\">status</a> of the invoice is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice belongs to a <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> or <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> with <a href=\"/docs/api/v2/pcv-1/subscriptions/subscription-object#auto_collection\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code></a> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice does not have dunning paused currently.</li>\n</ul><h4><span id=\"dunning_resume_process\">Automatic dunning resumption</span></h4><p class=\"mb-2\">Unless you <a href=\"/docs/api/invoices/resume-dunning-for-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">resume dunning</a> for the invoice, Chargebee attempts to collect payment on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expected_payment_date</code>. If payment collection fails, the next action is taken as follows:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expected_payment_date</code> is within the dunning period for the invoice, Chargebee resumes any dunning retries and email notifications that remain after the pause period, and not attempt the retries or notifications that were canceled during the pause period.</li>\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expected_payment_date</code> is after the dunning period for the invoice, the <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">final action</a> configured in Billing is initiated for the invoice and, if applicable, for the subscription.</li>\n</ul></div>",
        "operationId" : "pause_dunning_for_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "expected_payment_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date and time at which dunning should resume.\n**See also** : [Dunning resumption process](/docs/api/invoices/resume-dunning-for-invoice).\n",
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments) to add to the invoice for this operation. This comment is displayed on the Chargebee Billing UI.\n**Note** : This comment does not appear on any customer-facing [hosted pages](/docs/api/hosted_pages) or documents, such as the [invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf).\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "required" : [ "expected_payment_date" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices" : {
      "get" : {
        "summary" : "List invoices",
        "description" : "Lists all the Invoices.\n",
        "operationId" : "list_invoices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '**deleted**\n' attribute will be '**true**\n'.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe invoice number. Acts as a identifier for invoice and typically generated sequentially.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"INVOICE_654\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "INVOICE_654",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nTo filter based on subscription_id.\nNOTE: Not to be used if *consolidated invoicing*\nis enabled.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*subscription_id\\[is\\] = \"3bdjnDnsdQn\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "3bdjnDnsdQn",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe identifier of the customer this invoice belongs to.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*customer_id\\[is\\] = \"3bdjnDnsdQn\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "3bdjnDnsdQn",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "recurring",
          "in" : "query",
          "description" : "optional, boolean filter\n\nBoolean indicating whether this invoice belongs to a subscription. Possible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*recurring\\[is\\] = \"true\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nCurrent status of this invoice. Possible values are : paid, posted, payment_due, not_paid, voided, pending.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"paid\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "paid",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "price_type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe price type of the invoice. Possible values are : tax_exclusive, tax_inclusive.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*price_type\\[is\\] = \"tax_exclusive\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "tax_exclusive",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "date",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe document date displayed on the invoice PDF.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*date\\[on\\] = \"1394532759\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1394532759",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "paid_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating the date \\& time this invoice got paid.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*paid_at\\[before\\] = \"1394532759\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1394532759",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "total",
          "in" : "query",
          "description" : "optional, in cents filter\n\nInvoiced amount displayed in cents; that is, a decimal point is not present between the whole number and the decimal part. For example, $499.99 is displayed as 49999, and so on.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*total\\[gt\\] = \"1000\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1000",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount_paid",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, in cents filter</p></dfn>\n<p class=\"mb-2\">Payments collected successfully for the invoice. This is the sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_payments\">linked_payments[]</a>.txn_amount</code>\nfor all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[]</code>\nthat have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, lt, lte, gt, gte, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">amount_paid[lt] = &quot;800&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "800",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount_adjusted",
          "in" : "query",
          "description" : "optional, in cents filter\n\nTotal adjustments made against this invoice.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*amount_adjusted\\[gte\\] = \"100\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "100",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "credits_applied",
          "in" : "query",
          "description" : "optional, in cents filter\n\nTotal credits applied against this invoice.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*credits_applied\\[lte\\] = \"100\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "100",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount_due",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, in cents filter</p></dfn>\n<p class=\"mb-2\">The unpaid amount that is due on the invoice. This is calculated as: <code><a href=\"/docs/api/invoices/invoice-object#total\">total</a></code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<code><a href=\"/docs/api/invoices/invoice-object#amount_paid\">amount_paid</a></code>\n</li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#applied_credits\">applied_credits</a>.applied_amount</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a>.cn_total</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">linked_taxes_withheld</a>.amount</code>.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, lt, lte, gt, gte, between</li>\n</ul>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">amount_due[lt] = &quot;200&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "200",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "dunning_status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nCurrent dunning status of the invoice. Possible values are : in_progress, exhausted, stopped, success.\n\n**Supported operators :**\nis, is_not, in, not_in, is_present\n\n**Example →**\n*dunning_status\\[is\\] = \"in_progress\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "in_progress",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "payment_owner",
          "in" : "query",
          "description" : "optional, string filter\n\nPayment owner of an invoice.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*payment_owner\\[is\\] = \"payment_customer\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "payment_customer",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[after] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "channel",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe subscription channel this object originated from and is maintained in. Possible values are : web, app_store, play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*channel\\[is\\] = \"APP STORE\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "APP STORE",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "voided_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating the date \\& time this invoice got voided.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*voided_at\\[on\\] = \"1394532759\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1394532759",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "void_reason_code",
          "in" : "query",
          "description" : "optional, string filter\n\nReason code for voiding the invoice. Select from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Invoices \\> Void invoice** .\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*void_reason_code\\[is_not\\] = \"Other\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Other",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ndate, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"date\"*\n\nThis will sort the result based on the 'date' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "exclude",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "line_items",
            "properties" : {
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "einvoice",
          "in" : "query",
          "description" : "Parameters for einvoice\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "status" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The status of processing the e-invoice. To obtain detailed information about the current <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n, see <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">message</code>\n.</p>",
                "example" : "failed",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "example" : null
                  },
                  "in" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "pattern" : "^\\[(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid)(,(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid))*\\]$",
                    "example" : null
                  },
                  "not_in" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "pattern" : "^\\[(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid)(,(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid))*\\]$",
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "invoice" : {
                            "$ref" : "#/components/schemas/Invoice",
                            "description" : "Resource object representing invoice"
                          }
                        },
                        "required" : [ "invoice" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/close" : {
      "post" : {
        "summary" : "Close a pending invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Invoices for a subscription are created with a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when the subscription has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code> attribute set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>. This API call finalizes a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> invoice. Any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable_credits</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code> for the customer are applied to the invoice, and any payment due is collected automatically if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code> for the customer.</p><h4>Automation</h4><p class=\"mb-2\">This operation can be automated by using a <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\">site setting</a>. Moreover, the automation can be overridden at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer</a> and <a href=\"/docs/api/subscriptions/subscription-object#auto_close_invoices\">subscription</a> level.</p></div>",
        "operationId" : "close_a_pending_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "invoice_note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A note for this particular invoice. This, and [all other notes](/docs/api/invoices/invoice-object#notes)\nfor the invoice are displayed on the PDF invoice sent to the customer.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "remove_general_note" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nto remove the <a href=\"https://www.chargebee.com/docs/invoice_notes.html#adding-general-notes\" target=\"_blank\"><strong class=\"font-semibold\">general note</strong></a>\nfrom this invoice.</p>",
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Set the [invoice date](/docs/api/invoices/invoice-object#date).\nMust lie between the date when the invoice was generated and current date. Can only be passed when the site setting to allow overriding is enabled. If not passed, then the default value [set at the site level](https://www.chargebee.com/docs/metered_billing.html#overview)\nis used.\n",
                    "example" : null
                  },
                  "notes_to_remove" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for notes_to_remove\n",
                    "properties" : {
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Type of entity to which the <a href=\"/docs/api/invoices/invoice-object#notes\">note</a>\nbelongs. To remove the general note, use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove_general_note</code>\nparameter.</p>\n* customer - <p class=\"mb-2\">Entity that represents a customer.</p>\n* plan - <p class=\"mb-2\">Entity that represents a plan.</p>\n* charge_item_price - <p class=\"mb-2\">Indicates that this line item is based on charge Item Price</p>\n* coupon - <p class=\"mb-2\">Entity that represents a coupon.</p>\n* addon - <p class=\"mb-2\">Entity that represents an addon.</p>\n* addon_item_price - <p class=\"mb-2\">Indicates that this line item is based on addon Item Price</p>\n* subscription - <p class=\"mb-2\">Entity that represents a subscription of customer.</p>\n* plan_item_price - <p class=\"mb-2\">Indicates that this line item is based on plan Item Price</p>",
                          "enum" : [ "customer", "subscription", "coupon", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "Unique identifier of the [note](/docs/api/invoices/invoice-object#notes)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "notes_to_remove" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/apply_credits" : {
      "post" : {
        "summary" : "Apply credits for an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Applies a customer&#x27;s <a href=\"/docs/api/customers/customer-object#refundable_credits\" class=\"text-blue-600 hover:text-blue-800 underline\">refundable credits</a> to a specified invoice.</p><p class=\"mb-2\">You can either specify the credit notes to be applied, or let Chargebee apply the available credit notes automatically.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The customer must have refundable credits available.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> decreases by the amount of credits applied.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> if the applied credits fully cover the amount due.</li>\n<li class=\"text-base leading-relaxed\">remains unchanged if the applied credits only partially cover the amount due.</li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit Notes</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> if the entire <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.amount_available</code> is applied to the invoice.</li>\n<li class=\"text-base leading-relaxed\">remains <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code> if only part of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.amount_available</code> is applied.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, make sure the following conditions are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.refundable_credits</code> is non-zero.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.customer_id</code> matches the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.customer_id</code>.</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/invoices?prod_cat_ver=2#apply_payments_for_an_invoice\"><p class=\"mb-2\">Apply payments for an invoice</p></a><a href=\"/docs/api/invoices?prod_cat_ver=2#collect_payment_for_an_invoice\"><p class=\"mb-2\">Collect payment for an invoice</p></a><a href=\"/docs/api/invoices?prod_cat_ver=2#record_an_invoice_payment\"><p class=\"mb-2\">Record an invoice payment</p></a></div>",
        "operationId" : "apply_credits_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "credit_notes" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_notes\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The ID of the credit note to be applied to the invoice.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.type</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.customer_id</code> must always be the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.customer_id</code> even if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.payment_owner</code> is different.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong></p><p class=\"mb-2\">When the parameter is not passed, <a href=\"/docs/api/customers/customer-object#refundable_credits\" class=\"text-blue-600 hover:text-blue-800 underline\">available refundable credits</a> with the customer are applied to the invoice.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "credit_notes" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}" : {
      "get" : {
        "summary" : "Retrieve an invoice",
        "description" : "Retrieve the invoice for the specified invoice id.\n",
        "operationId" : "retrieve_an_invoice",
        "parameters" : [ {
          "name" : "line_items_limit",
          "in" : "query",
          "description" : "Specify the maximum number of line items to include in the response.  \n**Note:**\n\n* Applicable only when Enterprise-scale Invoicing is enabled.\n* Enterprise-scale Invoicing is currently in **Private Beta** . Please reach out to [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support) to enable this feature.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 100,
            "deprecated" : false,
            "maximum" : 300,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "line_items_offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Specify the starting point for retrieving line items. Use the value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items_next_offset</code> attribute of the previous retrieve API response.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only when Enterprise-scale Invoicing is enabled.</li>\n<li class=\"text-base leading-relaxed\">Enterprise-scale Invoicing is currently in <strong class=\"font-semibold\">Private Beta</strong>. Please reach out to <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this feature.</li>\n</ul></div>",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/create_for_charge_items_and_charges" : {
      "post" : {
        "summary" : "Create invoice for items and one-time charges",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates an invoice for <a href=\"/docs/api/items\">charge-items</a> and <a href=\"https://www.chargebee.com/docs/2.0/charges.html\" target=\"_blank\">one-time charges</a>. The item prices must belong to items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>.</p><div class=\"alert alert-info\"><p class=\"mb-2\">One-time charges are represented in an invoice as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adhoc</code>.</p></div></div>",
        "operationId" : "create_invoice_for_items_and_one-time_charges",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Unique ID of the customer this invoice should be created for. Either this or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> must be provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The invoice is <a href=\"/docs/api/getting-started\">linked</a> to the same <a href=\"/docs/api/getting-started\">business entity</a> as this customer.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Unique ID of the subscription this invoice should be created for. Either this or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> must be provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The invoice is <a href=\"/docs/api/getting-started\">linked</a> to the same <a href=\"/docs/api/getting-started\">business entity</a> as this subscription.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the invoice amount.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "invoice_note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A note for this particular invoice. This, and [all other notes](/docs/api/invoices/invoice-object#notes)\nfor the invoice are displayed on the PDF invoice sent to the customer.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "remove_general_note" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nto remove the <a href=\"https://www.chargebee.com/docs/invoice_notes.html#adding-general-notes\" target=\"_blank\"><strong class=\"font-semibold\">general note</strong></a>\nfrom this invoice.</p>",
                    "example" : null
                  },
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase Order Number for this invoice.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of Coupons to be added.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "authorization_transaction_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Authorization transaction to be captured.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Payment source to be used for this payment.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "If specified, the customer level auto collection will be overridden.\n\\* on -\n\nWhenever an invoice is created, an automatic attempt will be made to charge.\n\\* off -\n\nWhenever an invoice is created as payment due.\n",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. By default, it is the date of creation of the invoice or, when Metered Billing is enabled, it can be the date of closing the invoice. Provide this value to backdate the invoice (set the invoice date to a value in the past). Backdating an invoice is done for reasons such as booking revenue for a previous date or when the non-recurring charge is effective as of a past date.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the tax configuration as of this date. The date should not be more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</p>",
                    "example" : null
                  },
                  "token_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Token generated by Chargebee JS representing payment method details.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether the primary payment source should be replaced with this payment source.\nIn case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.\n",
                    "example" : null
                  },
                  "retain_payment_source" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Indicates whether the payment source should be retained for the customer.\n",
                    "example" : null
                  },
                  "payment_initiator" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of initiator to be used for the payment request triggered by this operation.\n\\* customer -\n\nPass this value to indicate that the request is initiated by the customer\n\\* merchant -\n\nPass this value to indicate that the request is initiated by the merchant\n",
                    "enum" : [ "customer", "merchant" ],
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "statement_descriptor" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for statement_descriptor\n",
                    "properties" : {
                      "descriptor" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Payment descriptor text\n",
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's first name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Cardholder's last name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The credit card number without any format. If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted card number here.\n",
                        "maxLength" : 1500,
                        "example" : null
                      },
                      "expiry_month" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry month.\n",
                        "maximum" : 12,
                        "minimum" : 1,
                        "example" : null
                      },
                      "expiry_year" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Card expiry year.\n",
                        "example" : null
                      },
                      "cvv" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The card verification value (CVV). If you are using [Braintree.js](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2#getting-braintree.js)\n, you can specify the Braintree encrypted CVV here.\n",
                        "maxLength" : 520,
                        "example" : null
                      },
                      "preferred_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The customer's preferred card scheme for co-branded cards.  \n**Note**:\nCurrently, this parameter is only supported for Stripe.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card scheme.\n\\* mastercard -\n\nA MasterCard scheme.\n\\* visa -\n\nA Visa card scheme.\n\\* mada -\n\nA Mada card scheme.\n",
                        "enum" : [ "cartes_bancaires", "mastercard", "visa" ],
                        "example" : null
                      },
                      "billing_addr1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_addr2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2, as available in card billing address.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "billing_city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "City, as available in card billing address.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "billing_zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Postal or Zip code, as available in card billing address.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "billing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "bank_account" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for bank_account\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "iban" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's International Bank Account Number. For the [GoCardless](https://www.chargebee.com/docs/gocardless.html)\nplatform, this can be the [local bank details](https://developer.gocardless.com/api-reference/#appendix-local-bank-details)\n",
                        "maxLength" : 50,
                        "minLength" : 10,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's first name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's last name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's company name as per bank account. If not passed, details from customer details will be considered.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Account holder's email address. If not passed, details from customer details will be considered. All Direct Debit compliant emails will be sent to this email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the account holder that is linked to the bank account.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "bank_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Name of account holder's bank.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "account_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Account holder's bank account number.\n",
                        "maxLength" : 17,
                        "minLength" : 4,
                        "example" : null
                      },
                      "routing_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Bank account routing number.\n",
                        "maxLength" : 9,
                        "minLength" : 3,
                        "example" : null
                      },
                      "bank_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates the bank code.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "account_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Represents the account type used to create a payment source. Available for [Authorize.net](https://www.authorize.net/)\nACH and Razorpay NetBanking users only. If not passed, account type is taken as null.\n\\* checking -\n\nChecking Account\n\\* business_checking -\n\nBusiness Checking Account\n\\* savings -\n\nSavings Account\n\\* current -\n\nCurrent Account\n",
                        "enum" : [ "checking", "savings", "business_checking", "current" ],
                        "example" : null
                      },
                      "account_holder_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For Stripe ACH users only. Indicates the account holder type.\n\\* individual -\n\nIndividual Account.\n\\* company -\n\nCompany Account.\n",
                        "enum" : [ "individual", "company" ],
                        "example" : null
                      },
                      "echeck_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For Authorize.net ACH users only. Indicates the type of eCheck.\n\\* ppd -\n\nPayment Authorization is prearranged between the customer and the merchant.\n\\* ccd -\n\nPayment Authorization agreement from the corporate customer is required. Applicable for business_checking account_type.\n\\* web -\n\nPayment Authorization obtained from the customer via the internet.\n",
                        "enum" : [ "web", "ppd", "ccd" ],
                        "example" : null
                      },
                      "issuing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "[two-letter(alpha2)](https://www.iso.org/iso-3166-country-codes.html)\nISO country code. Required when local bank details are provided, and not IBAN.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "swedish_identity_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "For GoCardless Autogiro users only. The civic/company number (personnummer, samordningsnummer, or organisationsnummer) of the customer. Must be supplied if the customer's bank account is denominated in Swedish krona (SEK). This field cannot be changed once it has been set.\n",
                        "maxLength" : 12,
                        "minLength" : 10,
                        "example" : null
                      },
                      "billing_address" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address associated with the bank account. The value is a JSON object with the following keys and their values:-   <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_name</code>:(string, max chars=150) The first name of the contact.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">last_name</code>:(string, max chars=150) The last name of the contact.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">company_name</code>:(string, max chars=250) The company name for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line1</code>:(string, max chars=180) The first line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line2</code>:(string, max chars=180) The second line of the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>:(string) The name of the country for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_code</code>:(string, max chars=50) The two-letter, <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO 3166 alpha-2</a> country code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code>:(string, max chars=50) The name of the state or province for the address. When not provided, this is set automatically for US, Canada, and India.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>:(string, max chars=50) The <a href=\"https://www.iso.org/obp/ui/#search/code/\">ISO 3166-2 state/province code</a> without the country prefix. This is supported for USA, Canada, and India. For instance, for Arizona (USA), set state_code as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code> (not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC)</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">city</code>:(string, max chars=50) The city name for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">postal_code</code>:(string, max chars=20) The postal or ZIP code for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">phone</code>:(string, max chars=50) The contact phone number for the address.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>:(string, max chars=70) The contact email address for the address.</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_method" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_method\n",
                    "properties" : {
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of payment method. For more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* go_pay -\n\nPayments made via GoPay\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* pix -\n\nPayments made via Pix\n\\* pay_by_bank -\n\nPay By Bank\n\\* sofort -\n\nPayments made via Sofort.\n\\* twint -\n\nPayments made via Twint\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* giropay -\n\nPayments made via giropay.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* upi -\n\nUPI Payments.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* payme -\n\nPayments made via PayMe\n\\* pay_to -\n\nPayments made via PayTo\n\\* pay_co -\n\nPayments made via PayCo\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* swish -\n\nPayments made via Swish\n\\* venmo -\n\nPayments made via Venmo\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* trustly -\n\nTrustly\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reference id. In the case of Amazon and PayPal this will be the *billing agreement id* .\nFor GoCardless direct debit this will be 'mandate id'. In the case of card this will be the identifier provided by the gateway/card vault for the specific payment method resource. **Note:**\nThis is not the one-time temporary token provided by gateways like Stripe.\n\nFor more details refer [Update payment method for a customer](/docs/api/customers/update-payment-method-for-a-customer)\nAPI under Customer resource.\n",
                        "maxLength" : 200,
                        "example" : null
                      },
                      "tmp_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Single-use tokens created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet, card details or direct debit. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.Net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "issuing_country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n) is available as an option.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n\\* card -\n\ncard\n\\* twint -\n\nPayments made via Twint\n\\* dotpay -\n\ndotpay\n\\* faster_payments - \\* upi -\n\nupi\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* payme -\n\nPayments made via PayMe\n\\* google_pay -\n\ngoogle_pay\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* ideal -\n\nideal\n\\* boleto -\n\nboleto\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* direct_debit -\n\ndirect_debit\n\\* sepa_instant_transfer - \\* bancontact -\n\nbancontact\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* swish -\n\nPayments made via Swish\n\\* go_pay -\n\nPayments made via GoPay\n\\* trustly -\n\nTrustly\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* venmo - \\* alipay -\n\nPayments made via Alipay.\n\\* pay_to - \\* pay_co -\n\nPayments made via PayCo\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* pay_by_bank -\n\nPay By Bank\n\\* apple_pay -\n\napple_pay\n\\* giropay -\n\ngiropay\n\\* sofort -\n\nsofort\n\\* amazon_payments -\n\namazon_payments\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_prices\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "A unique ID for your system to identify the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Item price quantity\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/getting-started\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price to which this tier belongs.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "charges" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for charges\n",
                    "properties" : {
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the amount for the [one-time charge](https://www.chargebee.com/docs/charges.html#one-time-charges ).\nProvide the value in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this charge\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxable" : {
                        "type" : "array",
                        "description" : "The amount to be charged is taxable or not.\n",
                        "items" : {
                          "type" : "boolean",
                          "default" : true,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax_profile_id" : {
                        "type" : "array",
                        "description" : "Tax profile of the charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_tax_code" : {
                        "type" : "array",
                        "description" : "The Avalara tax codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "hsn_code" : {
                        "type" : "array",
                        "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxjar_product_code" : {
                        "type" : "array",
                        "description" : "The TaxJar product codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [TaxJar integration](https://www.chargebee.com/docs/taxjar.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* retail -\n\nTransaction is a sale to an end user\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n",
                          "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "notes_to_remove" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for notes_to_remove\n",
                    "properties" : {
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Type of entity to which the <a href=\"/docs/api/invoices/invoice-object#notes\">note</a>\nbelongs. To remove the general note, use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove_general_note</code>\nparameter.</p>\n* charge_item_price - <p class=\"mb-2\">Indicates that this line item is based on charge Item Price</p>\n* plan_item_price - <p class=\"mb-2\">Indicates that this line item is based on plan Item Price</p>\n* coupon - <p class=\"mb-2\">Entity that represents a coupon.</p>\n* addon - <p class=\"mb-2\">Entity that represents an addon.</p>\n* addon_item_price - <p class=\"mb-2\">Indicates that this line item is based on addon Item Price</p>\n* plan - <p class=\"mb-2\">Entity that represents a plan.</p>\n* customer - <p class=\"mb-2\">Entity that represents a customer.</p>\n* subscription - <p class=\"mb-2\">Entity that represents a subscription of customer.</p>",
                          "enum" : [ "customer", "subscription", "coupon", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "Unique identifier of the [note](/docs/api/invoices/invoice-object#notes)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider currently supported.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with us.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the corresponding tax field.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "apply_on" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "bank_account" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "charges" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "notes_to_remove" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_method" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "statement_descriptor" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/update_details" : {
      "post" : {
        "summary" : "Update invoice details",
        "description" : "This API allows you to update the invoice Billing/Shipping address, VAT, custom fields, and PO number. During this operation if Billing Info (Billing Address, vat_number), Shipping info and PO number are not already present in the system the data will be added. If data is already present, the existing values will be replaced. If info is present in the system, but not passed as part of the request, the info will not be removed from the system.  \n**Note:**\nIncase, tax is already applied will now vary due to address change, you cannot update the address. You cannot update the VAT Number if the billing address is not present in the API request.This will update the invoice only, it won't change the corresponding customer/subscription details.\n",
        "operationId" : "update_invoice_details",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "vat_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "VAT/ Tax registration number of the customer. [Learn more](https://www.chargebee.com/docs/tax.html#capture-tax-registration-number)\n.\n",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "vat_number_prefix" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                    "maxLength" : 10,
                    "example" : null
                  },
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase Order Number for this invoice.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* invalid -\n\nAddress is invalid.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "statement_descriptor" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "descriptor" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "statement_descriptor" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/record_payment" : {
      "post" : {
        "summary" : "Record an invoice payment",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Records an <a href=\"https://www.chargebee.com/docs/billing/2.0/payments/offline_payments.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">offline payment</a> for an <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">invoice</a>.</p><p class=\"mb-2\">Use this API to record payments that you receive outside Chargebee, such as bank transfers or checks, so that you can reconcile them against invoices.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice <a href=\"/docs/api/invoices/invoice-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice decreases by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[amount]</code> when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[status]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice becomes zero because of this payment. Otherwise, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> remains unchanged.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Customer</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the recorded payment exceeds the invoice&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code>, the excess is added to the customer&#x27;s <a href=\"/docs/api/customers/customer-object#excess_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code></a> balance.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n</ul></div>",
        "operationId" : "record_an_invoice_payment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Remarks, if any, on the payment.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "transaction" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transaction\n",
                    "properties" : {
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment transaction amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If not specified, the <a href=\"/docs/api/invoices/invoice-object#amount_due\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code></a> on the invoice is considered as the payment amount.</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment method of this transaction</p>\n* cash - <p class=\"mb-2\">Cash</p>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* online_banking_poland - <p class=\"mb-2\">Online Banking Poland</p>\n<span featureId=\"cb-online-banking-poland\" isMicro=\"true\"></span>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* custom - <p class=\"mb-2\">Custom payment method.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/custom-payment-methods&amp;ref=feature\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Custom payment methods</a> must be enabled in Chargebee Billing.</li>\n</ul></div>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* check - <p class=\"mb-2\">Check</p>\n* upi - <p class=\"mb-2\">upi</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* card - <p class=\"mb-2\">Card</p>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* giropay - <p class=\"mb-2\">giropay</p>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>",
                        "enum" : [ "cash", "check", "bank_transfer", "other", "custom" ],
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reference number for this transaction. e.g check number in case of 'check' payments.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "custom_payment_method_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">A unique identifier for the custom payment method of this transaction.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[payment_method]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>.</li>\n</ul></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "id_at_gateway" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The id with which this transaction is referred in gateway.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "status" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The status of this transaction.</p>\n* failure - <p class=\"mb-2\">Transaction failed. Pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[error_code]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[error_text]</code> to identify the reason for failure.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice or the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code> balance is not affected when this status is set.</p>\n* success - <p class=\"mb-2\">The transaction was successful.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Impacts</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice is decreased by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[amount]</code>.</li>\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[amount]</code> is greater than the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code>, the excess amount is added to the customer&#x27;s <a href=\"/docs/api/customers/customer-object#excess_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code></a> balance.</li>\n</ul></div>\n* in_progress - <p class=\"mb-2\">Transaction is being processed by the gateway. This typically happens for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice or the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code> balance is not affected when this status is set.</p>\n* timeout - <p class=\"mb-2\">Transaction failed because of Gateway not accepting the connection.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice or the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code> balance is not affected when this status is set.</p>\n* voided - <p class=\"mb-2\">The transaction got voided or authorization expired at gateway.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice or the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code> balance is not affected when this status is set.</p>\n* late_failure - <p class=\"mb-2\">Indicates that a previously successful payment transaction has failed due to a late failure notification from the payment gateway. Common reasons include insufficient funds or a closed bank account.\nPass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[error_code]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[error_text]</code> to identify the reason for failure.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice or the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code> balance is not affected when this status is set.</p>\n* needs_attention - <p class=\"mb-2\">When connection with the Gateway gets terminated abruptly. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\nstatus Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nYou can use this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(Gateway Transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nfor a <a href=\"/docs/api/transactions/transaction-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code></a>\ntransaction to be reconciled at par with the gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransaction status</p></div>\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice or the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">excess_payments</code> balance is not affected when this status is set.</p>",
                        "enum" : [ "success", "failure", "late_failure" ],
                        "example" : null
                      },
                      "date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates when this transaction occurred.\n",
                        "example" : null
                      },
                      "error_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Error code for the transaction failure. This is typically set by the payment gateway when a transaction fails.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[status]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failure</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">late_failure</code>.</li>\n</ul></div>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "error_text" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Error message for transaction failure. This is typically set by the payment gateway when a transaction fails.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[status]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failure</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">late_failure</code>.</li>\n</ul></div>",
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "required" : [ "payment_method" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "transaction" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "invoice", "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/delete" : {
      "post" : {
        "summary" : "Delete an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes the specified invoice.</p><h4>Void the invoice</h4><p class=\"mb-2\">If the invoice was generated incorrectly, <a href=\"/docs/api/invoices/void-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">void</a> it instead of deleting it. Voiding preserves the audit trail and allows for future reference and compliance without removing the original record.</p><h4>Regenerate or import an invoice</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the invoice is for the current term of a subscription, you may regenerate it using the <a href=\"/docs/api/subscriptions/regenerate-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Regenerate an invoice API</a>.</li>\n<li class=\"text-base leading-relaxed\">If the invoice is not for the current term of a subscription, you may import it using the <a href=\"/docs/api/invoices/import-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Import an invoice API</a> or the UI <a href=\"https://www.chargebee.com/docs/2.0/bulk-operations.html#overview_available-bulk-operations\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">bulk import</a> action.</li>\n</ul></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice should not have any <a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code></a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_adjusted</code> on the invoice should be zero.</li>\n<li class=\"text-base leading-relaxed\">The invoice should not have any <a href=\"/docs/api/invoices/invoice-object#applied_credits\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applied_credits</code></a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice should not have any <a href=\"/docs/api/invoices/invoice-object#issued_credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes</code></a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice should not have any <a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The invoice must not belong to a <a href=\"/docs/api/gifts\" class=\"text-blue-600 hover:text-blue-800 underline\">gift subscription</a>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice is marked as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deleted</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> and can only be retrieved using the <a href=\"/docs/api/invoices/list-invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">List invoices API</a> by using the parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">include_deleted=true</code>.</li>\n<li class=\"text-base leading-relaxed\">If the invoice is the first invoice for a subscription or customer (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.first_invoice</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>), the next invoice generated for the subscription or customer is marked as the first invoice.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Subscription</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the invoice is for the current term of a subscription and the subscription is changed later with <a href=\"/docs/api/subscriptions/update-subscription-for-items#prorate\" class=\"text-blue-600 hover:text-blue-800 underline\">proration</a> enabled, no prorated credits are issued.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Usages</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Deleting an invoice permanently deletes all associated <a href=\"/docs/api/usages\" class=\"text-blue-600 hover:text-blue-800 underline\">usages</a>. To regenerate the data, <a href=\"/docs/api/usages/create-a-usage\" class=\"text-blue-600 hover:text-blue-800 underline\">add</a> or <a href=\"https://www.chargebee.com/docs/2.0/bulk-operations.html#overview_available-bulk-operations\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">bulk import</a> usages and then regenerate the invoice.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Usage Events</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Deleting an invoice does <strong class=\"font-semibold\">not</strong> delete the associated <a href=\"/docs/api/usage_events\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_event</code></a> resources.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Integrations</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Verify the impacts of deleting an invoice on your <a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/finance-integration-index\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">accounting</a> integrations.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/remove-payment-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove</a> any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove</a> the following credits:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applied_credits</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code></li>\n<li class=\"text-base leading-relaxed\">any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code></li>\n<li class=\"text-base leading-relaxed\">any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment_credit_notes</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cn_status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code></li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/remove-tax-withheld-for-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove</a> any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code>.</li>\n</ul></div>",
        "operationId" : "delete_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason for deleting the invoice. This comment will be added to the subscription entity if the invoice belongs to a subscription. It is added to the customer entity if the invoice is associated only with a customer.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "claim_credits" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether to put prorated credits back to the subscription or ignore while deleting the invoice.\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/import_invoice" : {
      "post" : {
        "summary" : "Import invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Imports an invoice into Chargebee Billing.</p><p class=\"mb-2\">Use this API to import invoices from your other billing or accounting system into Chargebee Billing. You can import both current-term and historical invoices.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution: Importing current-term invoices</strong>\nTo ensure accurate <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/proration#proration\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">proration</a> for any changes to the subscription in the current term, import only one current-term invoice. Chargebee considers only the first imported invoice for the current term when calculating proration. If you have multiple invoices for the current term in the source system, consolidate them into a single invoice before importing it into Chargebee.</p></div></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">RevenueStory</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">You must run the <a href=\"https://www.chargebee.com/docs/billing/2.0/reports-and-analytics/monthly-recurring-revenue#how-are-the-metrics-calculated-from-historical-data\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">MRR History Builder</a> to update Revenue Story metrics after importing invoices. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to do this.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Accounting Integrations</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Chargebee Billing <a href=\"https://www.chargebee.com/docs/billing/2.0/integrations/finance-integration-index\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">accounting integrations</a> sync imported invoices, unless you disable them from syncing.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If discounts are present on the invoice, then the following parameters must be passed:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type][]</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][]</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[line_item_id][i]</code> if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type][i]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">If taxes are present on the invoice, then the following parameters must be passed:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name][]</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[rate][]</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax*_name][]</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax*_amount][]</code></li>\n</ul>\n</li>\n</ul></div>",
        "operationId" : "import_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The invoice ID (also known as the invoice number).</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be unique so that it does not conflict with any existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.id</code>.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) for the invoice.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Identifier of the <a href=\"/docs/api/customers\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> resource to which this invoice belongs.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is not provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is provided:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For regular subscriptions: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> must match the <a href=\"/docs/api/subscriptions/subscription-object#customer_id\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription&#x27;s customer</a>.</li>\n<li class=\"text-base leading-relaxed\">For gift subscriptions: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> must match the <a href=\"/docs/api/gifts/gift-object#gifter\" class=\"text-blue-600 hover:text-blue-800 underline\">gifter&#x27;s customer</a>.</li>\n</ul>\n</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The ID of the <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> resource to which this invoice belongs.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> is not provided. OR</li>\n<li class=\"text-base leading-relaxed\">The invoice is a <a href=\"#recurring-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">recurring invoice</a> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.subscription_id[]</code> are not provided.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase Order Number for this invoice.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "price_type" : {
                    "type" : "string",
                    "default" : "tax_exclusive",
                    "deprecated" : false,
                    "description" : "The price type of the invoice.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n",
                    "enum" : [ "tax_exclusive", "tax_inclusive" ],
                    "example" : null
                  },
                  "tax_override_reason" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The reason for exempting the invoice from tax. (Applicable only for exempted invoices.).\n\\* export -\n\nThe customer is from a non-taxable region or the billing address and shipping address are unavailable.\n\\* customer_exempt -\n\nThe customer is [exempted](/docs/api/customers/customer-object#taxability)\nfrom tax.\n\\* id_exempt -\n\nThe customer is from a different country than your business and they have a valid VAT number or, the customer is a business entity. (This reason is only applicable when [EU VAT](https://www.chargebee.com/docs/eu-vat.html)\nor [UK VAT](https://www.chargebee.com/docs/uk-vat.html)\nis enabled.)\n",
                    "enum" : [ "id_exempt", "customer_exempt", "export" ],
                    "example" : null
                  },
                  "vat_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Vat Number. Required if this invoice is VAT exempted.\n",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "vat_number_prefix" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                    "maxLength" : 10,
                    "example" : null
                  },
                  "date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Date when invoice raised.\n",
                    "example" : null
                  },
                  "total" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Invoice total amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be equal to (sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[amount][]</code>) - (sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][]</code>) + (sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[amount][]</code>) + <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.</li>\n<li class=\"text-base leading-relaxed\">Cannot be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> if <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/invoice-overview#hiding-zero-value-line-items\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">hiding zero-value line items</a> is enabled.</li>\n</ul></div>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "round_off" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "[Round off amount](/docs/api/invoices/invoice-object#round_off_amount).\n",
                    "maximum" : 99,
                    "minimum" : -99,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Current status of this invoice.</p>\n* not_paid - <p class=\"mb-2\">Indicates the payment is not made and all attempts to collect is failed.</p>\n* voided - <p class=\"mb-2\">Indicates a voided invoice.</p>\n* paid - <p class=\"mb-2\">Indicates a paid invoice.</p>\n* posted - <p class=\"mb-2\">Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For a <a href=\"#recurring-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">non-recurring invoice</a> the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code> only if <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/net_d\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment terms</a> for one-time invoices is enabled. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable this feature.</li>\n</ul></div>\n* pending - <p class=\"mb-2\">The <a href=\"/docs/api/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when it has line items that belong to items that are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> or when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.create_pending_invoices</code>attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\nThe <a href=\"/docs/api/v2/pcv-1/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\">Metered Billing</a> is enabled for the site.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> only if <a href=\"https://www.chargebee.com/docs/metered_billing.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Metered Billing</a> is enabled for the site.</li>\n</ul></div>\n* payment_due - <p class=\"mb-2\">Indicates the payment is not yet collected and is being retried as per retry settings.</p>",
                    "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                    "example" : null
                  },
                  "voided_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Timestamp indicating the date \\& time this invoice got voided.\n",
                    "example" : null
                  },
                  "void_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for voiding the invoice. Select from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Invoices \\> Void invoice**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "is_written_off" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "If is_written_off is true then the invoice is written off.\n",
                    "example" : null
                  },
                  "write_off_amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "Amount written off against this invoice.\nIf this value is not present then the due amount of the invoice will be written off.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "write_off_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date on which the write_off invoice has occurred.\nThis is a mandatory field if is_written_off is true. The same date reflects on the created credit note.\n",
                    "example" : null
                  },
                  "due_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The due date of the invoice.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For a <a href=\"#recurring-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">non-recurring invoice</a>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">due_date</code> can be provided only if <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/net_d\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment terms</a> for one-time invoices is enabled. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable this feature.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be a date in the future if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be a date in the past if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For a <a href=\"#recurring-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">non-recurring invoice</a>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">net_term_days</code> can be provided only if <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/net_d\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">payment terms</a> for one-time invoices is enabled. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable this feature.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "has_advance_charges" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Boolean indicating any advance charge is present in this invoice.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Contraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Can be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> only for a <a href=\"#recurring-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">recurring invoice</a>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "use_for_proration" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "If the invoice falls within the subscription current term will be used for proration.\n",
                    "example" : null
                  },
                  "credit_note" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_note\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique identifier for the credit note.\n\nThis is a mandatory field if is_written_off is true.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "line_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for line_items\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies a line_item\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "Start date of this line item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "End date of this line item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">A unique identifier for the <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> resource to which this line item belongs.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must <strong class=\"font-semibold\">not</strong> be provided if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is provided.</li>\n<li class=\"text-base leading-relaxed\">Must be provided for <strong class=\"font-semibold\">all</strong> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[]</code> or <strong class=\"font-semibold\">none</strong>.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"/docs/api/subscriptions/subscription-object#current_term_end\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code></a> of the subscriptions provided must fall on the same calendar date according to the <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/time-zone\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site&#x27;s timezone</a>.</li>\n<li class=\"text-base leading-relaxed\">All the subscriptions must belong to the same <a href=\"/docs/api/subscriptions/subscription-object#customer_id\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> and the customer must match the invoice&#x27;s customer (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>).</li>\n<li class=\"text-base leading-relaxed\">All the subscriptions must have the same <a href=\"/docs/api/subscriptions/subscription-object#currency_code\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When multiple different <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.subscription_id[]</code> are specified, this indicates a <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/consolidated-invoicing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">consolidated invoice</a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Description for this line item. Append <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">- prorated charges</code> to the description if the line item is prorated. This will prevent it from being considered for <a href=\"/docs/api/subscriptions/subscription-object#mrr\" class=\"text-blue-600 hover:text-blue-800 underline\">MRR</a> calculations.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "Unit amount of the line item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a> which is represented by this line item. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> line items, this value is updated from <a href=\"/docs/api/usages\">usages</a> once when the invoice is generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> and finally when the invoice is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>.\n<a href=\"/docs/api/v2/pcv-1/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a> which is represented by this line item.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "Total amount of this lineitem. Not required if the line_items\\[unit_amount\\] param is passed\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the modelled entity this line item is based on.</p>\n* addon - <p class=\"mb-2\">Indicates that this line item corresponds to an item of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n* plan - <p class=\"mb-2\">Indicates that this lineitem is based on &#x27;Plan&#x27; entity. The &#x27;entity_id&#x27; attribute specifies the <a href=\"/docs/api/v2/pcv-1/plans/plan-object\" target=\"_blank\">plan</a>\nid</p>\n* plan_item_price - <p class=\"mb-2\">Indicates that this line item corresponds to an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p>\n* addon_item_price - <p class=\"mb-2\">Indicates that this line item corresponds to an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n* charge_item_price - <p class=\"mb-2\">Indicates that this line item corresponds to an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>.</p>\n* adhoc - <p class=\"mb-2\">Indicates that this lineitem is not modelled. i.e created adhoc. So the &#x27;entity_id&#x27; attribute will be null in this case</p>\n* plan_setup - <p class=\"mb-2\">Indicates that this lineitem is based on &#x27;Plan Setup&#x27; charge. The &#x27;entity_id&#x27; attribute specifies the <a href=\"/docs/api/v2/pcv-1/plans/plan-object\" target=\"_blank\">plan</a>\nid</p>",
                          "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The ID of the entity that this line item corresponds to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adhoc</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adhoc</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> must be a valid ID for an entity of the same <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> belonging to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <a href=\"/docs/api/items/item-object#item_metered\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code></a> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> are not supported.</li>\n</ul>\n</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount1_entity_id" : {
                        "type" : "array",
                        "description" : "First item level discount entity id\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount1_amount" : {
                        "type" : "array",
                        "description" : "First item level discount amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount2_entity_id" : {
                        "type" : "array",
                        "description" : "Second item level discount entity id\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount2_amount" : {
                        "type" : "array",
                        "description" : "Second item level discount amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax1_name" : {
                        "type" : "array",
                        "description" : "First tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax1_amount" : {
                        "type" : "array",
                        "description" : "First tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax2_name" : {
                        "type" : "array",
                        "description" : "Second tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax2_amount" : {
                        "type" : "array",
                        "description" : "Second tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax3_name" : {
                        "type" : "array",
                        "description" : "Third tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax3_amount" : {
                        "type" : "array",
                        "description" : "Third tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax4_name" : {
                        "type" : "array",
                        "description" : "Fourth tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax4_amount" : {
                        "type" : "array",
                        "description" : "Fourth tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax5_name" : {
                        "type" : "array",
                        "description" : "Fifth tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax5_amount" : {
                        "type" : "array",
                        "description" : "Fifth tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax6_name" : {
                        "type" : "array",
                        "description" : "Sixth tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax6_amount" : {
                        "type" : "array",
                        "description" : "Sixth tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax7_name" : {
                        "type" : "array",
                        "description" : "Seventh tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax7_amount" : {
                        "type" : "array",
                        "description" : "Seventh tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax8_name" : {
                        "type" : "array",
                        "description" : "Eighth tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax8_amount" : {
                        "type" : "array",
                        "description" : "Eighth tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax9_name" : {
                        "type" : "array",
                        "description" : "Ninth tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax9_amount" : {
                        "type" : "array",
                        "description" : "Ninth tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax10_name" : {
                        "type" : "array",
                        "description" : "Tenth tax name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax10_amount" : {
                        "type" : "array",
                        "description" : "Tenth tax amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "created_at" : {
                        "type" : "array",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "description" ],
                    "example" : null
                  },
                  "payment_reference_numbers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_reference_numbers\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis not provided then our system will automatically generate a unique id.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">This attribute helps <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nfield in the API, specifies how to reconcile offline payments, and generate <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reference_number</code>\non invoices based on country-specific rules. Setting the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nfield generates <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reference_number</code>\nfor the respective country and includes them on the invoice for correct reconciliation.</p>\n* kid - <p class=\"mb-2\">The KID number (kundeidentifikasjon) in Norway is an abbreviation for &quot;Customer identification&quot;. It is used to associate payments with the customer and invoice.</p>\n* fik - <p class=\"mb-2\">Denmark based number calculated using recursive MOD 10 algorithm.</p>\n* frn - <p class=\"mb-2\">The reference number printed on invoices in Finland is utilized by buyers for payment via bank transfer, facilitating the association of payments with invoices.</p>\n* ocr - <p class=\"mb-2\">A OCR-based payment, contains an OCR reference, which is used to identify the vendor and the purchase document in connection with a payment. Swedish reference number can contain customer ID and/or invoice number to identify customer and invoice.</p>",
                          "enum" : [ "kid", "ocr", "frn", "fik", "swiss_reference" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "number" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">If you have already generated a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reference_number</code>\nin another system, you can provide it in this field. This number will then be made available to you both in PDF format and via the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">/api/v2/invoices/payment_reference_numbers</code>\nAPI.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "number", "type" ],
                    "example" : null
                  },
                  "line_item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for line_item_tiers\n",
                    "properties" : {
                      "line_item_id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies a line_item\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lower limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The upper limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_used" : {
                        "type" : "array",
                        "description" : "The number of units purchased in a range.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_used_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "line_item_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "line_item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[id][]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                          "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "item_level_discount", "document_level_discount" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this deduction.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount deducted.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "entity_type" ],
                    "example" : null
                  },
                  "taxes" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for taxes\n",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "The name of the tax applied.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "rate" : {
                        "type" : "array",
                        "description" : "The rate of tax used to calculate tax amount.  \n**Impacts**\n\n* None. Although required, this parameter is not used by Chargebee.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "default" : 0,
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "Total tax amount charged for this invoice\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description of tax\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "juris_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "other",
                          "deprecated" : false,
                          "description" : "The type of tax jurisdiction\n\\* country -\n\nThe tax jurisdiction is a country\n\\* special -\n\nSpecial tax jurisdiction.\n\\* state -\n\nThe tax jurisdiction is a state\n\\* city -\n\nThe tax jurisdiction is a city\n\\* other -\n\nJurisdictions other than the ones listed above.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* county -\n\nThe tax jurisdiction is a county\n",
                          "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "juris_name" : {
                        "type" : "array",
                        "description" : "The name of the tax jurisdiction\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "juris_code" : {
                        "type" : "array",
                        "description" : "The tax jurisdiction code\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name", "rate" ],
                    "example" : null
                  },
                  "payments" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payments\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Payment made for this invoice.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment[]</code> array must not be sent when any of the following conditions are met:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></li>\n</ul>\n</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "payment_method" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Mode of payment</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* check - <p class=\"mb-2\">Check</p>\n* giropay - <p class=\"mb-2\">giropay</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* custom - <p class=\"mb-2\">Custom</p>\n* upi - <p class=\"mb-2\">upi</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* boleto - <p class=\"mb-2\">boleto</p>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* cash - <p class=\"mb-2\">Cash</p>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* card - <p class=\"mb-2\">Card</p>",
                          "enum" : [ "cash", "check", "bank_transfer", "other", "custom" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "date" : {
                        "type" : "array",
                        "description" : "Payment date\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "array",
                        "description" : "Reference number for this payment\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "minLength" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "payment_method" ],
                    "example" : null
                  },
                  "notes" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for notes\n",
                    "properties" : {
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Type of entity to which the note belongs.\n\\* subscription -\n\nEntity that represents a subscription of customer.\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* customer -\n\nEntity that represents a customer.\n\\* plan -\n\nEntity that represents a plan.\n\\* coupon -\n\nEntity that represents a coupon.\n\\* tax -\n\nThe note is configured as part of the [tax configuration](https://www.chargebee.com/docs/tax.html)\nin Chargebee Billing.\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* addon -\n\nEntity that represents an addon.\n",
                          "enum" : [ "coupon", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Id of the mentioned entity type.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">notes[]</code> are not supported when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "note" : {
                        "type" : "array",
                        "description" : "Actual note.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 65000,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "line_item_addresses" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "The list of addresses used for tax calculation on line items.\n",
                    "properties" : {
                      "line_item_id" : {
                        "type" : "array",
                        "description" : "Line item reference\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "array",
                        "description" : "First name of the customer\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "array",
                        "description" : "Last name of the customer\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "email" : {
                        "type" : "array",
                        "description" : "Email address of the customer\n",
                        "items" : {
                          "type" : "string",
                          "format" : "email",
                          "deprecated" : false,
                          "maxLength" : 70,
                          "example" : null
                        },
                        "example" : null
                      },
                      "company" : {
                        "type" : "array",
                        "description" : "Name of the company\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "phone" : {
                        "type" : "array",
                        "description" : "Phone number of the customer\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line1" : {
                        "type" : "array",
                        "description" : "Address line 1\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line2" : {
                        "type" : "array",
                        "description" : "Address line 2\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line3" : {
                        "type" : "array",
                        "description" : "Address line 3\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "city" : {
                        "type" : "array",
                        "description" : "Name of the city\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "state" : {
                        "type" : "array",
                        "description" : "State or Province\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "zip" : {
                        "type" : "array",
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 20,
                          "example" : null
                        },
                        "example" : null
                      },
                      "country" : {
                        "type" : "array",
                        "description" : "The billing address of the customer, specified as an [ISO 3166 alpha-2 code](https://www.iso.org/iso-3166-country-codes.html).\nEntering an invalid code will return an error.  \nIf [EU VAT](https://www.chargebee.com/docs/eu-vat.html) (2021 or later) or [Brexit configuration](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) is enabled, 'United Kingdom-Northern Ireland' is a valid option.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "not_validated",
                          "deprecated" : false,
                          "description" : "The address verification status.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n",
                          "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "date", "id", "total" ],
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "credit_note" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "line_item_addresses" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "line_item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "line_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "notes" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_reference_numbers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payments" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "taxes" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/resume_dunning" : {
      "post" : {
        "summary" : "Resume dunning for invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Immediately resumes <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">dunning</a> for the specified invoice.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the current time is within the dunning period for the invoice, Chargebee resumes any dunning <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">retries</a> and <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html#dunning-email-notifications\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">email notifications</a> that remain after the pause period, and not attempt the retries or notifications that were canceled during the pause period.</li>\n<li class=\"text-base leading-relaxed\">If the current time is after the dunning period for the invoice, the <a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">final action</a> configured in Billing is initiated for the invoice and, if applicable, for the subscription.</li>\n</ul><h4>Prerequisites</h4><p class=\"mb-2\">This operation is only permitted for an invoice with a <a href=\"/docs/api/invoices/invoice-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\">status</a> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code> and for which dunning was previously <a href=\"/docs/api/invoices/pause-dunning-for-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">paused</a>.</p></div>",
        "operationId" : "resume_dunning_for_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason for deleting this transaction. This comment will be added to the associated entity.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/record_tax_withheld" : {
      "post" : {
        "summary" : "Record tax withheld for an invoice",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-tax-withheld\"></span><p class=\"mb-2\">Records <code><a href=\"/docs/api/tax_withheld\">tax_withheld</a></code> by the customer against the invoice specified. This operation is allowed only when all of the following conditions are true:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Tax Amount Withheld is enabled.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> does not have a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code> record associated with it already.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code> is greater than zero.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.status</code> is one of the following: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n</ul></div>",
        "operationId" : "record_tax_withheld_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "tax_withheld" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_withheld\n",
                    "properties" : {
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The amount withheld by the customer as tax from the invoice. This must not exceed <code><a href=\"/docs/api/invoices/invoice-object#amount_due\">invoice.amount_due</a></code>.\nThe unit depends on the <a href=\"/docs/api/getting-started\">type of currency</a>.</p>\n<span featureId=\"cb-tax-withheld\" isMicro=\"true\"></span>",
                        "minimum" : 1,
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique external reference number for the tax withheld. Typically, this is the reference number used by the system you are integrating the API with. Depending on your integration, this could be the reference number issued by the taxation authority to identify the customer or the specific tax transaction.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Date or time associated with this tax amount withheld. The default value is the time of invoking this operation.\n",
                        "example" : null
                      },
                      "description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The description for this tax withheld.\n",
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "required" : [ "amount" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "tax_withheld" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/resend_einvoice" : {
      "post" : {
        "summary" : "Resend failed einvoice in invoices",
        "description" : "Resend failed einvoice of an invoice to the customer using this API.\n",
        "operationId" : "resend_failed_einvoice_in_invoices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : { },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/remove_tax_withheld" : {
      "post" : {
        "summary" : "Remove tax withheld for an invoice",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-tax-withheld\"></span><p class=\"mb-2\">Removes a <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">linked_taxes_withheld</a></code> record from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> specified. This operation is allowed only when all of the following conditions are true:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/invoices/invoice-object#status\">invoice.status</a></code> is one of the following: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>.</li>\n<li class=\"text-base leading-relaxed\">There are no <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code> associated with the invoice.</li>\n<li class=\"text-base leading-relaxed\">There are no <code><a href=\"/docs/api/invoices/invoice-object#issued_credit_notes\">issued_credit_notes</a></code> associated with the invoice.</li>\n</ul></div>",
        "operationId" : "remove_tax_withheld_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "tax_withheld" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_withheld\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An auto-generated unique identifier for the tax withheld. The value starts with the prefix <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_</code>.\nFor example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_16BdDXSlbu4uV1Ee6</code>\n.</p>",
                        "maxLength" : 40,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "tax_withheld" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/payment_reference_numbers" : {
      "get" : {
        "summary" : "List payment reference numbers",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API endpoint allows users to retrieve the payment reference numbers (PRNs) associated with an invoice. Only one PRN is allowed per payment type. You can use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_id</code>\nor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reference_number[number]</code>\nto retrieve the PRN.</p></div>",
        "operationId" : "list_payment_reference_numbers",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nAn unique identifier for the invoice serves that links the invoice to the corresponding payment reference number (PRN).\n**Note** :\nTo retrieve the PRN, the API requires either the invoice ID or the payment reference number to be provided by the user. If both values are missing, an error will be returned by the API.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"old_inv_001\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "old_inv_001",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "payment_reference_number",
          "in" : "query",
          "description" : "Parameters for payment_reference_number\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "number" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "This parameter is used to identify the PRN in the system and retrieve its corresponding payment information. \\*\\*Note\\*\\*: To retrieve the PRN, the API requires either the invoice ID or the payment reference number to be provided by the user. If both values are missing, an error will be returned by the API.\n",
                "example" : "001234",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "in" : {
                    "type" : "string",
                    "pattern" : "^\\[(.*)(,.*)*\\]$",
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "payment_reference_number" : {
                            "$ref" : "#/components/schemas/PaymentReferenceNumber",
                            "description" : "Resource object representing payment_reference_number"
                          }
                        },
                        "required" : [ "payment_reference_number" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/collect_payment" : {
      "post" : {
        "summary" : "Collect payment for an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Collects a specified amount of payment for an invoice, via a specified online payment method.</p><div class=\"alert alert-info\"><h4>Offline payments</h4><p class=\"mb-2\">When there is no payment method available, and if you wish to record an offline payment, use the <a href=\"/docs/api/invoices/record-an-invoice-payment\" class=\"text-blue-600 hover:text-blue-800 underline\">Record an offline payment API</a> instead.</p></div></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">channel</code> must not be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_store</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">play_store</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice&#x27;s <a href=\"/docs/api/invoices/invoice-object#amount_to_collect\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_to_collect</code></a> must be greater than 0.</li>\n<li class=\"text-base leading-relaxed\">A valid <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> must be associated with the customer.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice becomes zero because of this payment. Otherwise, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> remains unchanged.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Payment Schedules</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If a <a href=\"/docs/api/payment_schedules\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule</code></a> exists for the invoice, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> of the appropriate <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_entries[].status</code> is updated to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>.</p></div></div></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/invoices?prod_cat_ver=2#record_an_invoice_payment\"><p class=\"mb-2\">Record an offline payment</p></a></div>",
        "operationId" : "collect_payment_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Amount to be collected.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be less than or equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_to_collect</code> or the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction.amount</code> if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorization_transaction_id</code> is passed, whichever is lesser.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When not passed, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_to_collect</code> is assumed.</li>\n</ul></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "authorization_transaction_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the transaction that is used to authorize the payment. (The transaction&#x27;s <a href=\"/docs/api/transactions/transaction-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorization</code>.)</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source_id</code> is not passed.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction.fraud_flag</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">safe</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only for card payments via <a href=\"https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/stripe\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Stripe</a>.</li>\n</ul></div>",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of a valid <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> associated with the customer.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorization_transaction_id</code> is not passed.</li>\n</ul></div>",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Invoice PDF](/docs/api/invoices/retrieve-invoice-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "payment_initiator" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The initiator of this payment request. Sending this information can improve the success rate of the payment at the gateway.\n\\* merchant -\n\nThe payment was initiated by you (the merchant).\n\\* customer -\n\nThe payment was initiated by your customer.\n",
                    "enum" : [ "customer", "merchant" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "invoice", "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/sync_usages" : {
      "post" : {
        "summary" : "Sync usages",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Updates the <a href=\"/docs/api/invoices/invoice-object#line_items_quantity\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></a> for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> <a href=\"/docs/api/invoices/invoice-object#line_items\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items</code></a> of an invoice to reflect the latest <a href=\"/docs/api/usages\">usage</a> data.\n<strong class=\"font-semibold\">Note:</strong> This operation is done automatically while <a href=\"/docs/api/invoices/close-a-pending-invoice\">closing</a> the invoice.</p></div>",
        "operationId" : "sync_usages",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/refund" : {
      "post" : {
        "summary" : "Refund an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Refunds online payments or online refundable credit notes applied to an invoice.</p><p class=\"mb-2\">If multiple <a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\">transactions</a> or <a href=\"/docs/api/invoices/invoice-object#applied_credits\" class=\"text-blue-600 hover:text-blue-800 underline\">credit note allocations</a> are associated with the invoice, the refund can be processed only for one transaction or allocation at a time. The refund amount is returned to the customer through the <a href=\"/docs/api/payment_sources\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code></a> associated with the transaction.</p><p class=\"mb-2\">For recording offline refunds, including those for <a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a>, use the <a href=\"/docs/api/invoices/record-refund-for-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Record refund for an invoice</a> API.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice must have a <a href=\"/docs/api/invoices/invoice-object#refundable-amount\" class=\"text-blue-600 hover:text-blue-800 underline\">refundable amount</a> derived from online transactions.</li>\n<li class=\"text-base leading-relaxed\">There must be no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code> with a status of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in-progress</code>.</li>\n<li class=\"text-base leading-relaxed\">Partial refunds can be processed only if the associated payment gateway supports partial refund operations.</li>\n<li class=\"text-base leading-relaxed\">Ensure that all parameter-level requirements are met.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\">Invoice</strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice status does <strong class=\"font-semibold\">not</strong> change after this operation.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\">Credit note</strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A refundable <a href=\"/docs/api/credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\">credit note</a> is created for the invoice to capture the refund details.</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice must have a refundable amount derived from online transactions.\nThe refundable amount is calculated as:\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[].amount</code> for online payments + <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applied_credits[].applied_amount</code> - <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes[].cn_total</code></li>\n<li class=\"text-base leading-relaxed\">There must be no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code> with a status of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in-progress</code>.</li>\n<li class=\"text-base leading-relaxed\">All parameter-level requirements are met.</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/invoices?prod_cat_ver=2#record_refund_for_an_invoice\"><p class=\"mb-2\">Record refund for an invoice</p></a></div>",
        "operationId" : "refund_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "refund_amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The amount to be refunded.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If multiple <a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\">transactions</a> or <a href=\"/docs/api/invoices/invoice-object#applied_credits\" class=\"text-blue-600 hover:text-blue-800 underline\">credit note allocations</a> are associated with the invoice, the refund can be processed only for one transaction or allocation at a time.</li>\n<li class=\"text-base leading-relaxed\">Offline refunds, including those for <a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a>, cannot be refunded via this operation. Use the <a href=\"/docs/api/invoices/record-refund-for-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Record refund for an invoice</a> API instead.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If not specified, the total refundable amount for this invoice derived from online transactions is implied. The refundable amount is calculated as: (the total amount paid on the invoice via online payments) + (allocations on the invoice from refundable credit notes that were created from online payments) - (any amount already refunded from the invoice).</li>\n</ul></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Comment, if any, on the refund.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "customer_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The Customer Notes to be filled in the Credit Notes created to capture this refund detail.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "credit_note" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_note\n",
                    "properties" : {
                      "reason_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reason for issuing this Credit Note. The following reason codes are supported now\\[Deprecated; use the [create_reason_code](/docs/api/credit_notes/credit_note-object#create_reason_code)\nparameter instead\\]\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* fraudulent -\n\nFRAUDULENT\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* waiver -\n\nWaiver\n\\* order_cancellation -\n\nOrder Cancellation\n\\* order_change -\n\nOrder Change\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n",
                        "enum" : [ "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other" ],
                        "example" : null
                      },
                      "create_reason_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Reason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in Settings \\> Configure Chargebee \\> Reason Codes \\> Credit Notes \\> Create Credit Note. The codes are case-sensitive\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "credit_note" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    },
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "invoice", "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/record_refund" : {
      "post" : {
        "summary" : "Record refund for an invoice",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Record a full or partial offline refund for an invoice.</p><p class=\"mb-2\">Use this API to record refunds processed outside Chargebee (for example, directly through a payment gateway or via offline methods such as bank transfers or checks) so you can reconcile them in Chargebee.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Important:</strong> This API does not process actual refunds for online payments or return money to customers through the payment gateway. To process refunds for online payments and return money to customers, use the <a href=\"/docs/api/invoices/refund-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Refund an invoice</a> API instead.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><p class=\"mb-2\">The invoice must have a <a href=\"/docs/api/invoices/invoice-object#refundable-amount\" class=\"text-blue-600 hover:text-blue-800 underline\">refundable amount</a>. (See Implementation Notes for details.)</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit note</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Chargebee creates a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code> <a href=\"/docs/api/credit_notes/credit-note-object\" class=\"text-blue-600 hover:text-blue-800 underline\">credit note</a> with <a href=\"/docs/api/credit_notes/credit_note-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code>.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transactions</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Chargebee records the refunds by creating transactions of <a href=\"/docs/api/transactions/transaction-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code> and links them to the credit note. The refund transactions are recorded in the following order:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code></a> for offline transactions. This is recorded as <a href=\"/docs/api/credit_notes/credit_note-object#linked_refunds\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[]</code></a> in the credit note.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a> (if available). This is recorded as <a href=\"/docs/api/credit_notes/credit_note-object#linked_tax_withheld_refunds\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_tax_withheld_refunds[]</code></a> in the credit note.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code> for online transactions (after offline payments and taxes withheld are exhausted). This is recorded as <a href=\"/docs/api/credit_notes/credit_note-object#linked_refunds\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[]</code></a> in the credit note.</li>\n</ol><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong></p><p class=\"mb-2\">Consider an invoice with the following payments and tax withheld:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Offline payments: $30</li>\n<li class=\"text-base leading-relaxed\">Online payments: $20</li>\n<li class=\"text-base leading-relaxed\">Tax withheld: $5</li>\n</ul><p class=\"mb-2\">When you record a refund of $40, Chargebee allocates the refund as follows:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Refund against offline payments: $30</li>\n<li class=\"text-base leading-relaxed\">Refund against tax withheld: $5</li>\n<li class=\"text-base leading-relaxed\">Refund against online payments: $5</li>\n</ul></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, perform the following checks:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The invoice must have a <a href=\"/docs/api/invoices/invoice-object#refundable-amount\" class=\"text-blue-600 hover:text-blue-800 underline\">refundable amount</a>.</li>\n<li class=\"text-base leading-relaxed\">Ensure the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[date]</code> is on or after the invoice date and not in the future.</li>\n<li class=\"text-base leading-relaxed\">Include the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[amount]</code> parameter to specify the refund amount. If you omit this parameter, the system records the entire refundable amount as refunded.</li>\n<li class=\"text-base leading-relaxed\">If <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/reason-codes#managing-reason-codes-for-credit-notes\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">reason codes</a> are mandatory in Chargebee Billing, include the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note[create_reason_code]</code> parameter with a value from the configured list of codes.</li>\n</ul></div>",
        "operationId" : "record_refund_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Remarks, if any, on the refund.\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "customer_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The Customer Notes to be filled in the Credit Notes created to capture this refund detail.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "transaction" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transaction\n",
                    "properties" : {
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The amount to be refunded (for online payments) or recorded as refunded (for offline payments). If not specified, the entire refundable amount for this invoice is refunded. The refundable amount is the total amount paid (and not already refunded) for the invoice.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nAny <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">linked_taxes_withheld</a></code>\nassociated with the invoice can also be recorded as refunded via this operation.</p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment method of this transaction</p>\n* cash - <p class=\"mb-2\">Cash</p>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* custom - <p class=\"mb-2\">Custom</p>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* check - <p class=\"mb-2\">Check</p>\n* upi - <p class=\"mb-2\">upi</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* card - <p class=\"mb-2\">Card</p>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* giropay - <p class=\"mb-2\">giropay</p>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>",
                        "enum" : [ "cash", "check", "chargeback", "bank_transfer", "other", "custom" ],
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The reference number for this transaction. For example, the check number when <code><a href=\"/docs/api/transactions/transaction-object#payment_method\">payment_method</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">check</code>\n.</p>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "custom_payment_method_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the custom payment method of this transaction.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates when this transaction occurred.\n",
                        "example" : null
                      }
                    },
                    "required" : [ "date", "payment_method" ],
                    "example" : null
                  },
                  "credit_note" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_note\n",
                    "properties" : {
                      "reason_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reason for issuing this Credit Note. The following reason codes are supported now\\[Deprecated; use the [create_reason_code](/docs/api/credit_notes/credit_note-object#create_reason_code)\nparameter instead\\]\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* order_cancellation -\n\nOrder Cancellation\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* order_change -\n\nOrder Change\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* fraudulent -\n\nFRAUDULENT\n\\* waiver -\n\nWaiver\n",
                        "enum" : [ "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other" ],
                        "example" : null
                      },
                      "create_reason_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Reason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in Settings \\> Configure Chargebee \\> Reason Codes \\> Credit Notes \\> Create Credit Note. The codes are case-sensitive\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "credit_note" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "transaction" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    },
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "invoice" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/pdf" : {
      "post" : {
        "summary" : "Retrieve Invoice as PDF",
        "description" : "Gets the invoice as PDF. The returned URL is secure and allows download. The URL will expire in 60 minutes.\n\n#### Related Tutorial\n\n* [Check out customer portal tutorial on how to download invoice as PDF.](https://www.chargebee.com/tutorials/customer-portal-sample.html#downloading_invoices_as_pdf)\n",
        "operationId" : "retrieve_invoice_as_pdf",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "disposition_type" : {
                    "type" : "string",
                    "default" : "attachment",
                    "deprecated" : false,
                    "description" : "Determines the pdf should be rendered as inline or attachment in the browser.\n\\* attachment -\n\nPDF is rendered as attachment in the browser\n\\* inline -\n\nPDF is rendered as inline in the browser\n",
                    "enum" : [ "attachment", "inline" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "download" : {
                      "$ref" : "#/components/schemas/Download",
                      "description" : "<p class=\"mb-2\">Resource object representing download</p>"
                    }
                  },
                  "required" : [ "download" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/download_einvoice" : {
      "get" : {
        "summary" : "Download e-invoice",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-einvoicing\"></span><p class=\"mb-2\">Download the e-invoice in both XML and PDF formats. The response consists of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download</code> object for each format. The XML format follows the <a href=\"https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/tree/\" target=\"_blank\" rel=\"noopener noreferrer\">structure as per Peppol BIS Billing v3.0</a>.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">You can only download e-invoices when their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</li>\n<li class=\"text-base leading-relaxed\">There are some cases in which the PDF is not available for download. In such cases, you can obtain it from the XML by decoding the value for <code><a href=\"https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cac-AdditionalDocumentReference/cac-Attachment/cbc-EmbeddedDocumentBinaryObject/\" target=\"_blank\" rel=\"noopener noreferrer\">cbc:EmbeddedDocumentBinaryObject</a></code>, which is the Base64-encoded version of the PDF.</li>\n</ul></div></div>",
        "operationId" : "download_e-invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "downloads" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing download</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/Download",
                        "description" : "Resource object representing download"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "downloads" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/record_refund" : {
      "post" : {
        "summary" : "Record refund for a credit note",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Records a refund for a refundable credit note.</p><p class=\"mb-2\">This API does not process an actual refund for online payments by returning money to customers.</p><p class=\"mb-2\">Use this API to record refunds processed outside Chargebee (for example, directly through a payment gateway or via offline methods such as bank transfers or checks) so you can reconcile them in Chargebee.</p><p class=\"mb-2\">To process refunds via Chargebee for online payments and automatically return money to customers, use the <a href=\"/docs/api/credit_notes/refund-a-credit-note\" class=\"text-blue-600 hover:text-blue-800 underline\">Refund a credit note</a> API instead.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transactions</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Chargebee records the refunds by creating transactions of <a href=\"/docs/api/transactions/transaction-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code> and links them to the credit note. The refund transactions are recorded in the following order:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments</code></a> of the invoice associated with the credit note. This is recorded as <a href=\"/docs/api/credit_notes/credit_note-object#linked_refunds\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[]</code></a> in the credit note.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a> (if available). This is recorded as <a href=\"/docs/api/credit_notes/credit_note-object#linked_tax_withheld_refunds\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_tax_withheld_refunds[]</code></a> in the credit note.</li>\n</ol></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before using this API, ensure:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n<li class=\"text-base leading-relaxed\">If <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/reason-codes#managing-reason-codes-for-credit-notes\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">reason codes</a> are mandatory in Chargebee Billing, include the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_reason_code</code> parameter with a value from the configured list of codes.</li>\n</ul></div>",
        "operationId" : "record_refund_for_a_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "refund_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for the refund. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Credit Notes \\> Refund Credit Note**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Remarks, if any, on the refund.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "transaction" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transaction\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 40,
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The amount to be recorded as refunded. If not specified, the entire <a href=\"/docs/api/credit_notes/credit_note-object#amount_available\">refundable amount</a>\nfor this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note</code>\nis assumed.</p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The payment method of this transaction</p>\n* cash - <p class=\"mb-2\">Cash</p>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* custom - <p class=\"mb-2\">Custom</p>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* check - <p class=\"mb-2\">Check</p>\n* upi - <p class=\"mb-2\">upi</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* card - <p class=\"mb-2\">Card</p>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* giropay - <p class=\"mb-2\">giropay</p>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>",
                        "enum" : [ "cash", "check", "chargeback", "bank_transfer", "other", "custom" ],
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The reference number for this transaction. For example, the check number when <code><a href=\"/docs/api/transactions/transaction-object#payment_method\">payment_method</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">check</code>\n.</p>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "custom_payment_method_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the custom payment method of this transaction.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates when this transaction occurred.\n",
                        "example" : null
                      }
                    },
                    "required" : [ "date", "payment_method" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "transaction" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/import_credit_note" : {
      "post" : {
        "summary" : "Import credit note",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Imports a credit note into Chargebee Billing. This endpoint allows you to import a credit note from external systems, such as accounting software, into Chargebee.</p><p class=\"mb-2\">Use this operation during data migration or reconciliation to ensure historical credits are represented in the system. The credit note is linked to a reference <a href=\"/docs/api/invoices\" class=\"text-blue-600 hover:text-blue-800 underline\">invoice</a> and can be allocated to other invoices or recorded as refunded to the customer.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit Note</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The credit note&#x27;s <a href=\"/docs/api/credit_notes/credit-note-object#credit_note_billing_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code></a>, <a href=\"/docs/api/credit_notes/credit-note-object#credit_note_shipping_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code></a>, and <a href=\"/docs/api/credit_notes/credit-note-object#credit_note_vat_number\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code></a> are copied from the reference invoice.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><h5>Reference invoice</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">See <a href=\"/docs/api/credit_notes/credit-note-object#ref-invoice-impact\" class=\"text-blue-600 hover:text-blue-800 underline\">Impact on reference invoice</a>.</li>\n</ul><h5>Other invoices</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[]</code> are provided, then for each allocated invoice:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">the invoice&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> decreases by the allocated amount</li>\n<li class=\"text-base leading-relaxed\">the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> becomes zero</li>\n<li class=\"text-base leading-relaxed\">an <a href=\"/docs/api/applied_credits\" class=\"text-blue-600 hover:text-blue-800 underline\">applied credit</a> record is created to track the allocation.</li>\n</ul>\n</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transactions</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[]</code> are provided, then for each refund provided, a <a href=\"/docs/api/transactions/transaction-object\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code></a> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code> is created with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</p></div></div></div>",
        "operationId" : "import_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier for the credit note (credit note number).  \n**Constraints**\n\n* Must not conflict with existing credit note numbers in your Chargebee Billing site.\n* Must not conflict with future credit note numbers that your Chargebee Billing site may [generate](https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/invoice-numbering).\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique identifier of the customer for whom the credit note is created.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is not provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match the <a href=\"/docs/api/invoices/invoice-object#invoice_customer_id\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_invoice_id</code>.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique identifier of the subscription for which this credit note is created.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> is not provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match the <a href=\"/docs/api/invoices/invoice-object#invoice_subscription_id\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_invoice_id</code>.</li>\n<li class=\"text-base leading-relaxed\">Must not be provided if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[subscription_id][]</code> is provided.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "reference_invoice_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier of the invoice against which this credit note is issued. The invoice must already exist in your Chargebee Billing site.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The credit note type. Determines how the credit note can be used. <a href=\"/docs/api/credit_notes/credit-note-object#credit_note_types\">Learn more</a> about credit note types.</p>\n* refundable - <p class=\"mb-2\">Refundable credit note.</p>\n* store - <p class=\"mb-2\">Store credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">store</code> is not supported for this API operation.</li>\n</ul></div>\n* adjustment - <p class=\"mb-2\">Adjustment credit note.</p>",
                    "enum" : [ "adjustment", "refundable", "store" ],
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The currency code (<a href=\"https://www.iso.org/iso-4217-currency-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">ISO 4217</a> format) for the credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-currency pricing</a> is enabled for the site and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> is provided.</li>\n</ul></div>",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "create_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The [reason code](https://www.chargebee.com/docs/billing/2.0/site-configuration/reason-codes#managing-reason-codes-for-credit-notes) for creating the credit note.  \n**Required if**\n\n* Reason codes are mandatory in Chargebee Billing.  \n**Constraints**\n\n* Must be a valid and enabled reason code from the list configured in Chargebee Billing.\n* The reason code can also be from **Refund Credit Note** reason codes.\n* The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date when the credit note was issued.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be a date in the past.</li>\n<li class=\"text-base leading-relaxed\">Must be after the <a href=\"/docs/api/invoices/invoice-object#invoice_date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date</code></a> of the reference invoice.</li>\n</ul></div>",
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The status of the credit note. Determines the current state of the credit note and how it can be used.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code> if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>.</li>\n<li class=\"text-base leading-relaxed\">if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> if the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> is equal to the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[amount][]</code> plus the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[allocated_amount][]</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code> otherwise.</li>\n</ul>\n</li>\n</ul></div>\n* refund_due - <p class=\"mb-2\">The credits are yet to be used or have been partially used.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must only be set when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> must be greater than the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[amount][]</code> plus the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[allocated_amount][]</code>.</li>\n</ul></div>\n* refunded - <p class=\"mb-2\">The entire credit note amount has been used (either allocated to invoices or refunded).</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must only be set when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">Requires <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[]</code> and/or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[]</code> to be provided.</li>\n<li class=\"text-base leading-relaxed\">The sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[amount][]</code> plus the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[allocated_amount][]</code> must equal the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code>.</li>\n</ul></div>\n* voided - <p class=\"mb-2\">The credit note has been cancelled.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[]</code> must not be provided when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n</ul></div>\n* adjusted - <p class=\"mb-2\">The credit note has been adjusted against an invoice.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must only be set when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>.</li>\n<li class=\"text-base leading-relaxed\">Requires <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[]</code> to be provided and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[]</code> must not be provided.</li>\n</ul></div>",
                    "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                    "example" : null
                  },
                  "total" : {
                    "type" : "integer",
                    "format" : "int64",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The total amount of the credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For refundable credit notes (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>), this must be less than or equal to the reference invoice&#x27;s <a href=\"/docs/api/invoices/invoice-object#refundable-amount\" class=\"text-blue-600 hover:text-blue-800 underline\">refundable amount</a>.</li>\n<li class=\"text-base leading-relaxed\">For adjustment credit notes (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>), this must be less than or equal to the reference invoice&#x27;s <a href=\"/docs/api/invoices/invoice-object#invoice_amount_to_collect\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_to_collect</code></a>.</li>\n</ul></div>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "refunded_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The timestamp when this credit note was fully used (refunded or allocated). This field is automatically set when the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code>.</p>",
                    "example" : null
                  },
                  "voided_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The timestamp indicating when this credit note was voided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date</code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "sub_total" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "The credit note sub-total (total before round-off, fractional correction, and taxes).\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "round_off_amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The rounded-off amount for the credit note. For example, if the credit note amount is $99.99 and it is rounded off to $100.00, then $0.01 is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not supported for zero-decimal <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currencies</a>.</li>\n</ul></div>",
                    "maximum" : 99,
                    "minimum" : -99,
                    "example" : null
                  },
                  "fractional_correction" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Indicates the fractional correction amount.\n",
                    "maximum" : 50000,
                    "minimum" : -50000,
                    "example" : null
                  },
                  "vat_number_prefix" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                    "maxLength" : 10,
                    "example" : null
                  },
                  "line_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for line items. At least one line item is required.\n",
                    "properties" : {
                      "reference_line_item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the <a href=\"/docs/api/invoices/invoice-object#invoice_line_items\" class=\"text-blue-600 hover:text-blue-800 underline\">line item</a> from the reference invoice that this credit note line item reverses.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <strong class=\"font-semibold\">Validate credit note lines against invoice</strong> is enabled, the <a href=\"/docs/api/invoices/invoice-object#invoice_line_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item.id</code></a> must exist in the reference invoice. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable this feature.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "id" : {
                        "type" : "array",
                        "description" : "The unique identifier for this line item.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "Start date of this line item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "End date of this line item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the subscription this line item belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must not be provided if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is provided.</li>\n<li class=\"text-base leading-relaxed\">The subscription&#x27;s <a href=\"/docs/api/subscriptions/subscription-object#subscription_customer_id\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> must match the <a href=\"/docs/api/invoices/invoice-object#invoice_customer_id\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a> of the reference invoice.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this line item\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unit amount of the line item.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Pricing model for the line item is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <strong class=\"font-semibold\">Validate credit note lines against invoice</strong> is enabled, the amount must not exceed the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount</code> of the <a href=\"/docs/api/invoices/invoice-object#invoice_line_items\" class=\"text-blue-600 hover:text-blue-800 underline\">line item</a> in the reference invoice. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable this feature.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The quantity of the line item.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Pricing model for the line item is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <strong class=\"font-semibold\">Validate credit note lines against invoice</strong> is enabled, the quantity must not exceed the quantity of the <a href=\"/docs/api/invoices/invoice-object#invoice_line_items\" class=\"text-blue-600 hover:text-blue-800 underline\">line item</a> in the reference invoice. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable this feature.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The total amount of this line item.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Pricing model for the line item is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[unit_amount]</code> is not provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be consistent with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[unit_amount]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[quantity]</code>, when both are provided.</li>\n<li class=\"text-base leading-relaxed\">If <strong class=\"font-semibold\">Validate credit note lines against invoice</strong> is enabled, the amount must not exceed the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code> of the <a href=\"/docs/api/invoices/invoice-object#invoice_line_items\" class=\"text-blue-600 hover:text-blue-800 underline\">line item</a> in the reference invoice. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable this feature.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Specifies the modelled entity this line item is based on.\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n",
                          "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount1_entity_id" : {
                        "type" : "array",
                        "description" : "First item level discount entity id\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount1_amount" : {
                        "type" : "array",
                        "description" : "First item level discount amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount2_entity_id" : {
                        "type" : "array",
                        "description" : "Second item level discount entity id\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_level_discount2_amount" : {
                        "type" : "array",
                        "description" : "Second item level discount amount\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax1_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">First tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax1_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax1_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">First tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax1_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax2_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Second tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax2_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax2_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Second tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax2_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax3_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Third tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax3_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax3_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Third tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax3_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax4_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Fourth tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax4_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax4_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Fourth tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax4_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax5_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Fifth tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax5_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax5_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Fifth tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax5_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax6_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Sixth tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax6_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax6_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Sixth tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax6_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax7_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Seventh tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax7_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax7_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Seventh tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax7_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax8_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Eighth tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax8_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax8_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Eighth tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax8_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax9_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Ninth tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax9_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax9_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Ninth tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax9_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax10_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Tenth tax name.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax10_amount]</code> is provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax10_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Tenth tax amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax10_name]</code> is provided.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "description" ],
                    "example" : null
                  },
                  "line_item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for line item tiers. Used to specify tiered pricing details for line items with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code> pricing models.</p>",
                    "properties" : {
                      "line_item_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the line item this tier belongs to.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lower limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The upper limit of the unit range for this tier. Not applicable for the highest tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_used" : {
                        "type" : "array",
                        "description" : "The number of units purchased within this tier range.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_used_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "line_item_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts. Used to specify discounts, coupons, or promotional credits applied to the credit note at the document level or item level.\n",
                    "properties" : {
                      "line_item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the line item that this deduction is for. This must match the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[id]</code> of the line item to which the discount is applied.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The line item must have an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> specified (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[id]</code> must be provided for the line item).</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied. Determines whether the discount is applied at the document level or item level, and whether it&#x27;s a coupon, discount, or promotional credit.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/coupons\" class=\"text-blue-600 hover:text-blue-800 underline\">coupon</a> applied at the document level.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Requires <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_id]</code> to be provided to identify the coupon.</li>\n</ul></div>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/coupons\" class=\"text-blue-600 hover:text-blue-800 underline\">coupon</a> applied at the line item level.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[line_item_id]</code> is required and must match the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[id]</code> of the line item.</li>\n<li class=\"text-base leading-relaxed\">Requires <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_id]</code> to be provided to identify the coupon.</li>\n</ul></div>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\" class=\"text-blue-600 hover:text-blue-800 underline\">discount</a> applied at the line item level.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[line_item_id]</code> is required and must match the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[id]</code> of the line item.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_id]</code> must not be provided.</li>\n</ul></div>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\" class=\"text-blue-600 hover:text-blue-800 underline\">promotional credit</a> applied.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Only one promotional credit discount entry is allowed per credit note.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_id]</code> must not be provided.</li>\n</ul></div>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\" class=\"text-blue-600 hover:text-blue-800 underline\">discount</a> applied at the document level.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_id]</code> must not be provided.</li>\n</ul></div>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                          "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "item_level_discount", "document_level_discount" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the <a href=\"/docs/api/coupons\" class=\"text-blue-600 hover:text-blue-800 underline\">coupon</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must not be provided when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>.</li>\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>, the coupon must be applicable to the plan or addon associated with the line item.</li>\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>, the coupon must have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this deduction.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "entity_type" ],
                    "example" : null
                  },
                  "taxes" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for document-level taxes. Used to specify tax information at the credit note level.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[]</code> must not be provided if the reference invoice has <strong class=\"font-semibold\">all</strong> line items exempted from tax for any one of the following reasons: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_exempt</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reverse_charge</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">export</code> (i.e. if all <a href=\"/docs/api/invoices/invoice-object#invoice_line_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[].tax_exempt_reason</code></a> on the reference invoice are set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_exempt</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reverse_charge</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">export</code>).</li>\n</ul></div>",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The name of the tax applied.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match at least one <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax*_name]</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "rate" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The rate of tax.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This parameter is only used to disambiguate between multiple taxes with the same <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> and other tax metadata. It is not used to calculate or validate the tax amount.</li>\n</ul></div>",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "default" : 0,
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The total tax amount for this credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must match the sum of the line-level tax amounts (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[tax*_amount][]</code>) for the given combination of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">rate</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">juris_type</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">juris_name</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">juris_code</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description of tax\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "juris_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "other",
                          "deprecated" : false,
                          "description" : "The type of tax jurisdiction\n\\* country -\n\nThe tax jurisdiction is a country\n\\* special -\n\nSpecial tax jurisdiction.\n\\* county -\n\nThe tax jurisdiction is a county\n\\* state -\n\nThe tax jurisdiction is a state\n\\* city -\n\nThe tax jurisdiction is a city\n\\* other -\n\nJurisdictions other than the ones listed above.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* federal -\n\nThe tax jurisdiction is a federal\n",
                          "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "juris_name" : {
                        "type" : "array",
                        "description" : "The name of the tax jurisdiction\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "juris_code" : {
                        "type" : "array",
                        "description" : "The tax jurisdiction code\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name", "rate" ],
                    "example" : null
                  },
                  "allocations" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for credit allocations. Used to specify how the credit note amount is allocated to invoices.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For adjustment credit notes (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>), only one allocation is allowed.</li>\n<li class=\"text-base leading-relaxed\">Must not be provided if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n</ul></div>",
                    "properties" : {
                      "invoice_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the invoice to which this credit note amount is allocated. The invoice must already exist in Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "allocated_amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The amount allocated from this credit note to the specified invoice.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocated_amount[]</code> plus the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[amount][]</code> must not exceed the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "allocated_at" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The timestamp when the allocation occurred.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be equal to or after the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date</code>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "allocated_amount", "allocated_at", "invoice_id" ],
                    "example" : null
                  },
                  "linked_refunds" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for linked refunds. Used to record refund transactions associated with this credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> and no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[]</code> are provided.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must not be provided if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n</ul></div>",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The amount of this refund transaction.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds[amount][]</code> plus the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">allocations[allocated_amount][]</code> must not exceed the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> of the credit note.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "payment_method" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The payment method used for the refund.</p>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* giropay - <p class=\"mb-2\">giropay</p>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* upi - <p class=\"mb-2\">upi</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* cash - <p class=\"mb-2\">Cash</p>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* custom - <p class=\"mb-2\">Custom</p>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* card - <p class=\"mb-2\">Card</p>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* check - <p class=\"mb-2\">Check</p>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>",
                          "enum" : [ "cash", "check", "bank_transfer", "other", "custom" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "date" : {
                        "type" : "array",
                        "description" : "The date when the refund occurred.  \n**Constraints**\n\n* Must be a date in the past.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "reference_number" : {
                        "type" : "array",
                        "description" : "Reference number for this refund.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "minLength" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "date", "payment_method" ],
                    "example" : null
                  }
                },
                "required" : [ "create_reason_code", "date", "id", "reference_invoice_id", "type" ],
                "example" : null
              },
              "encoding" : {
                "allocations" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "line_item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "line_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "linked_refunds" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "taxes" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/delete" : {
      "post" : {
        "summary" : "Delete a credit Note",
        "description" : "This API [deletes a credit note.](https://www.chargebee.com/docs/credit-notes.html#voiding-or-deleting-a-credit-note) A credit note once deleted, is deleted permanently. You cannot delete a credit which has already been deleted or refunded. If you try to delete a refunded or deleted credit note, an error message will be displayed.\n",
        "operationId" : "delete_a_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason for deleting this transaction. This comment will be added to the associated entity.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/pdf" : {
      "post" : {
        "summary" : "Retrieve credit note as PDF",
        "description" : "Gets the credit note as PDF. The returned URL is secure and allows download. The URL will expire in 60 minutes.\n",
        "operationId" : "retrieve_credit_note_as_pdf",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "disposition_type" : {
                    "type" : "string",
                    "default" : "attachment",
                    "deprecated" : false,
                    "description" : "Determines the pdf should be rendered as inline or attachment in the browser.\n\\* attachment -\n\nPDF is rendered as attachment in the browser\n\\* inline -\n\nPDF is rendered as inline in the browser\n",
                    "enum" : [ "attachment", "inline" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "download" : {
                      "$ref" : "#/components/schemas/Download",
                      "description" : "<p class=\"mb-2\">Resource object representing download</p>"
                    }
                  },
                  "required" : [ "download" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/send_einvoice" : {
      "post" : {
        "summary" : "Send an einvoice for credit notes",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This endpoint is used to send an e-invoice for invoice.\nTo support cases like TDS and invoice edits, we need to stop auto e-invoice sending and be able to send e-invoices manually.\nThis endpoint schedules e-invoices manually. This operation is not allowed when any of the following condition matches:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If e-invoicing is not enabled at the site and customer level.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If there is an e-invoice generated already for the invoice.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If the <strong class=\"font-semibold\">Use automatic e-invoicing</strong>  option is selected.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If there are no generated e-invoices with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">skipped</code> status.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If the invoice status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>.</p>\n</li>\n</ul></div>",
        "operationId" : "send_an_einvoice_for_credit_notes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/void" : {
      "post" : {
        "summary" : "Void a credit note",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Void or invalidate the specified credit note.</p><p class=\"mb-2\">Use this operation for incorrectly generated credit notes, such as those with wrong details or created by mistake. This is a preferred method over <a href=\"/docs/api/credit_notes/delete-a-credit-note\" class=\"text-blue-600 hover:text-blue-800 underline\">deleting the credit note</a>, as it preserves the audit trail, allowing for future reference and compliance without removing the original record.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> must not be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n<li class=\"text-base leading-relaxed\">For credit notes of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>, you must remove any allocations or linked refunds before voiding it. Note that only offline refunds can be removed; online refunds cannot.</li>\n</ul><p class=\"mb-2\">See <strong class=\"font-semibold\">Implementation Notes</strong> for more details.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoices</p></strong><div class=\"impact-description\"><p class=\"mb-2\">If the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>, the associated invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>, and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> on the invoice increases by the amount that was allocated via the credit note.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before calling this API, ensure the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> must not be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n<li class=\"text-base leading-relaxed\">For credit notes of <a href=\"/docs/api/credit_notes/credit_note-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Remove any <a href=\"/docs/api/credit_notes/credit_note-object#allocations\" class=\"text-blue-600 hover:text-blue-800 underline\">allocations</a> of the credit note to invoices by calling the <a href=\"/docs/api/invoices/remove-credit-note-from-an-invoice\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove credit note from an invoice API</a>.</li>\n<li class=\"text-base leading-relaxed\">Remove any <a href=\"/docs/api/credit_notes/credit_note-object#linked_refunds\" class=\"text-blue-600 hover:text-blue-800 underline\">linked offline refunds</a> by calling the <a href=\"/docs/api/transactions/delete-an-offline-transaction\" class=\"text-blue-600 hover:text-blue-800 underline\">Delete an offline transaction API</a>.</li>\n</ul>\n</li>\n</ul></div>\n<div class=\"related-apis\"><h4>Related APIs</h4><a href=\"/docs/api/credit_notes?prod_cat_ver=2#delete_a_credit_note\"><p class=\"mb-2\">Delete a credit note</p></a></div>",
        "operationId" : "void_a_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason for deleting this transaction. This comment will be added to the associated entity.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/refund" : {
      "post" : {
        "summary" : "Refund a credit note",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Refunds a specified amount from a refundable credit note back to the customer&#x27;s payment source.</p><p class=\"mb-2\">This operation supports only refunds against online payments. The refund amount is returned to the customer through the <a href=\"/docs/api/payment_sources\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code></a> associated with the transaction. If multiple transactions are associated with the credit note, call this API once for each transaction.</p><p class=\"mb-2\">To record offline refunds, including those for <a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a>, use the <a href=\"/docs/api/credit_notes/refund-a-credit-note\" class=\"text-blue-600 hover:text-blue-800 underline\">Record refund for a credit note</a> API.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note has an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code> greater than 0.</li>\n<li class=\"text-base leading-relaxed\">Part or all of the credit note&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code> is from online payments.</li>\n<li class=\"text-base leading-relaxed\">The credit note is not <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#creating-standalone-credits\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">standalone</a>; it has an associated invoice.</li>\n<li class=\"text-base leading-relaxed\">You can process partial refunds only if the associated payment gateway supports partial refund operations.</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit note</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code> is reduced by the refunded amount.</li>\n<li class=\"text-base leading-relaxed\">The credit note&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is updated to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> if the refunded amount is equal to the credit note&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note&#x27;s <a href=\"/docs/api/credit_notes/credit_note-object#linked_refunds\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_refunds</code></a> is updated with the details of the refund transaction.</li>\n</ul></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Transaction</p></strong><div class=\"impact-description\"><p class=\"mb-2\">Chargebee creates a transaction of <a href=\"/docs/api/transactions/transaction-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code> and links it to the credit note under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.linked_refunds</code>.</p></div></div></div>\n<div class=\"impl-notes\"><h3>Implementation Notes</h3><p class=\"mb-2\">Before you call this API, make sure the following conditions are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note <a href=\"/docs/api/credit_notes/credit_note-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n<li class=\"text-base leading-relaxed\">The credit note has an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code> greater than 0.</li>\n<li class=\"text-base leading-relaxed\">The credit note has the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_invoice_id</code> set.</li>\n</ul></div>",
        "operationId" : "refund_a_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "refund_amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The amount to be refunded.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If multiple <a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\">transactions</a> are associated with the credit note, the refund can be processed only for one transaction at a time.</li>\n<li class=\"text-base leading-relaxed\">Offline refunds, including those for <a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code></a>, cannot be refunded via this operation. Use the <a href=\"/docs/api/credit_notes/refund-a-credit-note\" class=\"text-blue-600 hover:text-blue-800 underline\">Record refund for a credit note</a> API instead.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If not specified, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code> for this credit note is implied.</li>\n</ul></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "customer_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A note to be added for this operation, to the credit note. This note is displayed on customer-facing documents such as the [Credit Note PDF](/docs/api/credit_notes/retrieve-credit-note-as-pdf)\n.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "refund_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for the refund. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Credit Notes \\> Refund Credit Note**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    },
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "credit_note", "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes" : {
      "get" : {
        "summary" : "List credit notes",
        "description" : "Lists all the Credit Notes.\n",
        "operationId" : "list_credit_notes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '**deleted**\n' attribute will be '**true**\n'.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nCredit-note id.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"CN_123\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "CN_123",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe identifier of the customer this Credit Note belongs to.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*customer_id\\[is\\] = \"4gmiXbsjdm\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "4gmiXbsjdm",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nTo filter based on subscription_id.\nNOTE: Not to be used if *consolidated invoicing*\nfeature is enabled.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*subscription_id\\[is\\] = \"4gmiXbsjdm\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "4gmiXbsjdm",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "reference_invoice_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe identifier of the invoice against which this Credit Note is issued.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*reference_invoice_id\\[is\\] = \"INVOICE_876\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "INVOICE_876",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe credit note type. Possible values are : adjustment, refundable.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*type\\[is_not\\] = \"adjustment\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "adjustment",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                "enum" : [ "adjustment", "refundable", "store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                "enum" : [ "adjustment", "refundable", "store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                "enum" : [ "adjustment", "refundable", "store" ],
                "pattern" : "^\\[(adjustment|refundable|store)(,(adjustment|refundable|store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                "enum" : [ "adjustment", "refundable", "store" ],
                "pattern" : "^\\[(adjustment|refundable|store)(,(adjustment|refundable|store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "reason_code",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe reason for issuing this Credit Note. The following reason codes are supported now\\[Deprecated; use the [create_reason_code](/docs/api/credit_notes/credit_note-object#create_reason_code)\nparameter instead\\]. Possible values are : write_off, subscription_change, subscription_cancellation, subscription_pause, chargeback, product_unsatisfactory, service_unsatisfactory, order_change, order_cancellation, waiver, other, fraudulent.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*reason_code\\[is\\] = \"waiver\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "waiver",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                "pattern" : "^\\[(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent)(,(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                "pattern" : "^\\[(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent)(,(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "create_reason_code",
          "in" : "query",
          "description" : "optional, string filter\n\nReason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Credit Notes \\> Create Credit Note** .\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*create_reason_code\\[is\\] = \"Other\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Other",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe credit note status. Possible values are : adjusted, refunded, refund_due, voided.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"adjusted\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "adjusted",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                "pattern" : "^\\[(adjusted|refunded|refund_due|voided)(,(adjusted|refunded|refund_due|voided))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                "pattern" : "^\\[(adjusted|refunded|refund_due|voided)(,(adjusted|refunded|refund_due|voided))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "date",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe date the Credit Note is issued.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*date\\[on\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "total",
          "in" : "query",
          "description" : "optional, in cents filter\n\nCredit Note amount in cents.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*total\\[is\\] = \"1200\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1200",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "price_type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe price type of the Credit Note. Possible values are : tax_exclusive, tax_inclusive.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*price_type\\[is_not\\] = \"tax_exclusive\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "tax_exclusive",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount_allocated",
          "in" : "query",
          "description" : "optional, in cents filter\n\nThe amount allocated to the invoices.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*amount_allocated\\[is\\] = \"1200\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1200",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount_refunded",
          "in" : "query",
          "description" : "optional, in cents filter\n\nThe refunds issued from this Credit Note.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*amount_refunded\\[lte\\] = \"130\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "130",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount_available",
          "in" : "query",
          "description" : "optional, in cents filter\n\nThe yet to be used credits of this Credit Note.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*amount_available\\[gt\\] = \"1400\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1400",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "voided_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating the date and time this Credit Note gets voided.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*voided_at\\[before\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTo filter based on updated at. This attribute will be present only if the resource has been updated after 2016-09-28.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[on\\] = \"1243545465\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ndate\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"date\"*\n\nThis will sort the result based on the 'date' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "date" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "date" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "channel",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe subscription channel this object originated from and is maintained in. Possible values are : web, app_store, play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*channel\\[is\\] = \"APP STORE\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "APP STORE",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "einvoice",
          "in" : "query",
          "description" : "Parameters for einvoice\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "status" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The status of processing the e-invoice. To obtain detailed information about the current <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n, see <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">message</code>\n.</p>",
                "example" : "failed",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "example" : null
                  },
                  "in" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "pattern" : "^\\[(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid)(,(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid))*\\]$",
                    "example" : null
                  },
                  "not_in" : {
                    "type" : "string",
                    "description" : "* `scheduled` - Sending the e-invoice to the customer has been scheduled.\n* `skipped` - The e-invoice was not sent. This could be due to missing information or because the <code>entity_identifier</code> is not registered on the e-invoicing network.\n* `in_progress` - The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.\n* `success` - The e-invoice has been successfully delivered to the customer.\n* `failed` - The e-invoice was sent and there was an error due to which it was not delivered.\n* `registered` - The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.\n* `accepted` - The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.\n* `rejected` - The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.\n* `message_acknowledgement` - An acknowledgment confirming that the application response was successfully received by the receiving entity.\n* `in_process` - The e-invoice is currently being processed by the receiving entity.\n* `under_query` - The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.\n* `conditionally_accepted` - The e-invoice has been accepted with conditions.\n* `paid` - The receiving entity has confirmed that the e-invoice has been paid.",
                    "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                    "pattern" : "^\\[(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid)(,(scheduled|skipped|in_progress|success|failed|registered|accepted|rejected|message_acknowledgement|in_process|under_query|conditionally_accepted|paid))*\\]$",
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "credit_note" : {
                            "$ref" : "#/components/schemas/CreditNote",
                            "description" : "Resource object representing credit_note"
                          }
                        },
                        "required" : [ "credit_note" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create credit note",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a credit note for the specified invoice.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Invoice</p></strong><div class=\"impact-description\"><p class=\"mb-2\">See <a href=\"/docs/api/credit_notes/credit-note-object#ref-invoice-impact\" class=\"text-blue-600 hover:text-blue-800 underline\">Impact on reference invoice</a>.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Credit note</p></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A new credit note of the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is created.</li>\n<li class=\"text-base leading-relaxed\">If the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_allocated</code> are set to the adjusted amount.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjusted</code>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">If the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">store</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_available</code> are set to the refundable amount.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes[].amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes[].tax_amount</code> are set to the corresponding values on the invoice, prorated by the ratio of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.total</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.total</code>.</li>\n</ul></div></div></div>",
        "operationId" : "create_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "reference_invoice_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The identifier of the invoice against which this credit note is issued.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required when</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">store</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nWhen not provided and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> must be provided because this creates a <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#standalone-credits\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">standalone credit note</a>.</p></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The identifier of the customer for whom this credit note is issued.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required when</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_invoice_id</code> is not provided. This creates a <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#standalone-credits\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">standalone credit note</a>.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "total" : {
                    "type" : "integer",
                    "format" : "int64",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The total credit note amount.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Pass either the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items</code> parameter.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> must not exceed the amount due on the invoice minus the total amount of any transactions in progress for the invoice. Calculate this as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code> minus the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.linked_payments[i].amount</code> where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.linked_payments[i].txn_status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">store</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_invoice_id</code> is provided, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> must not exceed the refundable amount on the invoice. Calculate the refundable amount as the sum of:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[i].amount</code> where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[i].txn_status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code></li>\n<li class=\"text-base leading-relaxed\">Sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applied_credits[i].applied_amount</code> where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applied_credits[i].status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code></li>\n<li class=\"text-base leading-relaxed\">Sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld[].amount</code></li>\n<li class=\"text-base leading-relaxed\">Minus the sum of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes[i].cn_total</code> where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes[i].status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code></li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_invoice_id</code> is not provided, there is no limit on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code> because this creates a <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#standalone-credits\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">standalone credit note</a>.</li>\n</ul>\n</li>\n</ul></div>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/credit_notes/credit-note-object\" class=\"text-blue-600 hover:text-blue-800 underline\">type</a> of credit note to create.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">store</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n</ul></div>\n* refundable - <p class=\"mb-2\">Creates a refundable credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n</ul></div>\n* store - <p class=\"mb-2\">Creates a store credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n</ul></div>\n* adjustment - <p class=\"mb-2\">Creates an adjustment credit note.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.status</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n</ul></div>",
                    "enum" : [ "adjustment", "refundable", "store" ],
                    "example" : null
                  },
                  "reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The reason for issuing this Credit Note. The following reason codes are supported now\\[Deprecated; use the [create_reason_code](/docs/api/credit_notes/credit_note-object#create_reason_code)\nparameter instead\\].\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* waiver -\n\nWaiver\n\\* order_cancellation -\n\nOrder Cancellation\n\\* order_change -\n\nOrder Change\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* fraudulent -\n\nFRAUDULENT\n",
                    "enum" : [ "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other" ],
                    "example" : null
                  },
                  "create_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for creating the credit note.  \n**Constraints**\n\n* Must be one of the case-sensitive [reason codes](https://www.chargebee.com/docs/billing/2.0/site-configuration/reason-codes#managing-reason-codes-for-credit-notes) set in Chargebee Billing.  \n**Required when**\n\n* Reason codes are configured as mandatory on the site.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date on which the credit note is issued.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be on or after the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code> and cannot be a future date.</li>\n</ul></div>",
                    "example" : null
                  },
                  "customer_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A note to be added for this operation, to the credit note. This note is displayed on customer-facing documents such as the [Credit Note PDF](/docs/api/credit_notes/retrieve-credit-note-as-pdf)\n.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 3,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the credit note. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Credit Note PDF](/docs/api/credit_notes/retrieve-credit-note-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "line_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for line_items\n",
                    "properties" : {
                      "reference_line_item_id" : {
                        "type" : "array",
                        "description" : "Uniquely identifies a line_item\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "Unit amount of the line item. Required for FLAT_FEE, PER_UNIT and VOLUME pricing model.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Applicable for the line_item when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nCan be provided only when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Quantity of the line item. Required for PER_UNIT and VOLUME pricing model.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nApplicable for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nwhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nCan be provided only when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "Amount of the line item. Applicable only for STAIRSTEP, TIERED pricing_model.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "Start date of this line item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "End date of this line item.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for the line item.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "null\n",
                          "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "type" ],
                "example" : null
              },
              "encoding" : {
                "line_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/download_einvoice" : {
      "get" : {
        "summary" : "Download e-invoice for credit note",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-einvoicing\"></span><p class=\"mb-2\">Download the e-invoice for the credit note in both XML and PDF formats. The response consists of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download</code> object for each format. The XML format follows the <a href=\"https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-creditnote/tree/\" target=\"_blank\" rel=\"noopener noreferrer\">structure as per Peppol BIS Billing v3.0</a>.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">You can only download e-invoices when their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">registered</code>.</li>\n<li class=\"text-base leading-relaxed\">There are some cases in which the PDF is not available for download. In such cases, you can obtain it from the XML by decoding the value for <code><a href=\"https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-creditnote/cac-AdditionalDocumentReference/cac-Attachment/cbc-EmbeddedDocumentBinaryObject/\" target=\"_blank\" rel=\"noopener noreferrer\">cbc:EmbeddedDocumentBinaryObject</a></code>, which is the Base64-encoded version of the PDF.</li>\n</ul></div></div>",
        "operationId" : "download_e-invoice_for_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "downloads" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing download</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/Download",
                        "description" : "Resource object representing download"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "downloads" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/resend_einvoice" : {
      "post" : {
        "summary" : "Resend failed einvoice in credit notes",
        "description" : "Resend failed einvoice in credit notes.\n",
        "operationId" : "resend_failed_einvoice_in_credit_notes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}/remove_tax_withheld_refund" : {
      "post" : {
        "summary" : "Remove tax withheld refunds from a credit note",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-tax-withheld\"></span><p class=\"mb-2\">Removes a <code><a href=\"/docs/api/credit_notes/credit_note-object#linked_tax_withheld_refunds\">linked_tax_withheld_refunds</a></code>\nrecord from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note</code>\n.</p></div>",
        "operationId" : "remove_tax_withheld_refunds_from_a_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "tax_withheld" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_withheld\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An auto-generated unique identifier for the tax withheld. The value starts with the prefix <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_</code>.\nFor example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_16BdDXSlbu4uV1Ee6</code>\n.</p>",
                        "maxLength" : 40,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "tax_withheld" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/credit_notes/{credit-note-id}" : {
      "get" : {
        "summary" : "Retrieve a credit note",
        "description" : "Retrieves the Credit Note identified by the specified Credit Note number.\n",
        "operationId" : "retrieve_a_credit_note",
        "parameters" : [ {
          "name" : "line_items_limit",
          "in" : "query",
          "description" : "Specify the maximum number of line items to include in the response.  \n**Note:**\n\n* Applicable only when Enterprise-scale Invoicing is enabled.\n* Enterprise-scale Invoicing is currently in **Private Beta** . Please reach out to [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support) to enable this feature.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 100,
            "deprecated" : false,
            "maximum" : 300,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "line_items_offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Specify the starting point for retrieving line items. Use the value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items_next_offset</code> attribute of the previous retrieve API response.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only when Enterprise-scale Invoicing is enabled.</li>\n<li class=\"text-base leading-relaxed\">Enterprise-scale Invoicing is currently in <strong class=\"font-semibold\">Private Beta</strong>. Please reach out to <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this feature.</li>\n</ul></div>",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "credit-note-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/credit-note-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    }
                  },
                  "required" : [ "credit_note" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/unbilled_charges/{unbilled-charge-id}/delete" : {
      "post" : {
        "summary" : "Delete an unbilled charge",
        "description" : "Use this API to delete an unbilled charge by specifying the id of the charge.\n",
        "operationId" : "delete_an_unbilled_charge",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "unbilled-charge-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/unbilled-charge-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "unbilled_charge" : {
                      "$ref" : "#/components/schemas/UnbilledCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>"
                    }
                  },
                  "required" : [ "unbilled_charge" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/unbilled_charges/invoice_now_estimate" : {
      "post" : {
        "summary" : "Create an estimate for unbilled charges",
        "description" : "This is similar to the \"Create an invoice for unbilled charges\" API but no invoice will be created, only an estimate for this operation is created.\n\nIn the estimate response,\n\n* **estimate.invoice_estimates** is an array of **estimate.invoice_estimate**. This has the details of the invoices that will be generated now.\n\n**Note:**\n\n* This API when invoked does not perform the actual operation. It just generates an estimate.\n* Both *subscription_id* and *customer_id* parameters should not be given at the same time.\n",
        "operationId" : "create_an_estimate_for_unbilled_charges",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the subscription for which this estimate needs to be created. Should be given if 'customer_id' is not specified.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer for whom this estimate is created. Is given if 'subscription_id' is not specified. Applicable only if the 'Consolidated Invoicing' is enabled. If 'Consolidated Invoicing' is not enabled, an invoice will be generated for every subscription.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/unbilled_charges/invoice_unbilled_charges" : {
      "post" : {
        "summary" : "Create an invoice for unbilled charges",
        "description" : "Use this API to bill the [unbilled charges](https://www.chargebee.com/docs/unbilled-charges.html). Available Credits and Excess Payments will automatically be applied while creating the invoice.\n\nIf the *Auto Collection* is turned on for the particular customer, the invoice will be created in payment_due state and the payment collection will be scheduled immediately.\n\nDuring invoice creation, the PO number for the line items will be filled from the subscription's current PO number, if available.\n\nIf no recurring item is present in the created invoice, the invoice will be marked as recurring=false.\n\nIf consolidated invoicing is enabled and the parameter 'customer_id' is passed, multiple invoices can be created based on the following factors.\n\n* Currency\n* PO number if 'Group by PO number' is enabled\n* Shipping address\n* Auto Collection\n* Payment method\n",
        "operationId" : "create_an_invoice_for_unbilled_charges",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the subscription for which this invoice needs to be created. Should be specified if 'customer_id' is not specified.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer for whom this invoice needs to be created. Should be specified if 'subscription_id' is not specified. Applicable only if the consolidated invoicing is enabled. .\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "invoices" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/Invoice",
                        "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "invoices" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/unbilled_charges" : {
      "get" : {
        "summary" : "List unbilled charges",
        "description" : "This endpoint lists all the unbilled charges.\n",
        "operationId" : "list_unbilled_charges",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*deleted\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ' attribute will be '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* '.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "is_voided",
          "in" : "query",
          "description" : "Will be true if the charge has been voided. Usually the unbilled charge will be voided and revised to different charges(s) during proration.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nA unique identifier for the subscription this charge belongs to.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*subscription_id\\[is\\] = \"5hjdk8nOpd0b12\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "5hjdk8nOpd0b12",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nA unique identifier for the customer being charged.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*customer_id\\[is\\] = \"5hjdk8nOpd0b12\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "5hjdk8nOpd0b12",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "unbilled_charge" : {
                            "$ref" : "#/components/schemas/UnbilledCharge",
                            "description" : "Resource object representing unbilled_charge"
                          }
                        },
                        "required" : [ "unbilled_charge" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create unbilled charges for item subscription",
        "description" : "This endpoint creates unbilled charges for a subscription.\n",
        "operationId" : "create_unbilled_charges_for_item_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the subscription for which this unbilled charges needs to be created.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the unbilled_charge.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_prices\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "A unique ID for your system to identify the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Item price quantity\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price to which this tier belongs.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "charges" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for charges\n",
                    "properties" : {
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the amount for the [one-time charge](https://www.chargebee.com/docs/charges.html#one-time-charges ).\nProvide the value in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this charge\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxable" : {
                        "type" : "array",
                        "description" : "The amount to be charged is taxable or not.\n",
                        "items" : {
                          "type" : "boolean",
                          "default" : true,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax_profile_id" : {
                        "type" : "array",
                        "description" : "Tax profile of the charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_tax_code" : {
                        "type" : "array",
                        "description" : "The Avalara tax codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "hsn_code" : {
                        "type" : "array",
                        "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxjar_product_code" : {
                        "type" : "array",
                        "description" : "The TaxJar product codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [TaxJar integration](https://www.chargebee.com/docs/taxjar.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n",
                          "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider currently supported.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with us.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the corresponding tax field.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "subscription_id" ],
                "example" : null
              },
              "encoding" : {
                "charges" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "unbilled_charges" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders" : {
      "get" : {
        "summary" : "List orders",
        "description" : "This API is used to retrieve a list of all the available orders.\n",
        "operationId" : "list_orders",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*deleted\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ' attribute will be '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* '.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "exclude_deleted_credit_notes",
          "in" : "query",
          "description" : "Flag to indicate whether deleted credit notes should be passed or not.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nUniquely identifies the order. It is the api identifier for the order.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"890\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "890",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "invoice_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe invoice number which acts as an identifier for invoice and is generated sequentially.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*invoice_id\\[is\\] = \"INVOICE_982\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "INVOICE_982",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe subscription for which the order is created.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*subscription_id\\[is_not\\] = \"null\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe status of this order. Possible values are : new, processing, complete, cancelled, voided, queued, awaiting_shipment, on_hold, delivered, shipped, partially_delivered, returned.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"queued\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "queued",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                "pattern" : "^\\[(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned)(,(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                "pattern" : "^\\[(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned)(,(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "shipping_date",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThis is the date on which the order will be delivered to the customer.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*shipping_date\\[after\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "shipped_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe time at which the order was shipped.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*shipped_at\\[before\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "order_type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nOrder type. Possible values are : manual, system_generated.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*order_type\\[is_not\\] = \"system_generated\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "system_generated",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`manual\\` - The order has been created by the the user using Chargebee's legacy order management system. \\* \\`system_generated\\` - The order has been created by Chargebee automatically based on the preferences set by the user.\n",
                "enum" : [ "manual", "system_generated" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`manual\\` - The order has been created by the the user using Chargebee's legacy order management system. \\* \\`system_generated\\` - The order has been created by Chargebee automatically based on the preferences set by the user.\n",
                "enum" : [ "manual", "system_generated" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`manual\\` - The order has been created by the the user using Chargebee's legacy order management system. \\* \\`system_generated\\` - The order has been created by Chargebee automatically based on the preferences set by the user.\n",
                "enum" : [ "manual", "system_generated" ],
                "pattern" : "^\\[(manual|system_generated)(,(manual|system_generated))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`manual\\` - The order has been created by the the user using Chargebee's legacy order management system. \\* \\`system_generated\\` - The order has been created by Chargebee automatically based on the preferences set by the user.\n",
                "enum" : [ "manual", "system_generated" ],
                "pattern" : "^\\[(manual|system_generated)(,(manual|system_generated))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "order_date",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe date on which the order will start getting processed.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*order_date\\[before\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "paid_on",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe timestamp indicating the date \\& time the order's invoice got paid.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*paid_on\\[on\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTo filter based on updated at .\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[on\\] = \"1243545465\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe time at which the order was created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[after\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "resent_status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nResent order status. Possible values are : fully_resent, partially_resent.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*resent_status\\[is\\] = \"fully_resent\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "fully_resent",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                "enum" : [ "fully_resent", "partially_resent" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                "enum" : [ "fully_resent", "partially_resent" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                "enum" : [ "fully_resent", "partially_resent" ],
                "pattern" : "^\\[(fully_resent|partially_resent)(,(fully_resent|partially_resent))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                "enum" : [ "fully_resent", "partially_resent" ],
                "pattern" : "^\\[(fully_resent|partially_resent)(,(fully_resent|partially_resent))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "is_resent",
          "in" : "query",
          "description" : "optional, boolean filter\n\nOrder is resent order or not. Possible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*is_resent\\[is\\] = \"false\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "false",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "original_order_id",
          "in" : "query",
          "description" : "optional, string filter\n\nIf resent order what is the parent order id.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*original_order_id\\[is\\] = \"1xRt6ifdr\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1xRt6ifdr",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "order" : {
                            "$ref" : "#/components/schemas/Order",
                            "description" : "Resource object representing order"
                          }
                        },
                        "required" : [ "order" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create an order",
        "description" : "#### Deprecated\n\nChargebee no longer supports this endpoint, see [here](https://www.chargebee.com/docs/1.0/manual_orders_deprecate.html)\nfor more information. Contact [Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support)\nfor additional assistance or if you have concerns about this update.\n",
        "operationId" : "create_an_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Uniquely identifies the order. If not given, this will be auto-generated.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "invoice_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The invoice number which acts as an identifier for invoice and is generated sequentially.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The order status.\n\\* cancelled -\n\nOrder has been cancelled. Applicable only if you are using Chargebee's legacy order management system\n\\* new -\n\nOrder has been created. Applicable only if you are using Chargebee's legacy order management system.\n\\* voided -\n\nOrder has been voided. Applicable only if you are using Chargebee's legacy order management system\n\\* complete -\n\nOrder has been processed successfully. Applicable only if you are using Chargebee's legacy order management system\n\\* processing -\n\nOrder is being processed. Applicable only if you are using Chargebee's legacy order management system\n",
                    "enum" : [ "new", "processing", "complete", "cancelled", "voided" ],
                    "example" : null
                  },
                  "reference_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is same as the order id in the third party application.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "fulfillment_status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The custom note for the order.\n",
                    "maxLength" : 600,
                    "example" : null
                  },
                  "tracking_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The tracking id of the order.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "tracking_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The tracking url of the order.\n",
                    "maxLength" : 255,
                    "example" : null
                  },
                  "batch_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Unique id to identify a group of orders.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "invoice_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/import_order" : {
      "post" : {
        "summary" : "Import an order",
        "description" : "Import an order for an invoice with one or more line items. The import order bulk operation is to be applied on an imported invoice.\n",
        "operationId" : "import_an_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Uniquely identifies the order. It is the api identifier for the order.\n\n\\*Order id will always be assigned incrementally from the last generated Order ID.\n\nIf Orders imported has an Order ID which is a string, Chargebee will just validate if the Order ID is unique\n\nRecommendation: For orders being imported, set the same prefix and the serial number that is used for the Document number, which will make this into a string. This will ensure that imported orders don't conflict with orders created by Chargebee. Chargebee will ensure there aren't orders with duplicate Order IDs.\\*\n.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "document_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The order's serial number.\n\n*Document number passed cannot be greater than the series mentioned in the configuration. For instance, if you have set Document number series in Order Configurations with a Prefix as 'ORDER' and Starting number as '1000', orders up to the sequence number 'ORDER999' can be imported into Chargebee*\n\n*Recommendation: Set a different prefix at the Order Configuration, than the ones that are imported. If your Order Configuration has a Prefix of 'NEW', with Starting number as '1', i.e. 'NEW1', then, set Prefix for imported orders to be as 'OLD', with Starting number as '1', i.e, 'OLD1'*\n.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "invoice_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The invoice number which acts as an identifier for invoice and is generated sequentially.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The status of this order.\n\\* voided -\n\nOrder has been voided. Applicable only if you are using Chargebee's legacy order management system\n\\* complete -\n\nOrder has been processed successfully. Applicable only if you are using Chargebee's legacy order management system\n\\* shipped -\n\nThe order has moved from order management system to a shipping system.\n\\* processing -\n\nOrder is being processed. Applicable only if you are using Chargebee's legacy order management system\n\\* queued -\n\nOrder is yet to be processed by any system, these are scheduled orders created by Chargebee\n\\* on_hold -\n\nThe order is paused from being processed.\n\\* new -\n\nOrder has been created. Applicable only if you are using Chargebee's legacy order management system.\n\\* returned -\n\nThe order has been returned after delivery.\n\\* delivered -\n\nThe order has been delivered to the customer.\n\\* awaiting_shipment -\n\nThe order has been picked up by an integration system, and synced to a shipping management platform\n\\* cancelled -\n\nOrder has been cancelled. Applicable only if you are using Chargebee's legacy order management system\n\\* partially_delivered -\n\nThe order has been partially delivered to the customer.\n",
                    "enum" : [ "cancelled", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The subscription for which the order is created.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customer for which the order is created.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "created_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was created.\n",
                    "example" : null
                  },
                  "order_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date on which the order will start getting processed.\n",
                    "example" : null
                  },
                  "shipping_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "This is the date on which the order has to be shipped to the customer.\n",
                    "example" : null
                  },
                  "reference_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is the same as the order id in the third party application.\n\n*Recommendation:\nIf this order is in any of these statuses, awaiting_shipment, on_hold, delivered, shipped, partially_delivered, returned, and has already been processed, through a 3rd party system, and you have a reference id of the entity in the 3rd party tool, pass in the entity id to this field. If not, set the same prefix and the serial number that is used for the Document number, which will make this into a string.*\n\n*If this order hasn't been processed and is in 'queued' status, do not pass any value to this field. Chargebee, when it syncs your Orders through the fulfilment integrations such as Shipstation or Shopify, would auto assign the reference id from the connected system.*\n.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "fulfillment_status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;.\n\n\\*If this order is in any of these statuses, awaiting_shipment, on_hold, delivered, shipped, partially_delivered, returned, and has already been processed, through a 3rd party system, and you have a corresponding status from the 3rd party tool, pass in the status to this field.\n\nIf this order hasn't been processed and is in 'queued' status, do not pass any value to this field. Chargebee, when it syncs your Orders through the fulfilment integrations such as Shipstation or Shopify, would auto assign the fulfilment status from the connected system.\\*\n.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The custom note for the order.\n",
                    "maxLength" : 600,
                    "example" : null
                  },
                  "tracking_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The tracking id of the order.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "tracking_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The tracking url of the order.\n",
                    "maxLength" : 255,
                    "example" : null
                  },
                  "batch_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Unique id to identify a group of orders.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "shipment_carrier" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Shipment carrier.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "shipping_cut_off_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time after which an order becomes unservicable.\n",
                    "example" : null
                  },
                  "delivered_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was delivered.\n",
                    "example" : null
                  },
                  "shipped_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was shipped.\n",
                    "example" : null
                  },
                  "cancelled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was cancelled.\n",
                    "example" : null
                  },
                  "cancellation_reason" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Cancellation reason.\n\\* shipping_cut_off_passed -\n\nThe invoice has been paid late and Chargebee cancel's the first order for the invoice.\n\\* invoice_voided -\n\nThe invoice for which the order was createed has been voided.\n\\* alternative_found -\n\nAlternative found.\n\\* others -\n\nOther reason\n\\* order_resent -\n\nOrder resent\n\\* product_unsatisfactory -\n\nProduct unsatisfactory.\n\\* delivery_date_missed -\n\nDelivery date missed.\n\\* subscription_cancelled -\n\nThe subsctiption for which the order was created has been cancelled.\n\\* fraudulent_transaction -\n\nFraudulent transaction.\n\\* invoice_written_off -\n\nThe invoice has been completely written off. Orders are generated by Chargebee in cancelled state.\n\\* product_not_required -\n\nProduct not required.\n\\* payment_declined -\n\nPayment declined.\n\\* product_not_available -\n\nProduct not available.\n\\* third_party_cancellation -\n\nThird party cancellation.\n",
                    "enum" : [ "shipping_cut_off_passed", "product_unsatisfactory", "third_party_cancellation", "product_not_required", "delivery_date_missed", "alternative_found", "invoice_written_off", "invoice_voided", "fraudulent_transaction", "payment_declined", "subscription_cancelled", "product_not_available", "others", "order_resent" ],
                    "example" : null
                  },
                  "refundable_credits_issued" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "If there are any credits that were issued at the order level, you can make use of the field, refundable_credits_issued. This will lead to Chargebee creating a Refundable Credit note against the order. When the next invoice is raised against the customer, this credit note will be utilised.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "created_at", "invoice_id", "order_date", "shipping_date", "status" ],
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/{order-id}/assign_order_number" : {
      "post" : {
        "summary" : "Assign order number",
        "description" : "Assigns order number to the order based on the settings, if not already assigned\n",
        "operationId" : "assign_order_number",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/{order-id}/resend" : {
      "post" : {
        "summary" : "Resend an order",
        "description" : "Resend an existing order. This will help in resending an existing order in full or partial. Upto 5 resend operations are allowed per . When resent fully, the original order is canceled.\n",
        "operationId" : "resend_an_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "shipping_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date on which the order should be shipped to the customer.\n",
                    "example" : null
                  },
                  "resend_reason" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for resending the order. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Orders \\> Order Resend**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "order_line_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for order_line_items\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "The identifier for the order line item.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "fulfillment_quantity" : {
                        "type" : "array",
                        "description" : "The quantity that is going to get fulfilled for this order\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "order_line_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/{order-id}/reopen" : {
      "post" : {
        "summary" : "Reopen a cancelled order",
        "description" : "This API is used to re-open a cancelled order\n",
        "operationId" : "reopen_a_cancelled_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "void_cancellation_credit_notes" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Flag to void credit notes created for cancellation if they are unused.\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/{order-id}/cancel" : {
      "post" : {
        "summary" : "Cancel an order",
        "description" : "Cancel order and create a refundable credit note for the order\n",
        "operationId" : "cancel_an_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cancellation_reason" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Cancellation reason.\n\\* shipping_cut_off_passed -\n\nThe invoice has been paid late and Chargebee cancel's the first order for the invoice.\n\\* alternative_found -\n\nAlternative found.\n\\* others -\n\nOther reason\n\\* product_unsatisfactory -\n\nProduct unsatisfactory.\n\\* product_not_required -\n\nProduct not required.\n\\* delivery_date_missed -\n\nDelivery date missed.\n\\* invoice_voided -\n\nThe invoice for which the order was createed has been voided.\n\\* payment_declined -\n\nPayment declined.\n\\* product_not_available -\n\nProduct not available.\n\\* subscription_cancelled -\n\nThe subsctiption for which the order was created has been cancelled.\n\\* third_party_cancellation -\n\nThird party cancellation.\n\\* fraudulent_transaction -\n\nFraudulent transaction.\n\\* order_resent -\n\nOrder resent\n\\* invoice_written_off -\n\nThe invoice has been completely written off. Orders are generated by Chargebee in cancelled state.\n",
                    "enum" : [ "shipping_cut_off_passed", "product_unsatisfactory", "third_party_cancellation", "product_not_required", "delivery_date_missed", "alternative_found", "invoice_written_off", "invoice_voided", "fraudulent_transaction", "payment_declined", "subscription_cancelled", "product_not_available", "others", "order_resent" ],
                    "example" : null
                  },
                  "customer_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The Customer Notes to be filled in the Credit Notes created to capture this refund detail.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Comment, if any, on the refund.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "cancelled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was cancelled.\n",
                    "example" : null
                  },
                  "credit_note" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_note\n",
                    "properties" : {
                      "total" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "Credit Note amount in cents.\n",
                        "minimum" : 0,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "cancellation_reason" ],
                "example" : null
              },
              "encoding" : {
                "credit_note" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/{order-id}" : {
      "get" : {
        "summary" : "Retrieve an order",
        "description" : "Retrieves an order corresponding to the order id passed.\n",
        "operationId" : "retrieve_an_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update an order",
        "description" : "Updates an order. If the status of an order is changed while updating the order, the status_update_at attribute is set with the current time.\n",
        "operationId" : "update_an_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "reference_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reference id is the unique identifier of the order in the shipping/order management application.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "batch_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Unique id to identify a group of orders.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The custom note for the order.\n",
                    "maxLength" : 600,
                    "example" : null
                  },
                  "shipping_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date on which the order should be shipped to the customer.\n",
                    "example" : null
                  },
                  "order_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The order date.\n",
                    "example" : null
                  },
                  "cancelled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was cancelled.\n",
                    "example" : null
                  },
                  "cancellation_reason" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Cancellation reason.\n\\* shipping_cut_off_passed -\n\nThe invoice has been paid late and Chargebee cancel's the first order for the invoice.\n\\* invoice_voided -\n\nThe invoice for which the order was createed has been voided.\n\\* alternative_found -\n\nAlternative found.\n\\* others -\n\nOther reason\n\\* order_resent -\n\nOrder resent\n\\* product_unsatisfactory -\n\nProduct unsatisfactory.\n\\* delivery_date_missed -\n\nDelivery date missed.\n\\* subscription_cancelled -\n\nThe subsctiption for which the order was created has been cancelled.\n\\* fraudulent_transaction -\n\nFraudulent transaction.\n\\* invoice_written_off -\n\nThe invoice has been completely written off. Orders are generated by Chargebee in cancelled state.\n\\* product_not_required -\n\nProduct not required.\n\\* payment_declined -\n\nPayment declined.\n\\* product_not_available -\n\nProduct not available.\n\\* third_party_cancellation -\n\nThird party cancellation.\n",
                    "enum" : [ "shipping_cut_off_passed", "product_unsatisfactory", "third_party_cancellation", "product_not_required", "delivery_date_missed", "alternative_found", "invoice_written_off", "invoice_voided", "fraudulent_transaction", "payment_declined", "subscription_cancelled", "product_not_available", "others", "order_resent" ],
                    "example" : null
                  },
                  "shipped_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was shipped.\n",
                    "example" : null
                  },
                  "delivered_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the order was delivered.\n",
                    "example" : null
                  },
                  "tracking_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The tracking url of the order.\n",
                    "maxLength" : 255,
                    "example" : null
                  },
                  "tracking_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The tracking id of the order.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "shipment_carrier" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The carrier used to ship the goods to the customer. Ex:- FedEx.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "fulfillment_status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "default" : "new",
                    "deprecated" : false,
                    "description" : "The order status.\n\\* voided -\n\nOrder has been voided. Applicable only if you are using Chargebee's legacy order management system\n\\* complete -\n\nOrder has been processed successfully. Applicable only if you are using Chargebee's legacy order management system\n\\* shipped -\n\nThe order has moved from order management system to a shipping system.\n\\* processing -\n\nOrder is being processed. Applicable only if you are using Chargebee's legacy order management system\n\\* queued -\n\nOrder is yet to be processed by any system, these are scheduled orders created by Chargebee\n\\* on_hold -\n\nThe order is paused from being processed.\n\\* new -\n\nOrder has been created. Applicable only if you are using Chargebee's legacy order management system.\n\\* returned -\n\nThe order has been returned after delivery.\n\\* delivered -\n\nThe order has been delivered to the customer.\n\\* awaiting_shipment -\n\nThe order has been picked up by an integration system, and synced to a shipping management platform\n\\* cancelled -\n\nOrder has been cancelled. Applicable only if you are using Chargebee's legacy order management system\n\\* partially_delivered -\n\nThe order has been partially delivered to the customer.\n",
                    "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "order_line_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for order_line_items\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "The identifier for the order line item.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "status" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "queued",
                          "deprecated" : false,
                          "description" : "The order line item's delivery status\n\\* shipped -\n\nThe order line item has been shipped.\n\\* returned -\n\nThe order has been returned after delivery.\n\\* queued -\n\nNot processed for shipping yet.\n\\* awaiting_shipment -\n\nMoved to shipping platform.\n\\* on_hold -\n\nThe delivery has been moved to \"On hold\" status.\n\\* partially_delivered -\n\nThe order has been partially delivered to the customer.\n\\* cancelled -\n\nThe order has been returned after delivery.\n\\* delivered -\n\nThe order line item has been delivered.\n",
                          "enum" : [ "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned", "cancelled" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "sku" : {
                        "type" : "array",
                        "description" : "The SKU code for the order line item product\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "order_line_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/{order-id}/delete" : {
      "post" : {
        "summary" : "Delete an imported order",
        "description" : "Deletes only [Imported Order](/docs/api/orders/import-an-order)\n.Delete does not happen if the order was refunded. It goes through if order refund was initiated and is in \"refund_due\" state.\n",
        "operationId" : "delete_an_imported_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/orders/{order-id}/create_refundable_credit_note" : {
      "post" : {
        "summary" : "Create a refundable credit note",
        "description" : "This API is used to create a refundable credit note for the order\n",
        "operationId" : "create_a_refundable_credit_note",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The Customer Notes to be filled in the Credit Notes created to capture this refund detail.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Comment, if any, on the refund.\n",
                    "maxLength" : 300,
                    "example" : null
                  },
                  "credit_note" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_note\n",
                    "properties" : {
                      "reason_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The reason for issuing this Credit Note. The following reason codes are supported now\\[Deprecated; use the [create_reason_code](/docs/api/credit_notes/credit_note-object#create_reason_code)\nparameter instead\\]\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* fraudulent -\n\nFRAUDULENT\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* waiver -\n\nWaiver\n\\* order_cancellation -\n\nOrder Cancellation\n\\* order_change -\n\nOrder Change\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n",
                        "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                        "example" : null
                      },
                      "total" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "Credit Note amount in cents.\n",
                        "minimum" : 0,
                        "example" : null
                      }
                    },
                    "required" : [ "reason_code", "total" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "credit_note" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "order" : {
                      "$ref" : "#/components/schemas/Order",
                      "description" : "<p class=\"mb-2\">Resource object representing order</p>"
                    }
                  },
                  "required" : [ "order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/gifts/create_for_items" : {
      "post" : {
        "summary" : "Create a gift subscription for items",
        "description" : "Create a gift subscription with items like plans, addons, or charges and gift it to an existing customer.\n",
        "operationId" : "create_a_gift_subscription_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "scheduled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.\n",
                    "example" : null
                  },
                  "auto_claim" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the claim happens automatically. When not passed, the default value in the site settings is used.</p>",
                    "example" : null
                  },
                  "no_expiry" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, indicates that the gift does not expire. Do not pass or pass as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nwhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_claim</code>\nis set.\n.</p>",
                    "example" : null
                  },
                  "claim_expiry_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date until which the gift can be claimed. Must be set to a value after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheduled_at</code>.\nIf the gift is not claimed within <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">claim_expiry_date</code>\n, it will expire and the subscription will move to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nstate. When not passed, the value specified in the site settings will be used.\nPass as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">NULL</code>\nor do not pass when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_claim</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">no_expiry</code>\nare set.</p>",
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A \\[collection of key-value pairs\\](/docs/api/advanced-features) that provides extra information about the subscription. \\*\\*Constraints\\*\\* \\* Character limit: 65,535.\n",
                    "example" : null
                  },
                  "gifter" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for gifter\n",
                    "properties" : {
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Gifter customer id.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "signature" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Gifter sign-off name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "note" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Personalized message for the gift.\n",
                        "maxLength" : 500,
                        "example" : null
                      },
                      "payment_src_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the payment source\n",
                        "maxLength" : 40,
                        "example" : null
                      }
                    },
                    "required" : [ "customer_id", "signature" ],
                    "example" : null
                  },
                  "gift_receiver" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for gift_receiver\n",
                    "properties" : {
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Receiver customer id.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the receiver as given by the gifter.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the receiver as given by the gifter,\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the receiver. All gift related emails are sent to this email.\n",
                        "maxLength" : 70,
                        "example" : null
                      }
                    },
                    "required" : [ "customer_id", "email", "first_name", "last_name" ],
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n\\* card -\n\ncard\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* after_pay -\n\nPayments made via Afterpay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* dotpay -\n\ndotpay\n\\* faster_payments -\n\nFaster Payments\n\\* upi -\n\nupi\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* payme -\n\nPayments made via PayMe\n\\* direct_debit -\n\ndirect_debit\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* bancontact -\n\nbancontact\n\\* go_pay -\n\nPayments made via GoPay\n\\* pay_by_bank -\n\nPay By Bank\n\\* google_pay -\n\ngoogle_pay\n\\* apple_pay -\n\napple_pay\n\\* trustly -\n\nTrustly\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* giropay -\n\ngiropay\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* venmo -\n\nVenmo\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* alipay -\n\nPayments made via Alipay.\n\\* sofort -\n\nsofort\n\\* amazon_payments -\n\nAmazon Payments\n\\* ideal -\n\nideal\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* pay_to -\n\nPayTo\n\\* boleto -\n\nboleto\n\\* pay_co -\n\nPayments made via PayCo\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. The value is interpreted as per the type of <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> is enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/item_prices/item_price-object#price\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price.price</code></a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item in major units of the <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>. When not provided, the <a href=\"/docs/api/item_prices/item_price-object#price\" class=\"text-blue-600 hover:text-blue-800 underline\">value set for the item price</a> is used.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> is enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/item_prices/item_price-object#price_in_decimal\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price.price_in_decimal</code></a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The lowest value in the quantity tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be zero for the lowest tier.</li>\n<li class=\"text-base leading-relaxed\">For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit</code> of the next lower tier.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The highest value in the quantity tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not applicable for the highest tier.</li>\n<li class=\"text-base leading-relaxed\">Must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit</code> of the next higher tier.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/currencies).\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be zero for the lowest tier.</li>\n<li class=\"text-base leading-relaxed\">For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code> of the next lower tier.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not applicable for the highest tier.</li>\n<li class=\"text-base leading-relaxed\">Must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code> of the next higher tier.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The decimal representation of the per-unit price for the tier when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\" class=\"text-blue-600 hover:text-blue-800 underline\">item_price.pricing_model</a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.</li>\n<li class=\"text-base leading-relaxed\">The decimal representation of the total price for the item when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\" class=\"text-blue-600 hover:text-blue-800 underline\">item_price.pricing_model</a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value must be in major units of the <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "gift_receiver" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "gifter" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "gift" : {
                      "$ref" : "#/components/schemas/Gift",
                      "description" : "<p class=\"mb-2\">Resource object representing gift</p>"
                    },
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    }
                  },
                  "required" : [ "gift", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/gifts/{gift-id}/cancel" : {
      "post" : {
        "summary" : "Cancel a gift",
        "description" : "This API allows to cancel gifts. Only gift in 'scheduled' and 'unclaimed' states can be cancelled.\n",
        "operationId" : "cancel_a_gift",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "gift-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/gift-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "gift" : {
                      "$ref" : "#/components/schemas/Gift",
                      "description" : "<p class=\"mb-2\">Resource object representing gift</p>"
                    },
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    }
                  },
                  "required" : [ "gift", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/gifts/{gift-id}/update_gift" : {
      "post" : {
        "summary" : "Update a gift",
        "description" : "Change the date/time at which the gift notification email is to be sent. This only applies to gifts in the scheduled [status](/docs/api/gifts/gift-object#status)\n.\n",
        "operationId" : "update_a_gift",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "gift-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/gift-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "scheduled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The new date/time at which the gift notification email is to be sent. The value must be greater than current time. If [no_expiry](/docs/api/gifts/gift-object#no_expiry)\nis false then the value must also be less than [claim_expiry_date](/docs/api/gifts/gift-object#claim_expiry_date)\n.\n",
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal comment for this action. The comments are not retrievable via API and are only available on request via [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support)\n.\n",
                    "maxLength" : 250,
                    "example" : null
                  }
                },
                "required" : [ "scheduled_at" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "gift" : {
                      "$ref" : "#/components/schemas/Gift",
                      "description" : "<p class=\"mb-2\">Resource object representing gift</p>"
                    },
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    }
                  },
                  "required" : [ "gift", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/gifts" : {
      "get" : {
        "summary" : "List gifts",
        "description" : "Retrieves the list of gifts.\n",
        "operationId" : "list_gifts",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nStatus of the gift. Possible values are : scheduled, unclaimed, claimed, cancelled, expired.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"claimed\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "claimed",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`scheduled\\` - Gift has been scheduled. \\* \\`unclaimed\\` - Gift is not yet claimed and is ready to be claimed. \\* \\`claimed\\` - Gift is claimed. \\* \\`cancelled\\` - Gift is cancelled. \\* \\`expired\\` - Gift is expired.\n",
                "enum" : [ "scheduled", "unclaimed", "claimed", "cancelled", "expired" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`scheduled\\` - Gift has been scheduled. \\* \\`unclaimed\\` - Gift is not yet claimed and is ready to be claimed. \\* \\`claimed\\` - Gift is claimed. \\* \\`cancelled\\` - Gift is cancelled. \\* \\`expired\\` - Gift is expired.\n",
                "enum" : [ "scheduled", "unclaimed", "claimed", "cancelled", "expired" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`scheduled\\` - Gift has been scheduled. \\* \\`unclaimed\\` - Gift is not yet claimed and is ready to be claimed. \\* \\`claimed\\` - Gift is claimed. \\* \\`cancelled\\` - Gift is cancelled. \\* \\`expired\\` - Gift is expired.\n",
                "enum" : [ "scheduled", "unclaimed", "claimed", "cancelled", "expired" ],
                "pattern" : "^\\[(scheduled|unclaimed|claimed|cancelled|expired)(,(scheduled|unclaimed|claimed|cancelled|expired))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`scheduled\\` - Gift has been scheduled. \\* \\`unclaimed\\` - Gift is not yet claimed and is ready to be claimed. \\* \\`claimed\\` - Gift is claimed. \\* \\`cancelled\\` - Gift is cancelled. \\* \\`expired\\` - Gift is expired.\n",
                "enum" : [ "scheduled", "unclaimed", "claimed", "cancelled", "expired" ],
                "pattern" : "^\\[(scheduled|unclaimed|claimed|cancelled|expired)(,(scheduled|unclaimed|claimed|cancelled|expired))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "gift_receiver",
          "in" : "query",
          "description" : "Parameters for gift_receiver\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "email" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Email of the receiver. All gift related emails are sent to this email.\n",
                "example" : "john@test.com",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                }
              },
              "customer_id" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Receiver customer id.\n",
                "example" : "1xRt6ifdr",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        }, {
          "name" : "gifter",
          "in" : "query",
          "description" : "Parameters for gifter\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "customer_id" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Gifter customer id.\n",
                "example" : "1xRt6ifdr",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "gift" : {
                            "$ref" : "#/components/schemas/Gift",
                            "description" : "Resource object representing gift"
                          },
                          "subscription" : {
                            "$ref" : "#/components/schemas/Subscription",
                            "description" : "Resource object representing subscription"
                          }
                        },
                        "required" : [ "gift", "subscription" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/gifts/{gift-id}" : {
      "get" : {
        "summary" : "Retrieve a gift",
        "description" : "Retrieves a gift subscription. This API accepts the gift 'id' and returns the gift along with the subscription.\n",
        "operationId" : "retrieve_a_gift",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "gift-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/gift-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "gift" : {
                      "$ref" : "#/components/schemas/Gift",
                      "description" : "<p class=\"mb-2\">Resource object representing gift</p>"
                    },
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    }
                  },
                  "required" : [ "gift", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/gifts/{gift-id}/claim" : {
      "post" : {
        "summary" : "Claim a gift",
        "description" : "Claiming a gift will move the status to 'claimed'. Only gifts in 'unclaimed' state can be claimed.\n",
        "operationId" : "claim_a_gift",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "gift-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/gift-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "gift" : {
                      "$ref" : "#/components/schemas/Gift",
                      "description" : "<p class=\"mb-2\">Resource object representing gift</p>"
                    },
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    }
                  },
                  "required" : [ "gift", "subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions" : {
      "get" : {
        "summary" : "List transactions",
        "description" : "Lists all the transactions.\n",
        "operationId" : "list_transactions",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*deleted\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ' attribute will be '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* '.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nUniquely identifies the transaction.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"txn_88ybdbsnvf2\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "txn_88ybdbsnvf2",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nIdentifier of the customer for which this transaction is made.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*customer_id\\[is\\] = \"5hjdk8nOpd\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "5hjdk8nOpd",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nIdentifier of the subscription for which this transaction is made.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*subscription_id\\[is\\] = \"5hjdk8nOpd\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "5hjdk8nOpd",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "payment_source_id",
          "in" : "query",
          "description" : "optional, string filter\n\nTo filter based on Transaction payment source id.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*payment_source_id\\[is\\] = \"pm_3Nl8XXUQUXDVFa2\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "pm_3Nl8XXUQUXDVFa2",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "payment_method",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe payment method of this transaction. Possible values are : card, cash, check, chargeback, bank_transfer, amazon_payments, paypal_express_checkout, direct_debit, alipay, unionpay, apple_pay, wechat_pay, ach_credit, sepa_credit, ideal, google_pay, sofort, bancontact, giropay, dotpay, other, upi, netbanking_emandates.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*payment_method\\[is_not\\] = \"card\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "card",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                "pattern" : "^\\[(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna)(,(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                "pattern" : "^\\[(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna)(,(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "gateway",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nGateway through which this transaction was done. Applicable only for 'Card' Payment Method. Possible values are : chargebee, chargebee_payments, stripe, wepay, braintree, authorize_net, paypal_pro, pin, eway, eway_rapid, worldpay, balanced_payments, beanstream, bluepay, elavon, first_data_global, hdfc, migs, nmi, ogone, paymill, paypal_payflow_pro, sage_pay, tco, wirecard, amazon_payments, paypal_express_checkout, gocardless, adyen, orbital, moneris_us, moneris, bluesnap, cybersource, vantiv, checkout_com, paypal, ingenico_direct, exact, mollie, quickbooks, razorpay, not_applicable.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*gateway\\[is\\] = \"stripe\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "stripe",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                "pattern" : "^\\[(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable)(,(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                "pattern" : "^\\[(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable)(,(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "gateway_account_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe gateway account used for this transaction.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*gateway_account_id\\[is\\] = \"gw_3Nl9BNeQ7438Ks1\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "gw_3Nl9BNeQ7438Ks1",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "id_at_gateway",
          "in" : "query",
          "description" : "optional, string filter\n\nThe id with which this transaction is referred in gateway.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*id_at_gateway\\[is_not\\] = \"txn_5678HJS89900\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "txn_5678HJS89900",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "reference_number",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The reference number for this transaction. For example, the check number when <code><a href=\"/docs/api/transactions/transaction-object#payment_method\">payment_method</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">check</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">reference_number[is] = &quot;cus_u239732&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "cus_u239732",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nType of the transaction. Possible values are : authorization, payment, refund, payment_reversal.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*type\\[is_not\\] = \"payment\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "payment",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                "pattern" : "^\\[(authorization|payment|refund|payment_reversal)(,(authorization|payment|refund|payment_reversal))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                "pattern" : "^\\[(authorization|payment|refund|payment_reversal)(,(authorization|payment|refund|payment_reversal))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "date",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nIndicates when this transaction occurred.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*date\\[before\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount",
          "in" : "query",
          "description" : "optional, in cents filter\n\nAmount for this transaction.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*amount\\[gt\\] = \"1200\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1200",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "amount_capturable",
          "in" : "query",
          "description" : "optional, in cents filter\n\nTo filter based on transaction's unused authorized/blocked amount.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*amount_capturable\\[lt\\] = \"1200\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1200",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe status of this transaction. Possible values are : in_progress, success, voided, failure, timeout, needs_attention.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"success\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "success",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                "pattern" : "^\\[(in_progress|success|voided|failure|timeout|needs_attention|late_failure)(,(in_progress|success|voided|failure|timeout|needs_attention|late_failure))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                "pattern" : "^\\[(in_progress|success|voided|failure|timeout|needs_attention|late_failure)(,(in_progress|success|voided|failure|timeout|needs_attention|late_failure))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[after] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ndate, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"date\"*\n\nThis will sort the result based on the 'date' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "transaction" : {
                            "$ref" : "#/components/schemas/Transaction",
                            "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                          }
                        },
                        "required" : [ "transaction" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions/{transaction-id}/reconcile" : {
      "post" : {
        "summary" : "Reconcile transaction",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Update selected attributes of the transaction resource: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>. Use this API for reconciliation purposes where the status of a transaction is in <code><a href=\"/docs/api/transactions/transaction-object#status\">needs_attention</a></code> that can be updated to either <code><a href=\"/docs/api/transactions/transaction-object#status\" rel=\"noopener noreferrer\">success</a></code> or <code><a href=\"/docs/api/transactions/transaction-object#status\">failure</a></code> status.</p></div>",
        "operationId" : "reconcile_transaction",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "transaction-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/transaction-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id_at_gateway" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The identifier with which this transaction is referred in gateway. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\ncan only be updated when the transaction status is in <code><a href=\"/docs/api/transactions/transaction-object#status\">needs_attention</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">It is mandatory to pass this parameter value for updating the transaction status from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>. It is recommended to pass this value if available in the gateway.</li>\n<li class=\"text-base leading-relaxed\">An error occurs when the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code> value does not match the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code> value stored against the transaction in Chargebee.</li>\n</ul></div>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Unique identifier of the customer for which this transaction is made. This is needed only when the transaction is successful but not associated with any customer.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><p class=\"mb-2\">An error occurs when the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\nvalue does not match the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\nvalue stored against the transaction in Chargebee.</p></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The status of this transaction. The status can only be updated when the transaction status is in <code><a href=\"/docs/api/transactions/transaction-object#status\">needs_attention</a></code>\nstate.</p>\n* failure - <p class=\"mb-2\">When the transaction is in failure status.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><p class=\"mb-2\">When the transaction is updated to <code><a href=\"/docs/api/transactions/transaction-object#status\">failure</a></code> status and the invoice is associated with the transaction,</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">the invoice will be moved to the <code><a href=\"/docs/api/invoices/invoice-object#status\">payment_due</a></code> status if the <code><a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\">dunning</a></code> is configured.</li>\n<li class=\"text-base leading-relaxed\">the invoice will be moved to the <code><a href=\"/docs/api/invoices/invoice-object#status\">not_paid</a></code> status if the <code><a href=\"https://www.chargebee.com/docs/payments/2.0/dunning-v2.html\">dunning</a></code> is not configured.</li>\n</ul></div>\n* success - <p class=\"mb-2\">When the transaction is successful.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><p class=\"mb-2\">When the transaction is updated to <code><a href=\"/docs/api/transactions/transaction-object#status\">success</a></code>\nstatus, -   and the invoice is associated with the transaction, the transaction <code><a href=\"/docs/api/transactions/transaction-object#amount\">amount</a></code> will be applied to the invoice.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">and no invoice is associated but the customer is associated with the transaction, <code><a href=\"/docs/api/customers/customer-object#excess_payments\">customer_excess_payments</a></code> will be updated.</li>\n</ul></div>",
                    "enum" : [ "success", "failure" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions/{transaction-id}" : {
      "get" : {
        "summary" : "Retrieve a transaction",
        "description" : "Retrieve a transaction identified by its unique id.\n",
        "operationId" : "retrieve_a_transaction",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "transaction-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/transaction-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions/{transaction-id}/refund" : {
      "post" : {
        "summary" : "Refund a payment",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Refunds an online payment. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code>s of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment</code>. You can only refund a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code> whose <code><a href=\"/docs/api/transactions/transaction-object#status\">status</a></code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</p><div class=\"alert alert-info\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not supported for ach_credit, sepa_credit, cash, check, bank_transfer, other.</li>\n<li class=\"text-base leading-relaxed\">Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this endpoint.</li>\n</ul></div></div>",
        "operationId" : "refund_a_payment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "transaction-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/transaction-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The amount to be refunded. Must not exceed <code><a href=\"/docs/api/transactions/transaction-object#amount_unused\">amount_unused</a></code>.\nIf not passed then all of <code><a href=\"/docs/api/transactions/transaction-object#amount_unused\">amount_unused</a></code>\nis refunded.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Remarks, if any, on the refund.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions/{transaction-id}/record_refund" : {
      "post" : {
        "summary" : "Record an offline refund",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Records a refund made offline. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code>s of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment</code>.</p></div>",
        "operationId" : "record_an_offline_refund",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "transaction-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/transaction-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The amount to be recorded as refunded. Must not exceed <code><a href=\"/docs/api/transactions/transaction-object#amount_unused\">amount_unused</a></code>.\nIf not passed then all of <code><a href=\"/docs/api/transactions/transaction-object#amount_unused\">amount_unused</a></code>\nis recorded as refunded.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "payment_method" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The payment method used to make the refund.</p>\n* card - <p class=\"mb-2\">Card</p>\n* custom - <p class=\"mb-2\">Custom</p>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* play_store - <p class=\"mb-2\">Play Store</p>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* upi - <p class=\"mb-2\">upi</p>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>\n* giropay - <p class=\"mb-2\">giropay</p>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* cash - <p class=\"mb-2\">Cash</p>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* app_store - <p class=\"mb-2\">App Store</p>\n* check - <p class=\"mb-2\">Check</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>",
                    "enum" : [ "cash", "check", "chargeback", "bank_transfer", "other", "custom" ],
                    "example" : null
                  },
                  "date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date when the refund was made.\n",
                    "example" : null
                  },
                  "reference_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The reference number for this transaction. For example, the check number when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">check</code>\n.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "custom_payment_method_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the custom payment method of this transaction.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Remarks, if any, on the refund.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "required" : [ "date", "payment_method" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions/{transaction-id}/void" : {
      "post" : {
        "summary" : "Void an authorization transaction",
        "description" : "This API voids the specific authorization transaction in order to release the blocked funds from the customer's card. Voiding an already captured or voided transaction is not possible.\n",
        "operationId" : "void_an_authorization_transaction",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "transaction-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/transaction-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions/create_authorization" : {
      "post" : {
        "summary" : "Create an authorization payment",
        "description" : "Authorizes a specific amount in customer's Credit card, which can be collected within a span of time. Read more on authorization and capture [here](https://www.chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/stripe#auth-and-capture).  \n* Supported only for Card payments.\n* Currently supported only for **Stripe**.\n",
        "operationId" : "create_an_authorization_payment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Payment source to be used for authorizing the transaction.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the transaction amount.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "The amount to be blocked.\n",
                    "minimum" : 1,
                    "example" : null
                  }
                },
                "required" : [ "amount", "customer_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/payments" : {
      "get" : {
        "summary" : "List payments for an invoice",
        "description" : "Retrieves the payments for an invoice with the recent ones on top. This returns all the payment attempts(manual \\& automatic) made for this invoice.\n",
        "operationId" : "list_payments_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "transaction" : {
                            "$ref" : "#/components/schemas/Transaction",
                            "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                          }
                        },
                        "required" : [ "transaction" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/transactions/{transaction-id}/delete_offline_transaction" : {
      "post" : {
        "summary" : "Delete an offline transaction",
        "description" : "This API deletes an offline transaction. However, to delete an offline transaction all payment allocations associated with the transaction must be removed.\n",
        "operationId" : "delete_an_offline_transaction",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "transaction-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/transaction-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason for deleting this transaction. This comment will be added to the associated entity.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "transaction" : {
                      "$ref" : "#/components/schemas/Transaction",
                      "description" : "<p class=\"mb-2\">Resource object representing transaction</p>"
                    }
                  },
                  "required" : [ "transaction" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/checkout_one_time_for_items" : {
      "post" : {
        "summary" : "Checkout charge-items and one-time charges",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Create a Chargebee hosted page to accept payment details from a customer and checkout <a href=\"/docs/api/items\">charge-items</a> and <a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">one-time charges</a>.</p><p class=\"mb-2\">The following steps describe how best to use this API:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Call this endpoint, providing <a href=\"/docs/api/item_prices\">item prices</a>, <a href=\"/docs/api/items\">charges</a>, <a href=\"/docs/api/coupons\">coupons</a> and a host of other details such as billing and shipping addresses of the customer, to be prefilled on the checkout page. You may also provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pass_thru_content</code> containing information and IDs from your systems that must be associated with the checkout page.</li>\n<li class=\"text-base leading-relaxed\">Send the customer to the Checkout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">url</code> received in the response.</li>\n<li class=\"text-base leading-relaxed\">Once they complete checkout, the set of charge-items and one-time charges are automatically invoiced against the respective <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> record in Chargebee, and they are redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code> attributes passed as query string parameters.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/hosted_pages/retrieve-a-hosted-page\">Retrieve the hosted page</a> at this stage to get the invoice details.</li>\n</ol><h4>Customer resource lookup and creation</h4><p class=\"mb-2\">When <code><a href=\"/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges\">customer[id]</a></code> is provided for this operation, it is looked up by Chargebee, and if found, the hosted_page is created for it. If not found, a new customer resource is created with an autogenarated ID, and the hosted_page is created.</p><h5>Multiple business entities</h5><p class=\"mb-2\">If multiple <a href=\"/docs/api/advanced-features\">business entities</a> are created for the site, the customer resource lookup and creation happen within the <a href=\"/docs/api/advanced-features\">context</a> of the business entity <a href=\"/docs/api/advanced-features#mbe-header-main\">specified</a> in this API call. If no business entity is specified, the customer resource lookup is performed within the <a href=\"/docs/api/advanced-features\">site context</a> , and if not found, the resource is created for the <a href=\"/docs/api/advanced-features\">default business entity</a> of the site.</p></div>",
        "operationId" : "checkout_charge-items_and_one-time_charges",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Sets the [context]() for this operation to the [business entity](/docs/api/advanced-features) specified. Applicable only when multiple business entities have been created for the site. When this parameter is provided, the operation is able to read/write data associated only to the business entity specified. When not provided, the operation can read/write data for the entire site.  \n**Note**\n\nAn alternative way of passing this parameter is by means of a [custom HTTP header](/docs/api/advanced-features).  \n**See also**\n[Customer resource lookup and creation.](/docs/api/hosted_pages)\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "layout" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Specifies the checkout layout that overrides the default checkout layout configured in the Checkout \\& Self-Serve Portal settings.\n\\* in_app -\n\nIndicates in-app checkout version\n\\* full_page -\n\nIndicates full page checkout version\n",
                    "enum" : [ "in_app", "full_page" ],
                    "example" : null
                  },
                  "invoice_note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A note for this particular invoice. This, and [all other notes](/docs/api/invoices/invoice-object#notes)\nfor the invoice are displayed on the PDF invoice sent to the customer.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of Coupons to be added.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the invoice amount.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong> :</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Although the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons such as user closing the tab, or exiting the browser, and so on. If there is any synchronization that you are doing after the redirection, you will have to have a backup. Chargebee recommends listening to appropriate webhooks such as <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_created</code></a> or <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_generated</code></a> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\">Redirect URL configured in Settings &gt; Hosted Pages Settings would be overriden by this redirect URL.</li>\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Eg :</em> <em class=\"italic\">http://yoursite.com?id=**&amp;state=succeeded</em></li>\n<li class=\"text-base leading-relaxed\">This parameter is not applicable for iframe messaging.</li>\n</ul>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "cancel_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customers will be redirected to this URL upon canceling checkout. The hosted page id and state will be passed as parameters to this URL.\n\n**Note**\n: - Cancel URL configured in Settings \\> Hosted Pages Settings would be overriden by this cancel URL.\n*Eg : http://yoursite.com?id=\\&state=cancelled*\n\n* This parameter is not applicable for iframe messaging and [in-app](https://www.chargebee.com/docs/2.0/checkout.html) checkout.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "pass_thru_content" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This attribute allows you to store custom information with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> object. You can use it to associate specific data with a hosted page session.\nFor example, you can store the ID of the marketing campaign that initiated the user session. After a successful checkout, when the customer is redirected, you can retrieve the hosted page ID from the <a href=\"/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges\">redirect URL</a>&#x27;s query parameters. Using this ID, you can fetch the hosted page and perform actions related to the success of the marketing campaign.</p>",
                    "maxLength" : 2048,
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unique ID of the customer for which this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> should be created. If not provided, the ID of the newly created customer resource is autogenerated.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong></p><a href=\"/docs/api/hosted_pages\">Customer resource lookup and creation.</a></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the customer. If not provided it will be got from contact information entered in the hosted page\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the customer. If not provided it will be got from contact information entered in the hosted page\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Company name of the customer.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the customer\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "locale" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "taxability" : {
                        "type" : "string",
                        "default" : "taxable",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies if the customer is liable for tax</p>\n* exempt - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Customer is exempted from tax. When using Chargebee&#x27;s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li>\n<li class=\"text-base leading-relaxed\">However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code> attributes if you use Chargebee&#x27;s <a href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\" target=\"_blank\">AvaTax for Sales</a> or specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee&#x27;s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> based on the state/region/province of the taxable address.</li>\n</ul>\n* taxable - <p class=\"mb-2\">Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>.\nIn some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that&#x27;s not available either, the tax is taken as zero.</p>",
                        "enum" : [ "taxable", "exempt" ],
                        "example" : null
                      },
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The VAT/tax registration number for the customer. For customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n), the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>\ncan be overridden by setting\n<code><a href=\"/docs/api/customers/customer-object#vat_number_prefix\">vat_number_prefix</a></code>\n.</p>",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "einvoicing_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "null\n",
                        "enum" : [ "automatic", "manual", "site_default" ],
                        "example" : null
                      },
                      "is_einvoice_enabled" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Determines whether the customer is e-invoiced. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nor not set to any value, the customer is e-invoiced so long as e-invoicing is enabled for their country (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>\n). When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the customer is not e-invoiced even if e-invoicing is enabled for their country.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">It is possible to set a value for this flag even when E-Invoicing is disabled. However, it comes into effect only when E-Invoicing is enabled.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "example" : null
                      },
                      "entity_identifier_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "entity_identifier_standard" : {
                        "type" : "string",
                        "default" : "iso6523-actorid-upis",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nCurrently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "consolidated_invoicing" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Indicates whether invoices raised on the same day for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> are consolidated. When provided, this overrides the default configuration at the <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html#configuring-consolidated-invoicing\" target=\"_blank\">site-level</a>. This parameter can be provided only when <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html\" target=\"_blank\">Consolidated Invoicing</a> is enabled.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">Any invoices raised when a subscription activates from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, are not consolidated by default. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable consolidation for such invoices.</p></div>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "invoice" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice\n",
                    "properties" : {
                      "po_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Purchase Order Number for this invoice.\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_prices\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "A unique ID for your system to identify the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Item price quantity\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price to which this tier belongs.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "charges" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for charges\n",
                    "properties" : {
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the amount for the [one-time charge](https://www.chargebee.com/docs/charges.html#one-time-charges ).\nProvide the value in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this charge\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxable" : {
                        "type" : "array",
                        "description" : "The amount to be charged is taxable or not.\n",
                        "items" : {
                          "type" : "boolean",
                          "default" : true,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax_profile_id" : {
                        "type" : "array",
                        "description" : "Tax profile of the charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_tax_code" : {
                        "type" : "array",
                        "description" : "The Avalara tax codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "hsn_code" : {
                        "type" : "array",
                        "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxjar_product_code" : {
                        "type" : "array",
                        "description" : "The TaxJar product codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [TaxJar integration](https://www.chargebee.com/docs/taxjar.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n",
                          "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "apply_on" ],
                    "example" : null
                  },
                  "entity_identifiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for entity_identifiers\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[i]</code>\nin Chargebee. This is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[operation][i]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">update</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">delete</code>\n.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "scheme" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>.\nThis identifies the customer entity on the Peppol network. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10101010-STO-10</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be performed for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>\n* create - <p class=\"mb-2\">Creates a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer.</p>\n* update - <p class=\"mb-2\">Updates an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code>\nmust be provided in this case.</p>\n* delete - <p class=\"mb-2\">Deletes an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code>\nmust be provided in this case.</p>",
                          "enum" : [ "create", "update", "delete" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "standard" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>.\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "default" : "iso6523-actorid-upis",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "charges" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "entity_identifiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "invoice" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/update_payment_method" : {
      "post" : {
        "summary" : "Update payment method",
        "description" : "**Note:** If you're using [In-App Checkout](https://www.chargebee.com/docs/2.0/checkout.html) , use [Manage Payment Sources API](/docs/api/hosted_pages/manage-payment-sources) to request your customers to update their payment method details or change their payment method.\n\nUsing this API, you can request your customers to update their payment method details or change their payment method. This is used in scenarios like customers updating their payment methods before the end of trial or customers switching among payment methods.\n\nWhen this API is invoked, it returns a hosted page URL. When the customers are directed to this URL, they will be able to change/update their payment methods.\n\nDepending on the payment methods (Card, PayPal Express Checkout, Amazon Payments) that you offer your customers, they will find options to switch among the various methods of payment.\n**Note:**\n\n* If the card\\[gateway\\] parameter is passed, and the customer chooses Card as a payment method, then the card details are stored in the gateway which is passed. However, if the card\\[gateway\\] parameter is passed and the customer chooses PayPal Express Checkout/Amazon Payments as a payment method, the gateway passed will be ignored.\n* The option of embedding into an iframe is not supported for PayPal Express Checkout and Amazon Payments as customers are redirected to the respective website pages. Hence if you have PayPal Express Checkout/Amazon Payments configured and pass the parameter embed=true, this will result in an unsuccessful API request. Also, if you have all the three payment methods (Card, Paypal Express Checkout and Amazon Payments) configured and pass the parameter embed=true, the returned hosted page URL will show only Card Payment as a payment method.\n",
        "operationId" : "update_payment_method",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong> :</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Although the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons such as user closing the tab, or exiting the browser, and so on. If there is any synchronization that you are doing after the redirection, you will have to have a backup. Chargebee recommends listening to appropriate webhooks such as <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_created</code></a> or <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_generated</code></a> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\">Redirect URL configured in Settings &gt; Hosted Pages Settings would be overriden by this redirect URL.</li>\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Eg :</em> <em class=\"italic\">http://yoursite.com?id=**&amp;state=succeeded</em></li>\n<li class=\"text-base leading-relaxed\">This parameter is not applicable for iframe messaging.</li>\n</ul>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "cancel_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customers will be redirected to this URL upon canceling checkout. The hosted page id and state will be passed as parameters to this URL.\n\n**Note**\n: - Cancel URL configured in Settings \\> Hosted Pages Settings would be overriden by this cancel URL.\n*Eg : http://yoursite.com?id=\\&state=cancelled*\n\n* This parameter is not applicable for iframe messaging and [in-app](https://www.chargebee.com/docs/2.0/checkout.html) checkout.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "pass_thru_content" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This attribute allows you to store custom information with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> object. You can use it to associate specific data with a hosted page session.\nFor example, you can store the ID of the marketing campaign that initiated the user session. After a successful session, when the customer is redirected, you can retrieve the hosted page ID from the <a href=\"/docs/api/hosted_pages/update-payment-method#redirect_url\">redirect URL</a>&#x27;s query parameters. Using this ID, you can fetch the hosted page and perform actions related to the success of the marketing campaign.</p>",
                    "maxLength" : 2048,
                    "example" : null
                  },
                  "iframe_messaging" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "If true then iframe will communicate with the parent window. Applicable only for embedded(iframe) hosted pages. If you're using iframe_messaging you need to implement onSuccess \\& onCancel callbacks.\n\n**Note**\n: This parameter is not applicable for [in-app](https://www.chargebee.com/docs/checkout-v3.html)\ncheckout.\n",
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the customer.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/extend_subscription" : {
      "post" : {
        "summary" : "Extend Subscription",
        "description" : "This API generates a hosted page URL to extend the billing cycle of a subscription.\n",
        "operationId" : "extend_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "expiry" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Expiry (in days) for the link generated. No expiry will be set if this is not specified.\n",
                    "maximum" : 500,
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_cycle" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of billing cycles by which the subscription should be extended.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default behavior</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the subscription&#x27;s plan has <a href=\"/docs/api/item_prices#billing_cycles\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code></a> set, that value is used.</li>\n<li class=\"text-base leading-relaxed\">If the plan&#x27;s billing cycles attribute is not set, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> is used.</li>\n</ul></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/events" : {
      "post" : {
        "summary" : "Notify an event",
        "description" : "Use this API to notify Chargebee about important events that occur on your web pages, such as subscription cancellations. An event contains data about affected resources and additional details such as when the change occurred.\n",
        "operationId" : "notify_an_event",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "event_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The event that need to passed to a different system.\n\\* cancellation_page_loaded -\n\nIndicates native cancellation flow provided by the merchant is loaded rather than the retention flow.\n",
                    "enum" : [ "cancellation_page_loaded" ],
                    "example" : null
                  },
                  "occurred_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Timestamp indicating when this event had occurred.\n.\n",
                    "example" : null
                  },
                  "event_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The meta data description of the event in key-value pair. The value is a JSON object with the following keys and their values.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>: A unique and immutable identifier for the subscription.\n.</li>\n</ul>",
                    "example" : null
                  }
                },
                "required" : [ "event_data", "event_name" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "success" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "example" : null
                    }
                  },
                  "required" : [ "success" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/checkout_gift_for_items" : {
      "post" : {
        "summary" : "Checkout Gift subscription for Items",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a hosted page for a customer (called the gifter) to gift a subscription to another customer (called the receiver).</p><h4>Gifter customer resource lookup and creation</h4><p class=\"mb-2\">When <code><a href=\"/docs/api/hosted_pages/checkout-gift-subscription-for-items#gifter_customer_id\">gifter[customer_id]</a></code> is provided, it is looked up in Chargebee when the gifter completes the hosted page checkout. If not found, a new customer resource is created with this ID.</p><h5>Multiple business entities</h5><p class=\"mb-2\">If multiple <a href=\"/docs/api/advanced-features\">business entities</a> are created for the site, the lookup and creation of the gifter customer resource happen within the <a href=\"/docs/api/advanced-features\">context</a> of the business entity specified in this API call. If no business entity is <a href=\"/docs/api/advanced-features#mbe-header-main\">specified</a>, the customer resource lookup is performed within the <a href=\"/docs/api/advanced-features\">site context</a>, and if not found, the resource is created for the <a href=\"/docs/api/advanced-features\">default business entity</a> of the site.</p><h4>Gift receiver customer resource lookup and creation</h4><p class=\"mb-2\">Once the gifter checks out using the hosted page returned by this endpoint, Chargebee checks if a customer resource with the receiver&#x27;s email address exists. The first such customer record is considered the receiver&#x27;s customer resource. A new customer resource is created for the receiver if none are found.</p><h5>Multiple business entities</h5><p class=\"mb-2\">If multiple <a href=\"/docs/api/advanced-features\">business entities</a> are created for the site, the lookup and creation of the gift receiver&#x27;s customer resource happen within the <a href=\"/docs/api/advanced-features\">context</a> of the business entity of the gifter</p></div>",
        "operationId" : "checkout_gift_subscription_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Sets the [context]() for this operation to the [business entity](/docs/api/advanced-features) specified. Applicable only when multiple business entities have been created for the site. When this parameter is provided, the operation is able to read/write data associated only to the business entity specified. When not provided, the operation can read/write data for the entire site.  \n**Note**\n\nAn alternative way of passing this parameter is by means of a [custom HTTP header](/docs/api/advanced-features).  \n**See also**\n\nGifter customer resource lookup and creation.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong> :</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Although the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons such as user closing the tab, or exiting the browser, and so on. If there is any synchronization that you are doing after the redirection, you will have to have a backup. Chargebee recommends listening to appropriate webhooks such as <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_created</code></a> or <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_generated</code></a> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\">Redirect URL configured in Settings &gt; Hosted Pages Settings would be overriden by this redirect URL.</li>\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Eg :</em> <em class=\"italic\">http://yoursite.com?id=**&amp;state=succeeded</em></li>\n<li class=\"text-base leading-relaxed\">This parameter is not applicable for iframe messaging.</li>\n</ul>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or [coupon codes](/docs/api/coupon_codes)\n.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "gifter" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for gifter\n",
                    "properties" : {
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The customer ID of the gifter. If not provided, the gifter customer resource is created with an autogenerated ID on checkout.  \n**See also**\n[Gifter customer resource lookup and creation](/docs/api/hosted_pages)\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "locale" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. The value is interpreted as per the type of <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> is enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/item_prices/item_price-object#price\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price.price</code></a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item in major units of the <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>. When not provided, the <a href=\"/docs/api/item_prices/item_price-object#price\" class=\"text-blue-600 hover:text-blue-800 underline\">value set for the item price</a> is used.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> is enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/item_prices/item_price-object#price_in_decimal\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price.price_in_decimal</code></a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The lowest value in the quantity tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be zero for the lowest tier.</li>\n<li class=\"text-base leading-relaxed\">For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit</code> of the next lower tier.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The highest value in the quantity tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not applicable for the highest tier.</li>\n<li class=\"text-base leading-relaxed\">Must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit</code> of the next higher tier.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/currencies).\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be zero for the lowest tier.</li>\n<li class=\"text-base leading-relaxed\">For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code> of the next lower tier.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not applicable for the highest tier.</li>\n<li class=\"text-base leading-relaxed\">Must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code> of the next higher tier.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The decimal representation of the per-unit price for the tier when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\" class=\"text-blue-600 hover:text-blue-800 underline\">item_price.pricing_model</a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.</li>\n<li class=\"text-base leading-relaxed\">The decimal representation of the total price for the item when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\" class=\"text-blue-600 hover:text-blue-800 underline\">item_price.pricing_model</a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value must be in major units of the <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "gifter" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages" : {
      "get" : {
        "summary" : "List hosted pages",
        "description" : "This API retrieves the list of hosted page resources.\n",
        "operationId" : "list_hosted_pages",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nUnique identifier generated for each hosted page requested.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"Edi69nxpu6BeGBd9Fjcd0tqCSwb0sRcuKa\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Edi69nxpu6BeGBd9Fjcd0tqCSwb0sRcuKa",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nType of the requested hosted page. Possible values are : checkout_new, checkout_existing, update_payment_method, manage_payment_sources, collect_now, extend_subscription, checkout_one_time, pre_cancel.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*type\\[is_not\\] = \"checkout_new\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "checkout_new",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`checkout_new\\` - Checkout new Subscription \\* \\`checkout_existing\\` - Checkout existing Subscription \\* \\`update_card\\` - \\*\\*(Deprecated)\\*\\* Update Card for a Customer \\* \\`update_payment_method\\` - Update Payment Method for a Customer \\* \\`manage_payment_sources\\` - Manage Payments for a customer \\* \\`collect_now\\` - Collect Unpaid Invoices for a Customer \\* \\`extend_subscription\\` - To extend a Subscription period \\* \\`checkout_one_time\\` - Checkout one time \\* \\`pre_cancel\\` - This hosted page is used to help retain customers when they attempt to cancel their account or subscription. \\* \\`view_voucher\\` - View Details of a voucher \\* \\`accept_quote\\` - Accept Quote\n",
                "enum" : [ "checkout_new", "checkout_existing", "update_payment_method", "manage_payment_sources", "collect_now", "extend_subscription", "checkout_one_time", "pre_cancel", "view_voucher", "accept_quote" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`checkout_new\\` - Checkout new Subscription \\* \\`checkout_existing\\` - Checkout existing Subscription \\* \\`update_card\\` - \\*\\*(Deprecated)\\*\\* Update Card for a Customer \\* \\`update_payment_method\\` - Update Payment Method for a Customer \\* \\`manage_payment_sources\\` - Manage Payments for a customer \\* \\`collect_now\\` - Collect Unpaid Invoices for a Customer \\* \\`extend_subscription\\` - To extend a Subscription period \\* \\`checkout_one_time\\` - Checkout one time \\* \\`pre_cancel\\` - This hosted page is used to help retain customers when they attempt to cancel their account or subscription. \\* \\`view_voucher\\` - View Details of a voucher \\* \\`accept_quote\\` - Accept Quote\n",
                "enum" : [ "checkout_new", "checkout_existing", "update_payment_method", "manage_payment_sources", "collect_now", "extend_subscription", "checkout_one_time", "pre_cancel", "view_voucher", "accept_quote" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`checkout_new\\` - Checkout new Subscription \\* \\`checkout_existing\\` - Checkout existing Subscription \\* \\`update_card\\` - \\*\\*(Deprecated)\\*\\* Update Card for a Customer \\* \\`update_payment_method\\` - Update Payment Method for a Customer \\* \\`manage_payment_sources\\` - Manage Payments for a customer \\* \\`collect_now\\` - Collect Unpaid Invoices for a Customer \\* \\`extend_subscription\\` - To extend a Subscription period \\* \\`checkout_one_time\\` - Checkout one time \\* \\`pre_cancel\\` - This hosted page is used to help retain customers when they attempt to cancel their account or subscription. \\* \\`view_voucher\\` - View Details of a voucher \\* \\`accept_quote\\` - Accept Quote\n",
                "enum" : [ "checkout_new", "checkout_existing", "update_payment_method", "manage_payment_sources", "collect_now", "extend_subscription", "checkout_one_time", "pre_cancel", "view_voucher", "accept_quote" ],
                "pattern" : "^\\[(checkout_new|checkout_existing|update_card|update_payment_method|manage_payment_sources|collect_now|extend_subscription|checkout_one_time|pre_cancel|view_voucher|accept_quote)(,(checkout_new|checkout_existing|update_card|update_payment_method|manage_payment_sources|collect_now|extend_subscription|checkout_one_time|pre_cancel|view_voucher|accept_quote))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`checkout_new\\` - Checkout new Subscription \\* \\`checkout_existing\\` - Checkout existing Subscription \\* \\`update_card\\` - \\*\\*(Deprecated)\\*\\* Update Card for a Customer \\* \\`update_payment_method\\` - Update Payment Method for a Customer \\* \\`manage_payment_sources\\` - Manage Payments for a customer \\* \\`collect_now\\` - Collect Unpaid Invoices for a Customer \\* \\`extend_subscription\\` - To extend a Subscription period \\* \\`checkout_one_time\\` - Checkout one time \\* \\`pre_cancel\\` - This hosted page is used to help retain customers when they attempt to cancel their account or subscription. \\* \\`view_voucher\\` - View Details of a voucher \\* \\`accept_quote\\` - Accept Quote\n",
                "enum" : [ "checkout_new", "checkout_existing", "update_payment_method", "manage_payment_sources", "collect_now", "extend_subscription", "checkout_one_time", "pre_cancel", "view_voucher", "accept_quote" ],
                "pattern" : "^\\[(checkout_new|checkout_existing|update_card|update_payment_method|manage_payment_sources|collect_now|extend_subscription|checkout_one_time|pre_cancel|view_voucher|accept_quote)(,(checkout_new|checkout_existing|update_card|update_payment_method|manage_payment_sources|collect_now|extend_subscription|checkout_one_time|pre_cancel|view_voucher|accept_quote))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "state",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nIndicating the current state of the hosted page resource. Possible values are : created, requested, succeeded, cancelled, acknowledged.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*state\\[is\\] = \"succeeded\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "succeeded",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`created\\` - Indicates the hosted page is just created. \\* \\`requested\\` - Indicates the hosted page is requested by the website \\* \\`succeeded\\` - Indicates the hosted page is successfully submitted by the user and response is sent to the return url. \\* \\`cancelled\\` - Indicates the page is cancelled by the end user after requesting it. \\* \\`failed\\` - \\*\\*(Deprecated)\\*\\* Indicates the page submition is failed and response is sent to the return url. \\* \\`acknowledged\\` - Indicates the succeeded hosted page is acknowledged.\n",
                "enum" : [ "created", "requested", "succeeded", "cancelled", "acknowledged" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`created\\` - Indicates the hosted page is just created. \\* \\`requested\\` - Indicates the hosted page is requested by the website \\* \\`succeeded\\` - Indicates the hosted page is successfully submitted by the user and response is sent to the return url. \\* \\`cancelled\\` - Indicates the page is cancelled by the end user after requesting it. \\* \\`failed\\` - \\*\\*(Deprecated)\\*\\* Indicates the page submition is failed and response is sent to the return url. \\* \\`acknowledged\\` - Indicates the succeeded hosted page is acknowledged.\n",
                "enum" : [ "created", "requested", "succeeded", "cancelled", "acknowledged" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`created\\` - Indicates the hosted page is just created. \\* \\`requested\\` - Indicates the hosted page is requested by the website \\* \\`succeeded\\` - Indicates the hosted page is successfully submitted by the user and response is sent to the return url. \\* \\`cancelled\\` - Indicates the page is cancelled by the end user after requesting it. \\* \\`failed\\` - \\*\\*(Deprecated)\\*\\* Indicates the page submition is failed and response is sent to the return url. \\* \\`acknowledged\\` - Indicates the succeeded hosted page is acknowledged.\n",
                "enum" : [ "created", "requested", "succeeded", "cancelled", "acknowledged" ],
                "pattern" : "^\\[(created|requested|succeeded|cancelled|failed|acknowledged)(,(created|requested|succeeded|cancelled|failed|acknowledged))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`created\\` - Indicates the hosted page is just created. \\* \\`requested\\` - Indicates the hosted page is requested by the website \\* \\`succeeded\\` - Indicates the hosted page is successfully submitted by the user and response is sent to the return url. \\* \\`cancelled\\` - Indicates the page is cancelled by the end user after requesting it. \\* \\`failed\\` - \\*\\*(Deprecated)\\*\\* Indicates the page submition is failed and response is sent to the return url. \\* \\`acknowledged\\` - Indicates the succeeded hosted page is acknowledged.\n",
                "enum" : [ "created", "requested", "succeeded", "cancelled", "acknowledged" ],
                "pattern" : "^\\[(created|requested|succeeded|cancelled|failed|acknowledged)(,(created|requested|succeeded|cancelled|failed|acknowledged))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this hosted page was last updated.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[on\\] = \"1490784813\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1490784813",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "hosted_page" : {
                            "$ref" : "#/components/schemas/HostedPage",
                            "description" : "Resource object representing hosted_page"
                          }
                        },
                        "required" : [ "hosted_page" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/view_voucher" : {
      "post" : {
        "summary" : "Create a hosted page to view Boleto vouchers",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code>\nresource of type, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">view_voucher</code>\n. When your end customers choose the Boleto payment method, you can generate a voucher for their pending invoice. Using this API, you can create a voucher_detail hosted page for your customers and email them a link to this hosted page. Your customers can review the voucher details on the page by clicking the link in the email.</p></div>",
        "operationId" : "create_a_hosted_page_to_view_boleto_vouchers",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "payment_voucher" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_voucher\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique [ID of the voucher](/docs/api/payment_vouchers/payment_voucher-object#id)\nwhich the customer wants to view.\n",
                        "maxLength" : 40,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "locale" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_voucher" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/collect_now" : {
      "post" : {
        "summary" : "Collect Now",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API generates a hosted page URL to collect due payments for the customer.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Chargebee.js <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">openCheckout()</code> not supported</strong></p><p class=\"mb-2\">The Chargebee.js <a href=\"https://www.chargebee.com/checkout-portal-docs/cbinstanceobj-api-ref.html#opencheckout-options\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">openCheckout()</code></a> function does not support Collect Now hosted pages. To open a Collect Now page, open the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">url</code> from this API&#x27;s response in a new browser tab or window (for example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">window.open(response.hosted_page.url, &#x27;_blank&#x27;)</code>).</p></div></div>",
        "operationId" : "collect_now",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Used to specify the destination URL to which a user is redirected after invoices are paid. The [transaction ID](/docs/api/transactions/transaction-object#id)\nof the transactions made through the Pay Now hosted page will be sent as return variables along with the URL.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the specified *credit amount*\n.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "payment_method_save_policy" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Determines whether the payment method should be saved to the customer's account.\n\\* ask -\n\nLet the customer choose whether to save the payment method.\n\\* never -\n\nDo not save the payment method.\n\\* always -\n\nAutomatically save the payment method to the customer's account for future use.\n",
                    "enum" : [ "always", "ask", "never" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the customer.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/accept_quote" : {
      "post" : {
        "summary" : "Accept a quote",
        "description" : "This API generates a hosted page URL for the customer to accept a quote. If the hosted page URL has expired, a new URL will be generated automatically.  \n* Customers with existing subscriptions can generate a quote for new subscriptions. However, Hosted page URL to accept a quote cannot be generated for new subscriptions in V1 and V2 hosted pages.\n",
        "operationId" : "accept_a_quote",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong> :</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Although the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons such as user closing the tab, or exiting the browser, and so on. If there is any synchronization that you are doing after the redirection, you will have to have a backup. Chargebee recommends listening to appropriate webhooks such as <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_created</code></a> or <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_generated</code></a> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\">Redirect URL configured in Settings &gt; Hosted Pages Settings would be overriden by this redirect URL.</li>\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Eg :</em> <em class=\"italic\">http://yoursite.com?id=**&amp;state=succeeded</em></li>\n<li class=\"text-base leading-relaxed\">This parameter is not applicable for iframe messaging.</li>\n</ul>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "layout" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The layout style for the hosted page.\n\\* full_page -\n\nDisplay the hosted page in a full page layout.\n\\* in_app -\n\nDisplay the hosted page in an in-app layout.\n",
                    "enum" : [ "in_app", "full_page" ],
                    "example" : null
                  },
                  "quote" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for quote\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The quote number. Acts as a identifier for quote and typically generated sequentially.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "quote" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/checkout_new_for_items" : {
      "post" : {
        "summary" : "Create checkout for a new subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Create a Chargebee hosted page to accept payment details from a customer and checkout a new subscription.\nThe following steps describe how best to use this API:\nCall this endpoint, providing <a href=\"/docs/api/item_prices\">item prices</a>, <a href=\"/docs/api/coupons\">coupons</a> and a host of other details such as billing and shipping addresses to be prefilled for the customer on the checkout page. You may also provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pass_thru_content</code> containing information and IDs from your systems that must be associated with the checkout page.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>\nThe first item price in the list (parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[item_price_id][0]</code>) must be an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of <a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p></div><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Send the customer to the Checkout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">url</code> received in the response.</li>\n<li class=\"text-base leading-relaxed\">Once they complete checkout, a new subscription is automatically created and the customer is redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code> attributes passed as query string parameters.\nAlthough the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons. Chargebee recommends listening to appropriate webhooks such as <code><a href=\"/docs/api/events\">subscription_created</a></code> or <code><a href=\"/docs/api/events\">invoice_generated</a></code> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/hosted_pages/retrieve-a-hosted-page\">Retrieve the hosted page</a> at this stage to get the subscription and invoice details.</li>\n</ul><h4>Customer resource lookup and creation</h4><p class=\"mb-2\">When the <code><a href=\"/docs/api/hosted_pages/create-checkout-for-a-new-subscription#customer_id\">customer[id]</a></code> parameter is provided and if a customer resource with the ID is found to be already created in Chargebee, the subscription is created under that customer resource. If not found, then a new customer resource is created with an autogenarated ID and the subscription is created under it.</p><h5>Multiple business entities</h5><p class=\"mb-2\">If multiple <a href=\"/docs/api/advanced-features#mbe-header-main\">business entities</a> are created for the site, the customer resource lookup and creation happen within the <a href=\"/docs/api/business_entities#mbe-terms\">context</a> of the business entity <a href=\"/docs/api/advanced-features#mbe-header-main\">specified</a> in this API call. If no business entity is specified, the customer resource lookup is performed within the <a href=\"/docs/api/business_entities#mbe-terms\">site context</a>, and if not found, the resource is created for the <a href=\"/docs/api/business_entities#mbe-terms\">default business entity</a> of the site.</p></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><h4>Billing address editing</h4></div><div class=\"use-case-description\"><p class=\"mb-2\">If the <a href=\"customers?prod_cat_ver=2#customer_billing_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code></a> attribute for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is already set, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> cannot be edited by the user during the Checkout session. To allow customers to update their billing address, use one of the following options:</p><h5>Chargebee Hosted Pages</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Integrate <a href=\"https://www.chargebee.com/checkout-portal-docs/cbportal-api-ref.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee.js</a> into your website or application. Use the <a href=\"https://www.chargebee.com/checkout-portal-docs/cbportal-api-ref.html#opensection-options-callbacks\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">openSection()</code></a> function with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">options.sectionType</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ADDRESS</code> to display the Customer Portal&#x27;s address section.</li>\n<li class=\"text-base leading-relaxed\">Integrate the <a href=\"https://www.chargebee.com/docs/billing/2.0/hosted-capabilities/portal-integration\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Customer Portal</a> into your website or application. The Portal enables customers to manage their address information.</li>\n</ul><h5>Customer API</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the <a href=\"/docs/api/customers/update-billing-info-for-a-customer\" class=\"text-blue-600 hover:text-blue-800 underline\">Update billing info API</a> and provide the appropriate <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> parameters.</li>\n</ul></div></div></div>",
        "operationId" : "create_checkout_for_a_new_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "layout" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Specifies the checkout layout that overrides the default checkout layout configured in the Checkout \\& Self-Serve Portal settings.\n\\* in_app -\n\nIndicates in-app checkout version\n\\* full_page -\n\nIndicates full page checkout version\n",
                    "enum" : [ "in_app", "full_page" ],
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Sets the [context]() for this operation to the [business entity](/docs/api/advanced-features) specified. Applicable only when multiple business entities have been created for the site. When this parameter is provided, the operation is able to read/write data associated only to the business entity specified. When not provided, the operation can read/write data for the entire site.  \n**Note**\n\nAn alternative way of passing this parameter is by means of a [custom HTTP header](/docs/api/advanced-features).  \n**See also**\n[Customer resource lookup and creation.](/docs/api/hosted_pages)\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of subscription billing cycles (including the first one) to [invoice in advance](https://www.chargebee.com/docs/advance-invoices.html)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nfor Calendar Billing. Only applicable when using Calendar Billing. The default value is that which has been configured for the site.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or [coupon codes](/docs/api/coupon_codes)\n.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong> :</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Although the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons such as user closing the tab, or exiting the browser, and so on. If there is any synchronization that you are doing after the redirection, you will have to have a backup. Chargebee recommends listening to appropriate webhooks such as <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_created</code></a> or <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_generated</code></a> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\">Redirect URL configured in Settings &gt; Hosted Pages Settings would be overriden by this redirect URL.</li>\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Eg :</em> <em class=\"italic\">http://yoursite.com?id=**&amp;state=succeeded</em></li>\n<li class=\"text-base leading-relaxed\">This parameter is not applicable for iframe messaging.</li>\n</ul>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "cancel_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customers will be redirected to this URL upon canceling checkout. The hosted page id and state will be passed as parameters to this URL.\n\n**Note**\n: - Cancel URL configured in Settings \\> Hosted Pages Settings would be overriden by this cancel URL.\n*Eg : http://yoursite.com?id=\\&state=cancelled*\n\n* This parameter is not applicable for iframe messaging and [in-app](https://www.chargebee.com/docs/2.0/checkout.html) checkout.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "pass_thru_content" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This attribute allows you to store custom information with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> object. You can use it to associate specific data with a hosted page session.\nFor example, you can store the ID of the marketing campaign that initiated the user session. After a successful checkout, when the customer is redirected, you can retrieve the hosted page ID from the <a href=\"/docs/api/hosted_pages/create-checkout-for-a-new-subscription#redirect_url\">redirect URL</a>&#x27;s query parameters. Using this ID, you can fetch the hosted page and perform actions related to the success of the marketing campaign.</p>",
                    "maxLength" : 2048,
                    "example" : null
                  },
                  "allow_offline_payment_methods" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Allow the customer to select an offline payment method during checkout. The choice of payment methods can be configured via the Chargebee UI.\n",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for a new subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">End of the trial period for the subscription. This overrides the trial period set for the plan-item. The value must be later than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\nSet it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nto have no trial period. This parameter overrides the <a href=\"/docs/api/item_prices/item_price-object#trial_period\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_trial_period</code></a>\ndirectly.</p>",
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the subscription is to start. If not provided, the subscription starts immediately. You can provide a value in the past as well. This is called backdating the subscription creation and is done when the subscription has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating is enabled for subscription creation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past, where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> cannot be earlier than 14th February.</li>\n</ul>",
                        "example" : null
                      },
                      "coupon" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The id of the coupon. For validating the coupon code provided by the user , use the following codes in combination with the param attribute in the error response.\n\n* **resource_not_found :** Returned if the coupon is not present.\n* **resource_limit_exhausted :** Returned if the coupon has expired or the maximum redemption for the coupon has already been reached.\n* **invalid_request :** Returned if the coupon is not applicable for the particular plan/addon.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "auto_collection" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n",
                        "enum" : [ "on", "off" ],
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "invoice_notes" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A customer-facing note added to all invoices associated with this subscription. This note is one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                        "maxLength" : 2000,
                        "example" : null
                      },
                      "po_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Purchase order number for this subscription.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unique identifier for the customer resource for which the subscription should be created.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong>\n<a href=\"/docs/api/hosted_pages\">Customer resource lookup and creation.</a></p></div>\n<p class=\"mb-2\">When not provided, a new customer is created with the ID set to the value provided for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[id]</code>. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[id]</code> is unavailable, then the customer ID is autogenerated.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the customer. If not provided it will be got from contact information entered in the hosted page\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the customer. If not provided it will be got from contact information entered in the hosted page\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Company name of the customer.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the customer\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "locale" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "taxability" : {
                        "type" : "string",
                        "default" : "taxable",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies if the customer is liable for tax</p>\n* exempt - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Customer is exempted from tax. When using Chargebee&#x27;s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li>\n<li class=\"text-base leading-relaxed\">However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code> attributes if you use Chargebee&#x27;s <a href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\" target=\"_blank\">AvaTax for Sales</a> or specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee&#x27;s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> based on the state/region/province of the taxable address.</li>\n</ul>\n* taxable - <p class=\"mb-2\">Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>.\nIn some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that&#x27;s not available either, the tax is taken as zero.</p>",
                        "enum" : [ "taxable", "exempt" ],
                        "example" : null
                      },
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The VAT/tax registration number for the customer. For customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n), the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>\ncan be overridden by setting\n<code><a href=\"/docs/api/customers/customer-object#vat_number_prefix\">vat_number_prefix</a></code>\n.</p>",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "is_einvoice_enabled" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Determines whether the customer is e-invoiced. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nor not set to any value, the customer is e-invoiced so long as e-invoicing is enabled for their country (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>\n). When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the customer is not e-invoiced even if e-invoicing is enabled for their country.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">It is possible to set a value for this flag even when E-Invoicing is disabled. However, it comes into effect only when E-Invoicing is enabled.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "example" : null
                      },
                      "entity_identifier_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "entity_identifier_standard" : {
                        "type" : "string",
                        "default" : "iso6523-actorid-upis",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nCurrently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "einvoicing_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines whether to send einvoice manually or automatic.\n\\* manual -\n\nWhen manual is selected the automatic e-invoice sending is disabled. Use this value to send e-invoice manually through UI or API.\n\\* automatic -\n\nUse this value to send e-invoice every time an invoice or credit note is created.\n\\* site_default -\n\nThe default value of the site which can be overridden at the customer level.\n",
                        "enum" : [ "automatic", "manual", "site_default" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the item price. The first item price in the list (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[item_price_id][0]</code>\n) must be an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nof <a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. This applies to plan-items.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "**Not supported**:\nThis parameter is not supported in the API. If included in a request, it will be ignored.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/hosted_pages)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "entity_identifiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for entity_identifiers\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[i]</code>\nin Chargebee. This is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[operation][i]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">update</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">delete</code>\n.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "scheme" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>.\nThis identifies the customer entity on the Peppol network. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10101010-STO-10</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be performed for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>\n* create - <p class=\"mb-2\">Creates a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer.</p>\n* update - <p class=\"mb-2\">Updates an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code>\nmust be provided in this case.</p>\n* delete - <p class=\"mb-2\">Deletes an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code>\nmust be provided in this case.</p>",
                          "enum" : [ "create", "update", "delete" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "standard" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>.\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "default" : "iso6523-actorid-upis",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "entity_identifiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/claim_gift" : {
      "post" : {
        "summary" : "Claim a Gift subscription",
        "description" : "This API generates a hosted page URL to claim a gifted subscription.\n",
        "operationId" : "claim_a_gift_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong> :</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Although the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons such as user closing the tab, or exiting the browser, and so on. If there is any synchronization that you are doing after the redirection, you will have to have a backup. Chargebee recommends listening to appropriate webhooks such as <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_created</code></a> or <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_generated</code></a> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\">Redirect URL configured in Settings &gt; Hosted Pages Settings would be overriden by this redirect URL.</li>\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Eg :</em> <em class=\"italic\">http://yoursite.com?id=**&amp;state=succeeded</em></li>\n<li class=\"text-base leading-relaxed\">This parameter is not applicable for iframe messaging.</li>\n</ul>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "gift" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for gift\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Uniquely identifies a gift\n",
                        "maxLength" : 150,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "locale" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "gift" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/checkout_existing_for_items" : {
      "post" : {
        "summary" : "Create checkout to update a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Create a Chargebee hosted page to accept payment details from a customer and checkout to update the subscription.</p><p class=\"mb-2\">The following steps describe how best to use this API:</p><p class=\"mb-2\">Provide <a href=\"/docs/api/item_prices\">item prices</a>, <a href=\"/docs/api/coupons\">coupons</a> and a host of other details such as billing and shipping addresses to be prefilled for the customer on the checkout page. You may also provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pass_thru_content</code> containing information and IDs from your systems that must be associated with the checkout page.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>\nThe first item price in the list (parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[item_price_id][0]</code>) must be an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of <a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p></div><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Send the customer to the Checkout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">url</code> received in the response. They can now add a payment method or use an existing one, to complete the checkout.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The subscription is updated and the customer is redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code> attributes passed as query string parameters.\nAlthough the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons. Chargebee recommends listening to appropriate webhooks such as <code><a href=\"/docs/api/events\">subscription_created</a></code> or <code><a href=\"/docs/api/events\">invoice_generated</a></code> to verify a successful checkout.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><a href=\"/docs/api/hosted_pages/retrieve-a-hosted-page\">Retrieve the hosted page</a> at this stage to get the subscription and invoice details.</p>\n</li>\n</ul></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><h4>Subscription and Ramps: Impact on existing scheduled changes</h4></strong><div class=\"impact-description\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the subscription has existing scheduled changes, the behavior depends on whether <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are enabled:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Ramps disabled</strong>: Any existing scheduled change on the subscription is deleted.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Ramps enabled with compatibility mode</strong>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If only one ramp is present:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the ramp was created using this API, the ramp is deleted.</li>\n<li class=\"text-base leading-relaxed\">If the ramp was created using the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a>, and the date-time of the new change is before the date-time of the ramp, then the ramp is moved to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code> status if the <a href=\"/docs/api/ramps/ramp-object#auto-draft\" class=\"text-blue-600 hover:text-blue-800 underline\">auto-draft conditions</a> are met.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">If multiple ramps are present: all ramps after the date-time of the new change are moved to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code> status if the <a href=\"/docs/api/ramps/ramp-object#auto-draft\" class=\"text-blue-600 hover:text-blue-800 underline\">auto-draft conditions</a> are met.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">For more details, see <a href=\"subscriptions#ramps-compat-mode\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps API compatibility mode</a>.</li>\n</ul></div></div></div>\n<div class=\"use-cases\"><h3>Use Cases</h3><div class=\"use-case\"><div class=\"use-case-title\"><h4>Edit billing address</h4></div><div class=\"use-case-description\"><p class=\"mb-2\">If the <a href=\"customers?prod_cat_ver=2#customer_billing_address\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code></a> attribute for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is already set, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> cannot be edited by the user during the Checkout session. To allow customers to update their billing address, use one of the following options:</p><h5>Chargebee Hosted Pages</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Integrate <a href=\"https://www.chargebee.com/checkout-portal-docs/cbportal-api-ref.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee.js</a> into your website or application. Use the <a href=\"https://www.chargebee.com/checkout-portal-docs/cbportal-api-ref.html#opensection-options-callbacks\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">openSection()</code></a> function with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">options.sectionType</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ADDRESS</code> to display the Customer Portal&#x27;s address section.</li>\n<li class=\"text-base leading-relaxed\">Integrate the <a href=\"https://www.chargebee.com/docs/billing/2.0/hosted-capabilities/portal-integration\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Customer Portal</a> into your website or application. The Portal enables customers to manage their address information.</li>\n</ul><h5>Customer API</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use the <a href=\"/docs/api/customers/update-billing-info-for-a-customer\" class=\"text-blue-600 hover:text-blue-800 underline\">Update billing info API</a> and provide the appropriate <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> parameters.</li>\n</ul></div></div></div>",
        "operationId" : "create_checkout_to_update_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "layout" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Specifies the checkout layout that overrides the default checkout layout configured in the Checkout \\& Self-Serve Portal settings.\n\\* in_app -\n\nIndicates in-app checkout version\n\\* full_page -\n\nIndicates full page checkout version\n",
                    "enum" : [ "in_app", "full_page" ],
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_items_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist for the subscription is replaced by the one provided. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nthen the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist gets added to the existing list.</p>",
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. The default value is the current date. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date. Moreover, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, and if the site is configured to set invoice dates to date of closing, then upon invoice closure, this date is changed to the invoice closing date.  taxes and line_item_taxes are computed based on the tax configuration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.\nWhen passing this parameter, the following prerequisites must be met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> must be in the past.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> is not more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\">It is not earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Billing cycles set for plan-item price is used by default.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles to <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\">invoice in advance</a>.\nIf a new term is started for the subscription due to this API call, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nis inclusive of this new term. See description for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>\nparameter to learn more about when a subscription term is reset.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "reactivate_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nand it is being reactivated via this operation, this is the date/time at which the subscription should be reactivated.\n<strong class=\"font-semibold\">Note:</strong>\nIt is recommended not to pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changed_scheduled_at</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>\ncan be backdated (set to a value in the past). Use backdating when the subscription has been reactivated already but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be enabled for subscription reactivation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the product catalog items of the subscription were changed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> cannot be earlier than 14th February.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nchosen for the site for calendar billing. Only applicable when using calendar billing.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or [coupon codes](/docs/api/coupon_codes)\n.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_coupon_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_ids</code>\nlist for the subscription is replaced by the one provided. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nthen the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_ids</code>\nlist gets added to the existing list.</p>",
                    "example" : null
                  },
                  "reactivate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This parameter is only relevant for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscriptions. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, it activates the canceled subscription; otherwise, subscription changes are applied without altering its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nAdditionally, if not explicitly set and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nprovided in the API differ from the existing items, the subscription will still be reactivated.</p>",
                    "example" : null
                  },
                  "force_term_reset" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: This parameter is relevant only for subscriptions with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>.</p></div>\n<p class=\"mb-2\">When you set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the subscription term resets to the date of the subscription change.\nBy default, if you change the plan-item price to another with the same billing period, the subscription term remains unchanged. For example, if the subscription renews on the 28th of every month, it will continue to renew on the 28th after the change.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: If the new plan-item price has a different billing period from the current plan-item price, the subscription term resets automatically, regardless of the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>.</p></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong>\nIf you pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>, you must also pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_usages</code> with the same value when <strong class=\"font-semibold\">all</strong> of the following site configuration settings are enabled:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/setting-up-usage-based-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Usage-based billing</a></li>\n<li class=\"text-base leading-relaxed\">Mid-term changes for usage-based items</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/metered_billing#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Invoice and charge for usage-based items when a subscription is changing</a></li>\n</ul></div>",
                    "example" : null
                  },
                  "change_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies when the subscription change takes effect.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"update-subscription-for-items#impact-scheduled-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Impacts on existing scheduled changes</a>.</li>\n</ul></div>\n* end_of_term - <div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThis option is deprecated; use the <a href=\"ramps#create_a_ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a> instead.</p></div>\n<p class=\"mb-2\">The change is carried out at the end of the current billing cycle of the subscription.</p>\n* specific_date - <div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated for scheduling changes</strong>\nThis option is deprecated for scheduling changes to occur at a future date-time, use the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a> instead.</p></div>\n<p class=\"mb-2\">Executes the change on a specified date. The change occurs as of the date-time defined in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>.</p>\n* immediately - <p class=\"mb-2\">The subscription change takes effect immediately.</p>",
                    "enum" : [ "immediately", "end_of_term", "specific_date" ],
                    "example" : null
                  },
                  "changes_scheduled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date-time at which the subscription change is to happen or has happened.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Required if</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>.</li>\n</ul></div>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated for scheduling changes</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Setting this parameter to a future date-time for scheduling changes is deprecated. Use the <a href=\"/docs/api/ramps/create-a-ramp\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a ramp API</a> instead.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Do not pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Backdated changes</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>can be set to a value in the past. This is called backdating the subscription change and is performed when the subscription change has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/backdating#configuring-backdated-subscription-actions-and-invoicing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for subscription change operations.</li>\n<li class=\"text-base leading-relaxed\">Only the following changes can be backdated:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">Subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the following changes were made:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n</ul></div>",
                    "example" : null
                  },
                  "invoice_usages" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Setting this attribute to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> will invoice the overages for the metered items during the subscription change.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong>\nIf you pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_usages</code>, you must also pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code> with the same value when <strong class=\"font-semibold\">all</strong> of the following site configuration settings are enabled:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/setting-up-usage-based-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Usage-based billing</a></li>\n<li class=\"text-base leading-relaxed\">Mid-term changes for usage-based items</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/metered_billing#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Invoice and charge for usage-based items when a subscription is changing</a></li>\n</ul></div>",
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong> :</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Although the customer will be redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons such as user closing the tab, or exiting the browser, and so on. If there is any synchronization that you are doing after the redirection, you will have to have a backup. Chargebee recommends listening to appropriate webhooks such as <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_created</code></a> or <a href=\"/docs/api/events\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_generated</code></a> to verify a successful checkout.</li>\n<li class=\"text-base leading-relaxed\">Redirect URL configured in Settings &gt; Hosted Pages Settings would be overriden by this redirect URL.</li>\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Eg :</em> <em class=\"italic\">http://yoursite.com?id=**&amp;state=succeeded</em></li>\n<li class=\"text-base leading-relaxed\">This parameter is not applicable for iframe messaging.</li>\n</ul>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "cancel_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customers will be redirected to this URL upon canceling checkout. The hosted page id and state will be passed as parameters to this URL.\n\n**Note**\n: - Cancel URL configured in Settings \\> Hosted Pages Settings would be overriden by this cancel URL.\n*Eg : http://yoursite.com?id=\\&state=cancelled*\n\n* This parameter is not applicable for iframe messaging and [in-app](https://www.chargebee.com/docs/2.0/checkout.html) checkout.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "pass_thru_content" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This attribute allows you to store custom information with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> object. You can use it to associate specific data with a hosted page session.\nFor example, you can store the ID of the marketing campaign that initiated the user session. After a successful checkout, when the customer is redirected, you can retrieve the hosted page ID from the <a href=\"/docs/api/hosted_pages/create-checkout-to-update-a-subscription#redirect_url\">redirect URL</a>&#x27;s query parameters. Using this ID, you can fetch the hosted page and perform actions related to the success of the marketing campaign.</p>",
                    "maxLength" : 2048,
                    "example" : null
                  },
                  "allow_offline_payment_methods" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Allow the customer to select an offline payment method during checkout. The choice of payment methods can be configured via the Chargebee UI.\n",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The new start date of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscription. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscriptions.</p>",
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The time at which the trial has ended or will end for the subscription. This is only allowed when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>.\nAlso, the value must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\n<strong class=\"font-semibold\">Note</strong>:\nThis parameter can be backdated (set to a value in the past) only when the subscription is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nDo this to keep a record of when the trial ended in case it ended at some point in the past. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>\nis backdated, the subscription immediately goes into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>\nstatus. This parameter overrides the <a href=\"/docs/api/item_prices/item_price-object#trial_period\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_trial_period</code></a>\ndirectly.</p>",
                        "example" : null
                      },
                      "auto_collection" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n",
                        "enum" : [ "on", "off" ],
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "invoice_notes" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A customer-facing note added to all invoices associated with this subscription. This note is one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                        "maxLength" : 2000,
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The VAT/tax registration number for the customer. For customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n), the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>\ncan be overridden by setting\n<code><a href=\"/docs/api/customers/customer-object#vat_number_prefix\">vat_number_prefix</a></code>\n.</p>",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "is_einvoice_enabled" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Determines whether the customer is e-invoiced. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nor not set to any value, the customer is e-invoiced so long as e-invoicing is enabled for their country (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>\n). When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the customer is not e-invoiced even if e-invoicing is enabled for their country.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">It is possible to set a value for this flag even when E-Invoicing is disabled. However, it comes into effect only when E-Invoicing is enabled.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "example" : null
                      },
                      "entity_identifier_scheme" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "entity_identifier_standard" : {
                        "type" : "string",
                        "default" : "iso6523-actorid-upis",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nCurrently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the item price. The first item price in the list (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[item_price_id][0]</code>\n) must be an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nof <a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site, the price or per-unit price of the item can be set here. The <a href=\"/docs/api/item_prices/item_price-object#price\">value set for the item price</a>\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price_in_decimal</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. This applies to plan-items.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "**Not supported**:\nThis parameter is not supported in the API. If included in a request, it will be ignored.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be carried out for the discount.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* add - <p class=\"mb-2\">The discount is attached to the subscription.</p>\n* remove - <p class=\"mb-2\">The discount (given by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[id]</code>\n) is removed from the subscription. Subsequent invoices will no longer have the discount applied. <strong class=\"font-semibold\">Tip:</strong>\nIf you want to replace a discount, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>\nit and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">add</code>\nanother in the same API call.</p>",
                          "enum" : [ "add", "remove" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "id" : {
                        "type" : "array",
                        "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type", "operation_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/hosted_pages)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "entity_identifiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for entity_identifiers\n",
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[i]</code>\nin Chargebee. This is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[operation][i]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">update</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">delete</code>\n.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 40,
                          "example" : null
                        },
                        "example" : null
                      },
                      "scheme" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>.\nThis identifies the customer entity on the Peppol network. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10101010-STO-10</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be performed for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>\n* create - <p class=\"mb-2\">Creates a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer.</p>\n* update - <p class=\"mb-2\">Updates an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code>\nmust be provided in this case.</p>\n* delete - <p class=\"mb-2\">Deletes an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nfor the customer. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier[id]</code>\nmust be provided in this case.</p>",
                          "enum" : [ "create", "update", "delete" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "standard" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>.\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "default" : "iso6523-actorid-upis",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "entity_identifiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/pre_cancel" : {
      "post" : {
        "summary" : "Create a pre-cancel hosted page",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code>\nresource of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pre_cancel</code>\n. Route canceling users to this page to provide them a retention experience and start saving revenue.\nThe hosted page is created in accordance with the retention experience <a href=\"https://www.chargebee.com/docs/growth/experiences/setting-up-cancel-pages\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">configured in the Chargebee Growth app</a>\n, along with the data provided as input to this endpoint. Call the endpoint before your customer clicks the <strong class=\"font-semibold\">Cancel</strong>\nbutton, and when they do, route them to the <code><a href=\"/docs/api/hosted_pages/hosted_page-object#url\">url</a></code>\nin the endpoint response.</p></div>",
        "operationId" : "create_a_pre-cancel_hosted_page",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "pass_thru_content" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Additional data to be passed to Chargebee Growth. Only the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pass_thru_content.custom</code> is sent to Chargebee Growth. It is sent as the value of the <a href=\"https://www.chargebee.com/checkout-portal-docs/cancel-page-api-ref.html#parameters\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code></a> property. The fields provided in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pass_thru_content.custom</code> must be preconfigured in Chargebee Growth.</p>\n<p class=\"mb-2\">Although only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pass_thru_content.custom</code> is sent to Chargebee Growth, all of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pass_thru_content</code> is stored by Chargebee Billing and is retrievable as an <a href=\"/docs/api/hosted_pages/hosted_page-object#pass_thru_content\">attribute</a> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code>.\n.</p>",
                    "maxLength" : 2048,
                    "example" : null
                  },
                  "cancel_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customer is sent to this URL if they finally decide to cancel the subscription, despite the attempt to retain them.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customer is sent to this URL upon successful retention. In other words, this is the page to which the customer is sent when they decide **not**\nto cancel the subscription.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique ID of the subscription which the customer wants to cancel.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/{hosted-page-id}/acknowledge" : {
      "post" : {
        "summary" : "Acknowledge a hosted page",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When a hosted page is successfully completed by the user and processed by Chargebee, its <a href=\"/docs/api/hosted_pages/hosted_page-object#state\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code></a>\nis automatically changed to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">succeeded</code>\n. Acknowledging a hosted page confirms that you have moved the customer details from Chargebee into your system and are ready to fulfill it. This API is used to acknowledge the hosted page in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">succeeded</code>\nstate and change its state to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">acknowledged</code>\n.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThe hosted page status must be succeeded for this API call to be allowed.</p></div>",
        "operationId" : "acknowledge_a_hosted_page",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "hosted-page-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/hosted-page-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/retrieve_agreement_pdf" : {
      "post" : {
        "summary" : "Retrieve Direct Debit Agreement PDF",
        "description" : "This is applicable only for Direct Debit via SEPA, Bacs, Bg Autogiro, BECS (for both Australia and New Zealand) and PAD. For Direct Debit, the customer needs to accept an agreement that allows the merchant to debit their bank account. This agreement PDF allows you to easily display scheme-rules compliant Direct Debit mandates to your customers.\n\nThis API retrieves the redirect link to the corresponding agreement for customers. The agreement PDF can be your \"Thank You\" page or sent by email to customers. Communicating this PDF to your customers is mandatory.\n\nCustomer locale is used to generate the PDF in the required language. If a customer language is not supported, the PDF is generated in English. Checkout the [list of languages](https://developer.gocardless.com/api-reference/#mandate-pdfs-create-a-mandate-pdf) supported by GoCardless.\n",
        "operationId" : "retrieve_direct_debit_agreement_pdf",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Payment source to be used for this payment.\n",
                    "maxLength" : 40,
                    "example" : null
                  }
                },
                "required" : [ "payment_source_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/{hosted-page-id}" : {
      "get" : {
        "summary" : "Retrieve a hosted page",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When you retrieve a hosted page whose <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">successful</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">content</code> attribute has the following objects based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> of the hosted page.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><tbody><tr><td><strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> of hosted page</strong></td><td style=\"text-align:center\"><strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">content</code> attribute constituents</strong></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_new</code></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>: the object representing the details of the <a href=\"/docs/api/customers/customer-object\">Customer</a> for whom the subscription was created.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>: the new Subscription object created.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>: the <a href=\"/docs/api/cards/card-object\">Card</a> object if the <a href=\"/docs/api/customers/customer-object#payment_method\">payment method</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> used was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>: the Invoice object, if an invoice was generated.</li>\n</ul></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_existing</code></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>: the object representing the details of the <a href=\"/docs/api/customers/customer-object\">Customer</a> whose subscription was changed.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>: the updated Subscription object created.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>: the <a href=\"/docs/api/cards/card-object\">Card</a> object if the <a href=\"/docs/api/customers/customer-object#payment_method\">payment method</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> used was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>: the Invoice object, if an invoice was generated for the subscription change.</li>\n</ul></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">update_payment_method</code></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>: the object representing the details of the <a href=\"/docs/api/customers/customer-object\">Customer</a> whose subscription was changed.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>: the <a href=\"/docs/api/cards/card-object\">Card</a> object if the new <a href=\"/docs/api/customers/customer-object#payment_method\">payment method</a> added was of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>.</li>\n</ul></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pre_cancel</code></td><td><p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">retention</code>: Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bypass</code> flag in this object to route the cancellation flow to the merchants&#x27; portal or the Chargebee Retention.-   If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bypass</code> flag is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, you should route the end-customers to your native cancellation flow.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bypass</code> flag is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>, you should route the end-customers to the hosted page URL.\n<strong class=\"font-semibold\">Note:</strong> Retention is currently in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">beta</code>. To enable Retention, <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support.</a></li>\n</ul></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">collect_now</code></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transactions</code>: this object should contain a list of\n<a href=\"/docs/api/transactions/transaction-object\">transactions</a> triggered from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">collect_now</code>\nhosted page. Each transaction in the list should be represented as an array that includes relevant information about the transaction, such as transaction ID, customer ID, amount, currency, payment method, and any other relevant details.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>: this object should contain the customer record associated with the transaction. The key, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code> is used to link the transaction to the corresponding customer record.</li>\n</ul></td></tr></tbody></table></div></div>",
        "operationId" : "retrieve_a_hosted_page",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "hosted-page-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/hosted-page-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/hosted_pages/manage_payment_sources" : {
      "post" : {
        "summary" : "Manage Payment Sources",
        "description" : "This API generates a hosted page URL to add new or update existing payment sources for the customer.\n",
        "operationId" : "manage_payment_sources",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "URL to redirect after payment method is added.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the customer.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "card" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for card\n",
                    "properties" : {
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account in which this payment source is stored.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "card" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Resource object representing hosted_page</p>"
                    }
                  },
                  "required" : [ "hosted_page" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/renewal_estimate" : {
      "get" : {
        "summary" : "Subscription renewal estimate",
        "description" : "This returns an estimate of the amount that will be charged when the subscription is billed next. The estimate is calculated based on the current recurring items of the subscription - plan, addons, and coupons.\n\nIn the response,\n\n* **estimate.subscription_estimate** has the current subscription details like its status, next billing date, and so on.\n\n**estimate.invoice_estimate**\nhas details of the invoice that will be generated at the next billing date.  \nThe generated invoice estimate will include all the balances - [Promotional Credits](https://www.chargebee.com/docs/promotional-credits.html)\n, Refundable Credits, and Excess Payments - if any. If you don't want these balances to be included you can specify 'false' for the parameter *use_existing_balances*\n.  \nTo exclude the [delayed charges](https://www.chargebee.com/docs/charges.html)\nfrom the invoice estimate, specify 'false' for the parameter *include_delayed_charges*\n.\n\n**Note:**\n\n* This API will not generate a renewal invoice if an [advance invoice](https://www.chargebee.com/docs/advance-invoices.html) is already present for the subscription.\n* For 'Non Renewing' subscriptions, only the [delayed charges](https://www.chargebee.com/docs/charges.html) will be included in the invoice estimate.\n* This API is not supported for 'Cancelled' subscriptions.\n* Only the subscription's charges will be included. If you have enabled the Consolidated invoicing feature, use the *Upcoming Invoices* estimate available for the Customer object to get the actual estimate invoice for the customer.\n",
        "operationId" : "subscription_renewal_estimate",
        "parameters" : [ {
          "name" : "include_delayed_charges",
          "in" : "query",
          "description" : "If true, all the unbilled charges will be included for the invoice estimate.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "use_existing_balances",
          "in" : "query",
          "description" : "<p class=\"mb-2\">The generated invoice_estimate/next_invoice_estimate will include all the balances - Promotional Credits, Refundable Credits, and Excess Payments - if any. If you don&#x27;t want these balances to be included you can specify &#x27;false&#x27; for the parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">use_existing_balances</code>.</p>",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "ignore_scheduled_cancellation",
          "in" : "query",
          "description" : "if true, ignores scheduled cancellation for non renewing subscription.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "ignore_scheduled_changes",
          "in" : "query",
          "description" : "If true, ignores all recurring charges scheduled during renewal.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "exclude_tax_type",
          "in" : "query",
          "description" : "Indicates whether tax calculation should be excluded for the operation. This attribute is applicable only when a third-party tax provider is configured. If no such provider is set up, this parameter will be ignored.\n\\* exclusive -\n\nExcludes only **exclusive** tax calculations, and only when exclusive taxes are applicable.\n\\* none -\n\nNo exclusions are applied. All applicable taxes are calculated based on the standard tax configuration.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "default" : "none",
            "deprecated" : false,
            "enum" : [ "exclusive", "none" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/estimates/create_subscription_for_items" : {
      "post" : {
        "summary" : "Estimate for creating a customer and subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Generates an estimate for creating a subscription when the customer does not exist in Chargebee. This estimate API can be called when the customer has not yet signed up and you want to preview how a new subscription would look like for them.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nEstimate operations do not make any changes in Chargebee; hence this API does not create an actual <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>\nrecord.</p></div><p class=\"mb-2\">The response contains one or more of the following objects:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_estimate</code>: The subscription details like the status of the subscription (such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>), next billing date, and so on.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_estimate</code>:The details of the immediate invoice, if there is one. If the subscription is created in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code> states, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_estimate</code> is unavailable as no immediate invoice is generated.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_invoice_estimate</code>:This is returned when an immediate invoice is not generated. It contains the details of the invoice that will be generated on the next billing date of the subscription.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charge_estimates</code>: This contains the details of charges that have not been invoiced. This is returned only if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> parameter is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul></div>",
        "operationId" : "estimate_for_creating_a_customer_and_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of subscription billing cycles (including the first one) to [invoice in advance](https://www.chargebee.com/docs/advance-invoices.html)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nfor Calendar Billing. Only applicable when using Calendar Billing. The default value is that which has been configured for the site.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. By default, it is the date of creation of the invoice or, when Metered Billing is enabled, it can be the date of closing the invoice. Provide this value to backdate the invoice (set the invoice date to a value in the past). Backdating an invoice is done for reasons such as booking revenue for a previous date or when the non-recurring charge is effective as of a past date.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the tax configuration as of this date. The date should not be more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</p>",
                    "example" : null
                  },
                  "client_profile_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the Client profile id for the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">End of the trial period for the subscription. This overrides the trial period set for the plan-item. The value must be later than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\nSet it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nto have no trial period.</p>",
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the subscription is to start. If not provided, the subscription starts immediately. You can provide a value in the past as well. This is called backdating the subscription creation and is done when the subscription has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating is enabled for subscription creation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past, where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> cannot be earlier than 14th February.</li>\n</ul>",
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "free_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The period of time by which the first term of the subscription is to be extended free-of-charge. The value must be in multiples of free_period_unit.\n",
                        "minimum" : 1,
                        "example" : null
                      },
                      "free_period_unit" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unit of time in multiples of which the free_period parameter is expressed. The value must be equal to or lower than the [period_unit](/docs/api/v2/pcv-1/plans/create-a-plan#period_unit)\nattribute of the [plan](/docs/api/v2/pcv-1/subscriptions/create-a-subscription#plan_id)\nchosen.\n\\* year -\n\nCharge based on year(s)\n\\* day -\n\nCharge based on day(s)\n\\* month -\n\nCharge based on month(s)\n\\* week -\n\nCharge based on week(s)\n",
                        "enum" : [ "day", "week", "month", "year" ],
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      },
                      "trial_end_action" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.\n\\* activate_subscription -\n\nThe subscription activates and charges are raised for non-metered items.\n\\* cancel_subscription -\n\nThe subscription cancels.\n\\* plan_default -\n\nThe action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n\\* site_default -\n\nThis is the default value. The action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n",
                        "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "VAT number of this customer. If not provided then taxes are not calculated for the estimate. Applicable only when taxes are configured for the EU or UK region. VAT validation is not done for this.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "registered_for_gst" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
                        "example" : null
                      },
                      "taxability" : {
                        "type" : "string",
                        "default" : "taxable",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies if the customer is liable for tax</p>\n* exempt - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Customer is exempted from tax. When using Chargebee&#x27;s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li>\n<li class=\"text-base leading-relaxed\">However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code> attributes if you use Chargebee&#x27;s <a href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\" target=\"_blank\">AvaTax for Sales</a> or specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee&#x27;s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> based on the state/region/province of the taxable address.</li>\n</ul>\n* taxable - <p class=\"mb-2\">Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>.\nIn some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that&#x27;s not available either, the tax is taken as zero.</p>",
                        "enum" : [ "taxable", "exempt" ],
                        "example" : null
                      },
                      "entity_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The exemption category of the customer, for USA and Canada. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n\\* med2 -\n\nUS Medical Device Excise Tax with taxable sales tax\n\\* med1 -\n\nUS Medical Device Excise Tax with exempt sales tax\n\\* b -\n\nState government\n\\* c -\n\nTribe/Status Indian/Indian Band\n\\* a -\n\nFederal government\n\\* f -\n\nReligious organization\n\\* g -\n\nResale\n\\* d -\n\nForeign diplomat\n\\* e -\n\nCharitable or benevolent organization\n\\* j -\n\nDirect pay permit\n\\* k -\n\nDirect mail\n\\* h -\n\nCommercial agricultural production\n\\* i -\n\nIndustrial production/manufacturer\n\\* n -\n\nLocal government\n\\* l -\n\nOther or custom\n\\* m -\n\nEducational organization\n\\* r -\n\nNon-resident\n\\* p -\n\nCommercial aquaculture\n\\* q -\n\nCommercial Fishery\n",
                        "enum" : [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p", "q", "r", "med1", "med2" ],
                        "example" : null
                      },
                      "exempt_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Any string value that will cause the sale to be exempted. Use this if your finance team manually verifies and tracks exemption certificates. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "exemption_details" : {
                        "type" : "array",
                        "deprecated" : false,
                        "description" : "Indicates the exemption information. You can customize customer exemption based on specific Location, Tax level (Federal, State, County and Local), Category of Tax or specific Tax Name. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\nTo know more about what values you need to provide, refer to this [Avalara's API document](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/exemption/)\n.\n",
                        "items" : {
                          "example" : null
                        },
                        "example" : null
                      },
                      "customer_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates the type of the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* business -\n\nWhen the purchase is made at a place of business\n\\* residential -\n\nWhen the purchase is made by a customer for home use\n\\* industrial -\n\nWhen the purchase is made by an industrial business\n\\* senior_citizen -\n\nWhen the purchase is made by a customer who meets the jurisdiction requirements to be considered a senior citizen and qualifies for senior citizen tax breaks\n",
                        "enum" : [ "residential", "business", "senior_citizen", "industrial" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/estimates)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the related tax field\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/estimates/payment_schedules" : {
      "post" : {
        "summary" : "Create a payment schedule estimate",
        "description" : "Generates an estimate without creating a payment schedule. This endpoint can be called when you want to preview details of a new payment schedule before actually creating one.\n",
        "operationId" : "estimates_for_payment_schedules",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "scheme_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique identifier for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule_scheme</code>.\nThis identifier is used to retrieve the payment schedule scheme, which is then applied to calculate the amount and date for the specified number of payment schedules.</p>",
                    "example" : null
                  },
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Defines the payment schedule amount set for an invoice. If this is not provided, the total <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>\nis used. This value is mandatory in case <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_id</code>\nis not provided.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "invoice_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Unique identifier of the invoice.\n",
                    "example" : null
                  },
                  "payment_schedule_start_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The date from which the payment schedule will start. This is applicable only when invoice_id is not provided. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_id</code>\nis provided, we will consider <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.due_date</code>\n.</p>",
                    "example" : null
                  }
                },
                "required" : [ "scheme_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/cancel_subscription_for_items_estimate" : {
      "post" : {
        "summary" : "Cancel subscription for items estimate",
        "description" : "Creates an estimate for [canceling](/docs/api/subscriptions/cancel-subscription-for-items) the specified subscription.\n",
        "operationId" : "cancel_subscription_for_items_estimate",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cancel_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Determines when to cancel the subscription.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">This parameter is not applicable.</p>\n* end_of_billing_term - <p class=\"mb-2\">This is used to cancel a subscription either at the end of the advance term, if it&#x27;s billed for future renewals or at the end of its current billing cycle</p>\n* end_of_term - <p class=\"mb-2\">This is used to cancel a subscription at the end of the current billing cycle</p>\n* immediately - <p class=\"mb-2\">This is used to cancel the subscription with immediate effect</p>\n* specific_date - <p class=\"mb-2\">This is used to cancel a subscription on a specified date. The change occurs as of the date/time defined in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code></p>",
                    "enum" : [ "immediately", "end_of_term", "specific_date", "end_of_billing_term" ],
                    "example" : null
                  },
                  "end_of_term" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">(Deprecated)</strong> Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> instead.\nApplicable only when the subscription does not have <a href=\"/docs/api/contract_terms\">contract terms</a>.\nSet this to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> if you want to cancel the subscription at the end of the current subscription billing cycle. The subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</p>",
                    "example" : null
                  },
                  "cancel_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies the date and time when the subscription should be canceled. Do not use this parameter when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>. Specifies the date and time to cancel the subscription and contract term.</p>\n<h5>Backdating</h5>\n<p class=\"mb-2\">You can set a past date to backdate the cancellation. Backdating is allowed only if the following conditions are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/backdating.html\" target=\"_blank\">Backdating</a> is enabled for subscription cancellation.</li>\n<li class=\"text-base leading-relaxed\">The current date does not exceed the <a href=\"https://www.chargebee.com/docs/2.0/backdating.html#configuring-backdated-subscription-actions-and-invoicing\" target=\"_blank\">backdating limit configured in Chargebee Billing</a>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the most recent change involving:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Addition/change/removal of plan or addon item prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of charge item prices.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">The date is not more than one billing period into the past. For example, if the plan&#x27;s billing period is two months and today is April 14, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code> cannot be earlier than February 14.</li>\n</ul>",
                    "example" : null
                  },
                  "credit_option_for_current_term_charges" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle credits for current term charges when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle credits for current term charges when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* none - <p class=\"mb-2\">No credits notes are created.</p>\n* full - <p class=\"mb-2\">Credits are issues for the full value of the current term charges.</p>\n* prorate - <p class=\"mb-2\">Prorated credits are issued.</p>",
                    "enum" : [ "none", "prorate", "full" ],
                    "example" : null
                  },
                  "unbilled_charges_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle unbilled charges when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle unbilled charges when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* invoice - <p class=\"mb-2\">An invoice is generated immediately with the unbilled charges.</p>\n* delete - <p class=\"mb-2\">The unbilled charges are deleted.</p>",
                    "enum" : [ "invoice", "delete" ],
                    "example" : null
                  },
                  "account_receivables_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle past due invoices when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle past due invoices when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* no_action - <p class=\"mb-2\">No action is taken.</p>\n* write_off - <p class=\"mb-2\">Applies excess payments and refundable credits to past due invoices. Any remaining balance is written off.\n<em class=\"italic\">Note: The credit note for the write-off is not included in the API response.</em></p>\n* schedule_payment_collection - <p class=\"mb-2\">Applies excess payments and refundable credits to past due invoices. If any amount remains and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>\n, the remaining amount is automatically charged to the available payment method.</p>",
                    "enum" : [ "no_action", "schedule_payment_collection", "write_off" ],
                    "example" : null
                  },
                  "refundable_credits_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<h5>If the subscription does not have a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle refundable credits when canceling immediately (i.e., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>). If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/cancellations.html#configure-subscription-cancellation\">site-level setting</a> is used.</p>\n<h5>If the subscription has a contract term:</h5>\n<p class=\"mb-2\">Specifies how to handle refundable credits when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_term_cancel_option</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminate_immediately</code>. If not specified, the <a href=\"https://www.chargebee.com/docs/2.0/contract-terms.html#configuring-contract-terms\">site-level setting</a> is used.</p>\n* schedule_refund - <p class=\"mb-2\">Refunds remaining credits after applying them to any past due invoices.</p>\n* no_action - <p class=\"mb-2\">No action is taken.</p>",
                    "enum" : [ "no_action", "schedule_refund" ],
                    "example" : null
                  },
                  "contract_term_cancel_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Required when the subscription has a contract term. Determines when to cancel the subscription along with the contract term.</p>\n* terminate_immediately - <p class=\"mb-2\">Cancels the subscription and contract term immediately. Sets the contract term&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminated</code> and collects any termination fee, if applicable.\nTo specify the termination fee, include a single object in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code> array. If not specified, the <a href=\"/docs/api/contract_terms\">default termination fee</a> is applied (if configured).</p>\n* end_of_contract_term - <p class=\"mb-2\">Prevents the contract term from renewing and schedules the subscription for cancellation at the end of the contract term.</p>\n* specific_date - <p class=\"mb-2\">Cancels the subscription and contract term on the date specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code>. Sets <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.\n<strong class=\"font-semibold\">Note</strong>: Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this option for your <a href=\"https://www.chargebee.com/docs/2.0/sites-intro.html\">Chargebee site</a>.</p>\n* end_of_subscription_billing_term - <p class=\"mb-2\">Cancels the subscription and contract term at the end of the current billing cycle. Sets <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.\n<strong class=\"font-semibold\">Note</strong>: Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this option for your <a href=\"https://www.chargebee.com/docs/2.0/sites-intro.html\">Chargebee site</a>.</p>",
                    "enum" : [ "terminate_immediately", "end_of_contract_term", "specific_date", "end_of_subscription_billing_term" ],
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. The default value is the current date. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date. Moreover, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, and if the site is configured to set invoice dates to date of closing, then upon invoice closure, this date is changed to the invoice closing date. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax</code>\nconfiguration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.\nWhen passing this parameter, the following prerequisites must be met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> must be in the past.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> is not more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\">It is not earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel_at</code>.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "cancel_reason_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Subscriptions \\> Subscription Cancellation**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the charge item_price that represents the termination fee.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity associated with the termination fee. Applicable only when the item_price for the termination charge is quantity-based.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "The termination fee. In case it is quantity-based, this is the fee per unit.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the termination fee-expressed in days-starting from the current date.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/resume_subscription_estimate" : {
      "post" : {
        "summary" : "Resume subscription estimate",
        "description" : "Generates an estimate for the 'resume subscription' operation. This is similar to the [Resume a subscription](/docs/api/subscriptions/resume-a-subscription) API, but the subscription will not be resumed. Only an estimate for this operation is created.\n\nIn the response,\n\n* **estimate.subscription_estimate** has the subscription details.\n\n**estimate.invoice_estimate**\nhas details of the invoice that will be generated immediately. This will not be present if no immediate invoice is generated for this operation. This will happen for in-term resumption++\n.  \n**++What is an \"in-term resumption\"?**\n\nAn \"in-term resumption\" is when the resumption happens within the billing term of the subscription.\n\n**estimate.next_invoice_estimate**\nhas details of the invoice that will be generated during the next billing date of this subscription. This will be present only if no immediate invoice is generated during this operation (scenario mentioned above) and this subscription has next billing.  \nThe generated invoice_estimate/next_invoice_estimate will include all the balances - [Promotional Credits](https://www.chargebee.com/docs/promotional-credits.html)\n, Refundable Credits, and Excess Payments - if any.\n",
        "operationId" : "resume_subscription_estimate",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "resume_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "List of options to resume the subscription.\n\\* immediately -\n\nResume immediately\n\\* specific_date -\n\nResume on a specific date\n",
                    "enum" : [ "immediately", "specific_date" ],
                    "example" : null
                  },
                  "charges_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Applicable when charges get added during this operation and **resume_option**\nis set as 'immediately'. Allows to raise invoice immediately or add them to unbilled charges.\n\\* add_to_unbilled_charges -\n\nAdd to unbilled charges\n\\* invoice_immediately -\n\nInvoice immediately\n",
                    "enum" : [ "invoice_immediately", "add_to_unbilled_charges" ],
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "resume_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "For a paused subscription, it is the date/time when the subscription is scheduled to resume. If the pause is for an indefinite period, this value is not returned.\n",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/estimates/create_invoice_for_items" : {
      "post" : {
        "summary" : "Create invoice for items estimate",
        "description" : "This endpoint creates an invoice estimate for non-recurring items.\n",
        "operationId" : "create_invoice_for_items_estimate",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the invoice amount.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "invoice_note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A note for this particular invoice. This, and [all other notes](/docs/api/invoices/invoice-object#notes)\nfor the invoice are displayed on the PDF invoice sent to the customer.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "remove_general_note" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nto remove the <a href=\"https://www.chargebee.com/docs/invoice_notes.html#adding-general-notes\" target=\"_blank\"><strong class=\"font-semibold\">general note</strong></a>\nfrom this invoice.</p>",
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of Coupons to be added.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "authorization_transaction_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Authorization transaction to be captured.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Payment source to be used for this payment.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "auto_collection" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customer level auto collection will be override if specified.\n\\* on -\n\nWhenever an invoice is created, an automatic attempt will be made to charge.\n\\* off -\n\nWhenever an invoice is created as payment due.\n",
                    "enum" : [ "on", "off" ],
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. By default, it is the date of creation of the invoice or, when Metered Billing is enabled, it can be the date of closing the invoice. Provide this value to backdate the invoice (set the invoice date to a value in the past). Backdating an invoice is done for reasons such as booking revenue for a previous date or when the non-recurring charge is effective as of a past date.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the tax configuration as of this date. The date should not be more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</p>",
                    "example" : null
                  },
                  "invoice" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice\n",
                    "properties" : {
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the customer for which this invoice needs to be created.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the subscription for which this invoice needs to be created. Should be specified if 'customer_id' is not specified.(not applicable for consolidated invoice)\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "po_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Purchase Order Number for this invoice.\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_prices\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "A unique ID for your system to identify the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Item price quantity\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/getting-started\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the item ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price to which this tier belongs.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "charges" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for charges\n",
                    "properties" : {
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the amount for the [one-time charge](https://www.chargebee.com/docs/charges.html#one-time-charges ).\nProvide the value in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this charge\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxable" : {
                        "type" : "array",
                        "description" : "The amount to be charged is taxable or not.\n",
                        "items" : {
                          "type" : "boolean",
                          "default" : true,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "tax_profile_id" : {
                        "type" : "array",
                        "description" : "Tax profile of the charge.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_tax_code" : {
                        "type" : "array",
                        "description" : "The Avalara tax codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "hsn_code" : {
                        "type" : "array",
                        "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "taxjar_product_code" : {
                        "type" : "array",
                        "description" : "The TaxJar product codes to which items are mapped to should be provided here. Applicable only if you use Chargebee's [TaxJar integration](https://www.chargebee.com/docs/taxjar.html)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n",
                          "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge starts.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "array",
                        "description" : "The time when the service period for the charge ends.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "notes_to_remove" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for notes_to_remove\n",
                    "properties" : {
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Type of entity to which the <a href=\"/docs/api/invoices/invoice-object#notes\">note</a>\nbelongs. To remove the general note, use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove_general_note</code>\nparameter.</p>\n* addon - <p class=\"mb-2\">Entity that represents an addon.</p>\n* addon_item_price - <p class=\"mb-2\">Indicates that this line item is based on addon Item Price</p>\n* charge_item_price - <p class=\"mb-2\">Indicates that this line item is based on charge Item Price</p>\n* plan - <p class=\"mb-2\">Entity that represents a plan.</p>\n* plan_item_price - <p class=\"mb-2\">Indicates that this line item is based on plan Item Price</p>\n* customer - <p class=\"mb-2\">Entity that represents a customer.</p>\n* subscription - <p class=\"mb-2\">Entity that represents a subscription of customer.</p>\n* coupon - <p class=\"mb-2\">Entity that represents a coupon.</p>",
                          "enum" : [ "customer", "subscription", "coupon", "plan_item_price", "addon_item_price", "charge_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "Unique identifier of the [note](/docs/api/invoices/invoice-object#notes)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "apply_on" ],
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the related tax field\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "charges" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "invoice" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "notes_to_remove" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/estimates/gift_subscription_for_items" : {
      "post" : {
        "summary" : "Gift subscription estimate for items",
        "description" : "This endpoint generates an estimate for a subscription that is intended to be a gift. The estimate provides details about the gift sender, gift recipient, address details of the recipient, and the type and details of subscription items included in the gift.\n",
        "operationId" : "gift_subscription_estimate_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "gift" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for gift\n",
                    "properties" : {
                      "scheduled_at" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.\n",
                        "example" : null
                      },
                      "auto_claim" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the claim happens automatically. When not passed, the default value in the site settings is used.</p>",
                        "example" : null
                      },
                      "no_expiry" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, indicates that the gift does not expire. Do not pass or pass as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nwhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_claim</code>\nis set.</p>",
                        "example" : null
                      },
                      "claim_expiry_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date until which the gift can be claimed. Must be set to a value after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheduled_at</code>.\nIf the gift is not claimed within <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">claim_expiry_date</code>\n, it will expire and the subscription will move to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nstate. When not passed, the value specified in the site settings will be used.\nPass as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">NULL</code>\nor do not pass when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_claim</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">no_expiry</code>\nare set.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "gifter" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for gifter\n",
                    "properties" : {
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Gifter customer id.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "signature" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Gifter sign-off name\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "note" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Personalized message for the gift.\n",
                        "maxLength" : 500,
                        "example" : null
                      },
                      "payment_src_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the payment source\n",
                        "maxLength" : 40,
                        "example" : null
                      }
                    },
                    "required" : [ "customer_id", "signature" ],
                    "example" : null
                  },
                  "gift_receiver" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for gift_receiver\n",
                    "properties" : {
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Receiver customer id.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the receiver as given by the gifter.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the receiver as given by the gifter,\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the receiver. All gift related emails are sent to this email.\n",
                        "maxLength" : 70,
                        "example" : null
                      }
                    },
                    "required" : [ "customer_id", "email", "first_name", "last_name" ],
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The gateway account used for performing the 3DS flow.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for 3DS transaction/verification object at the gateway. Can be passed only after successfully completing the 3DS flow. Refer [3DS implementation in Chargebee](/docs/api/3ds_card_payments)\nto find out the gateway-specific gw_token format. Applicable when you are using gateway APIs directly for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n\\* card -\n\ncard\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* after_pay -\n\nPayments made via Afterpay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* dotpay -\n\ndotpay\n\\* faster_payments -\n\nFaster Payments\n\\* upi -\n\nupi\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* payme -\n\nPayments made via PayMe\n\\* direct_debit -\n\ndirect_debit\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* bancontact -\n\nbancontact\n\\* go_pay -\n\nPayments made via GoPay\n\\* pay_by_bank -\n\nPay By Bank\n\\* google_pay -\n\ngoogle_pay\n\\* apple_pay -\n\napple_pay\n\\* trustly -\n\nTrustly\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* giropay -\n\ngiropay\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* venmo -\n\nVenmo\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* alipay -\n\nPayments made via Alipay.\n\\* sofort -\n\nsofort\n\\* amazon_payments -\n\nAmazon Payments\n\\* ideal -\n\nideal\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* pay_to -\n\nPayTo\n\\* boleto -\n\nboleto\n\\* pay_co -\n\nPayments made via PayCo\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier for Braintree permanent token. Applicable when you are using Braintree APIs for completing the 3DS flow.\n",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_com</code>: While adding a new payment method using <a href=\"/docs/api/payment_sources/create-using-permanent-token\">permanent token</a> or passing raw card details to Checkout.com, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> ID and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code> are required to support payments through <a href=\"https://www.checkout.com/docs/previous/payments/payment-methods/cards/dlocal\" target=\"_blank\">dLocal</a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country_of_residence</code>: This is required since the billing country associated with the user&#x27;s payment method may not be the same as their country of residence. Hence the user&#x27;s country of residence needs to be specified. The country code should be a <a href=\"https://docs.checkout.com/resources/codes/country-codes\" target=\"_blank\">two-character ISO code</a>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document ID is the user&#x27;s <a href=\"https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents\" target=\"_blank\">identification number</a> based on their country.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bluesnap</code>: While passing raw card details to BlueSnap, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, <a href=\"https://developers.bluesnap.com/docs/fraud-prevention\" target=\"_blank\">additional validation</a> is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your <a href=\"https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector\" target=\"_blank\">BlueSnap fraud session ID</a> required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">braintree</code>: While passing raw card details to Braintree, your <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code> and the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_merchant_id</code>: Your <a href=\"https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data\" target=\"_blank\">merchant ID</a> for fraud detection.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee_payments</code>: While passing raw card details to Chargebee Payments, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code> is added, additional validation is performed to avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud_session_id</code>: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bank_of_america</code>: While passing raw card details to Bank of America, your user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform additional validation and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ecentric</code>: This parameter is used to verify and process payment method details in Ecentric. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code> parameter is included, Chargebee will vault it / perform a lookup and verification against this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">merchant_id</code>: Merchant GUID where the card is vaulted or need to be vaulted.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ebanx</code>: While passing raw card details to EBANX, the user&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code> is required for some countries and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code> can be added to perform <a href=\"https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint\" target=\"_blank\">additional validation</a> and avoid fraudulent transactions.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payer</code>: User related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document</code>: Document is the user&#x27;s identification number based on their country.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fraud</code>: Fraud identification related information.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">device_session_id</code>: Session ID associated with the user&#x27;s device</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. The value is interpreted as per the type of <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> is enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/item_prices/item_price-object#price\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price.price</code></a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item in major units of the <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>. When not provided, the <a href=\"/docs/api/item_prices/item_price-object#price\" class=\"text-blue-600 hover:text-blue-800 underline\">value set for the item price</a> is used.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisites</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/price-override.html\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Price overriding</a> is enabled for the site.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Default value</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/item_prices/item_price-object#price_in_decimal\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price.price_in_decimal</code></a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The lowest value in the quantity tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be zero for the lowest tier.</li>\n<li class=\"text-base leading-relaxed\">For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit</code> of the next lower tier.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The highest value in the quantity tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not applicable for the highest tier.</li>\n<li class=\"text-base leading-relaxed\">Must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit</code> of the next higher tier.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/currencies).\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Must be zero for the lowest tier.</li>\n<li class=\"text-base leading-relaxed\">For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code> of the next lower tier.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Not applicable for the highest tier.</li>\n<li class=\"text-base leading-relaxed\">Must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code> of the next higher tier.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The decimal representation of the per-unit price for the tier when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\" class=\"text-blue-600 hover:text-blue-800 underline\">item_price.pricing_model</a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.</li>\n<li class=\"text-base leading-relaxed\">The decimal representation of the total price for the item when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\" class=\"text-blue-600 hover:text-blue-800 underline\">item_price.pricing_model</a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value must be in major units of the <a href=\"/docs/api/currencies\" class=\"text-blue-600 hover:text-blue-800 underline\">currency</a>.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-decimal-support#configuring-multi-decimal-support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-decimal</a> pricing is enabled.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "gift" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "gift_receiver" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "gifter" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/estimates/update_subscription_for_items" : {
      "post" : {
        "summary" : "Estimate for updating a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Returns an estimate for updating a subscription.</p><p class=\"mb-2\">In the response,</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/estimates/estimate-object\">subscription_estimate</a></code>: The details of the changed subscription such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, next billing date, and so on.</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/estimates/estimate-object\">invoice_estimate</a></code>:The details of the immediate invoice, if it is generated. An immediate invoice is not generated when:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term</code> parameter is true</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></li>\n<li class=\"text-base leading-relaxed\">No changes are made to the plan item prices or addon item prices in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>.</li>\n<li class=\"text-base leading-relaxed\">For changes such as <a href=\"https://www.chargebee.com/docs/proration.html#proration-mechanism_plan-quantity-downgrade-paid-invoice\" target=\"_blank\">quantity downgrades</a>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/estimates/estimate-object\">next_invoice_estimate</a></code>:The details of the invoice to be generated later (if any) on the occasion that no immediate invoice has been generated.</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/estimates/estimate-object\">credit_note_estimates</a></code>:The list of credit notes (if any) generated during this operation.</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/estimates/estimate-object\">unbilled_charge_estimates</a></code>: The details of charges that have not been invoiced. This is returned only if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> parameter is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\">The following conditions must be met or <strong class=\"font-semibold\">tax calculation</strong> is ignored:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxability</code> <a href=\"/docs/api/customers/customer-object#taxability\">attribute</a> for the customer is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\">Necessary parameters for tax calculation such as the following are passed: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer[vat_number]</code></li>\n</ul></div></div>",
        "operationId" : "estimate_for_updating_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "changes_scheduled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>, then set the date/time at which the subscription change is to happen or has happened.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Do not pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> parameter does not apply to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">po_number</code>; these parameters take effect <strong class=\"font-semibold\">immediately</strong> when scheduling a subscription update.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Backdated changes</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>can be set to a value in the past. This is called backdating the subscription change and is performed when the subscription change has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be enabled for subscription change operations.</li>\n<li class=\"text-base leading-relaxed\">Only the following changes can be backdated:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">Subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the following changes were made:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> cannot be earlier than 14th February.</li>\n</ul></div>",
                    "example" : null
                  },
                  "change_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the effective date for the subscription change.</p>\n* end_of_term - <p class=\"mb-2\">The change is carried out at the end of the current billing cycle of the subscription.</p>\n* specific_date - <p class=\"mb-2\">Executes the change on a specified date. The change occurs as of the date/time defined in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>.</p>\n* immediately - <p class=\"mb-2\">The change is carried out immediately.</p>",
                    "enum" : [ "immediately", "end_of_term", "specific_date" ],
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_items_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist for the subscription is replaced by the one provided. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nthen the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist gets added to the existing list.</p>",
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. The default value is the current date. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date. Moreover, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, and if the site is configured to set invoice dates to date of closing, then upon invoice closure, this date is changed to the invoice closing date.  taxes and line_item_taxes are computed based on the tax configuration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.\nWhen passing this parameter, the following prerequisites must be met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> must be in the past.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> is not more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\">It is not earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Billing cycles set for plan-item price is used by default.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles to <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\">invoice in advance</a>.\nIf a new term is started for the subscription due to this API call, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nis inclusive of this new term. See description for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>\nparameter to learn more about when a subscription term is reset.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "reactivate_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nand it is being reactivated via this operation, this is the date/time at which the subscription should be reactivated.\n<strong class=\"font-semibold\">Note:</strong>\nIt is recommended not to pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changed_scheduled_at</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>\ncan be backdated (set to a value in the past). Use backdating when the subscription has been reactivated already but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be enabled for subscription reactivation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the product catalog items of the subscription were changed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> cannot be earlier than 14th February.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nchosen for the site for calendar billing. Only applicable when using calendar billing.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or [coupon codes](/docs/api/coupon_codes)\n.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_coupon_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_ids</code>\nlist for the subscription is replaced by the one provided. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nthen the provided list gets added to the existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_ids</code>\n.</p>",
                    "example" : null
                  },
                  "prorate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: <a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-mechanism\" target=\"_blank\">Prorated credits or charges</a> are created as applicable for this change.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The subscription is changed without creating any credits or charges.</li>\n<li class=\"text-base leading-relaxed\">When not provided, the value configured in the <a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-for-subscription-change\" target=\"_blank\">site settings</a> is considered.</li>\n</ul>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caveat</strong></p><p class=\"mb-2\">For further changes within the same billing term, when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, <strong class=\"font-semibold\">credits</strong> are <strong class=\"font-semibold\">not created</strong> when <strong class=\"font-semibold\">all</strong> the conditions below hold true:</p><p class=\"mb-2\">An immediate previous change was made</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">prorate</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> and</li>\n<li class=\"text-base leading-relaxed\">no changes were made to the subscription&#x27;s billing term and</li>\n<li class=\"text-base leading-relaxed\">a change was made to either the subscription&#x27;s items or their prices.</li>\n</ul></div>",
                    "example" : null
                  },
                  "end_of_term" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> instead.</li>\n<li class=\"text-base leading-relaxed\">If you pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> wins.</li>\n</ul></div>\n<p class=\"mb-2\">Set this to true if you want the update to be applied at the end of the current subscription billing cycle.</p>",
                    "example" : null
                  },
                  "force_term_reset" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Say the subscription has the renewal date as 28th of every month. When the plan-item price of the subscription is set to one that has the same billing period as the current plan-item price, the subscription change does not change the term. In other words, the subscription still renews on the 28th. Passing this parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nwill have the subscription reset its term to the current date (provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term</code>\nis false).\n<strong class=\"font-semibold\">Note</strong>:\nWhen the new plan-item price has a billing period different from the current plan-item price of the subscription, the term is always reset, regardless of the value passed for this parameter.</p>",
                    "example" : null
                  },
                  "reactivate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscriptions. When passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the canceled subscription is activated; otherwise subscription changes are made without changing its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nIf not passed, subscription will be activated only if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nis passed.</p>",
                    "example" : null
                  },
                  "include_delayed_charges" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "If true, all the unbilled charges will be included for the invoice estimate.\n",
                    "example" : null
                  },
                  "use_existing_balances" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "The generated invoice_estimate/next_invoice_estimate will include all the balances - Promotional Credits, Refundable Credits, and Excess Payments - if any. If you don't want these balances to be included you can specify 'false' for the parameter *use_existing_balances*\n.\n",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "invoice_usages" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Setting this attribute to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> will invoice the overages for the metered item during subscription changes\n.</p>",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The new start date of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscription. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscriptions.</p>",
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The time at which the trial has ended or will end for the subscription. This is only allowed when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>.\nAlso, the value must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\n<strong class=\"font-semibold\">Note</strong>:\nThis parameter can be backdated (set to a value in the past) only when the subscription is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nDo this to keep a record of when the trial ended in case it ended at some point in the past. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>\nis backdated, the subscription immediately goes into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>\nstatus.</p>",
                        "example" : null
                      },
                      "auto_collection" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n",
                        "enum" : [ "on", "off" ],
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "free_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The period of time by which the first term of the subscription is to be extended free-of-charge. The value must be in multiples of free_period_unit.\n",
                        "minimum" : 1,
                        "example" : null
                      },
                      "free_period_unit" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unit of time in multiples of which the free_period parameter is expressed. The value must be equal to or lower than the [period_unit](/docs/api/v2/pcv-1/plans/create-a-plan#period_unit)\nattribute of the [plan](/docs/api/v2/pcv-1/subscriptions/create-a-subscription#plan_id)\nchosen.\n\\* year -\n\nCharge based on year(s)\n\\* day -\n\nCharge based on day(s)\n\\* month -\n\nCharge based on month(s)\n\\* week -\n\nCharge based on week(s)\n",
                        "enum" : [ "day", "week", "month", "year" ],
                        "example" : null
                      },
                      "trial_end_action" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.\n\\* activate_subscription -\n\nThe subscription activates and charges are raised for non-metered items.\n\\* cancel_subscription -\n\nThe subscription cancels.\n\\* plan_default -\n\nThe action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n\\* site_default -\n\nThis is the default value. The action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n",
                        "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "VAT number of this customer. If not provided then taxes are not calculated for the estimate. Applicable only when taxes are configured for the EU or UK region. VAT validation is not done for this.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "registered_for_gst" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_override" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_override\n",
                    "properties" : {
                      "max_excess_payment_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#excess_payments\">excess payments</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      },
                      "max_refundable_credits_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#refundable_credits\">refundable credits</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site, the price or per-unit price of the item can be set here. The <a href=\"/docs/api/item_prices/item_price-object#price\">value set for the item price</a>\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price_in_decimal</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "proration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only for item prices with:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n</ul></div>\n<p class=\"mb-2\">Specifies how to manage charges or credits for the addon item price for this subscription update estimate. You may use this parameter only if the change to the subscription takes effect <code><a href=\"/docs/api/subscriptions/update-subscription-for-items#change_option\">immediately</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you don&#x27;t provide a value, Chargebee determines the proration logic based on the following precedence: this parameter &gt; <code><a href=\"/docs/api/estimates/estimate-object\">prorate</a></code>\nparameter &gt; <code><a href=\"/docs/api/item_prices/item_price-object#proration_type\">item_price.proration_type</a></code></p><blockquote>\n<p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-for-subscription-change\" target=\"_blank\">site-wide proration</a>\nsetting.</p>\n</blockquote></div>\n<span featureId=\"cb-addon-proration\" isMicro=\"true\"></span>\n* none - <p class=\"mb-2\">Don&#x27;t apply any charges or credits for the addon.</p>\n* partial_term - <p class=\"mb-2\">Prorate the charges or credits for the rest of the current term.</p>\n* full_term - <p class=\"mb-2\">Charge the full price of the addon or give the full credit. Don&#x27;t apply any proration.</p>",
                          "enum" : [ "full_term", "partial_term", "none" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be carried out for the discount.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* add - <p class=\"mb-2\">The discount is attached to the subscription.</p>\n* remove - <p class=\"mb-2\">The discount (given by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[id]</code>\n) is removed from the subscription. Subsequent invoices will no longer have the discount applied. <strong class=\"font-semibold\">Tip:</strong>\nIf you want to replace a discount, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>\nit and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">add</code>\nanother in the same API call.</p>",
                          "enum" : [ "add", "remove" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "id" : {
                        "type" : "array",
                        "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type", "operation_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/estimates)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "billing_override" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/upcoming_invoices_estimate" : {
      "get" : {
        "summary" : "Upcoming invoices estimate",
        "description" : "Estimate of the upcoming scheduled invoices (subscription activations, renewals etc) of a customer. For now preview of the invoices generated on the immediate upcoming date is supported. Say a customer has couple of subscription renewals scheduled on *Jan,10th* and another subscription renewal scheduled on *Jan,15th* . This API gives the preview of all the invoices scheduled to be generated on *Jan,10th* (immediate upcoming date).\n\nIn the response:\n\n* **estimate.invoice_estimates\\[\\]** has details of the invoices scheduled to be generated.\n\n**Note:** If *consolidated invoicing* is enabled you may use this API to test whether upcoming renewals are consolidated.\n",
        "operationId" : "upcoming_invoices_estimate",
        "parameters" : [ {
          "name" : "include_usage_charges",
          "in" : "query",
          "description" : "<p class=\"mb-2\">When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_estimates[]</code> returned in the response includes usage-based line items, if any. These are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_estimates[].line_items[]</code> where <a href=\"/docs/api/estimates/estimate-object#invoice_estimate_line_items_metered\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[].metered</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">See also:</strong></p>\n<a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/link-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Pricing for usage-based line items</a>.</p></div>",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/regenerate_invoice_estimate" : {
      "post" : {
        "summary" : "Regenerate Invoice Estimate",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Regenerates the invoice for the current term of the subscription. The subscription must have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>. This operation is not allowed when any of the following conditions hold true for the subscription:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">An invoice exists for the current term and its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>.</li>\n<li class=\"text-base leading-relaxed\">There are <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\" rel=\"noopener noreferrer\">unbilled charges</a> for the current term.</li>\n<li class=\"text-base leading-relaxed\">The subscription has an <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\" rel=\"noopener noreferrer\">advance invoice</a>.</li>\n</ul><h4>Response</h4><p class=\"mb-2\">Returns an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">estimate</code> object with one of the following components depending on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_estimate</code> object that corresponds to the regenerated invoice.</li>\n<li class=\"text-base leading-relaxed\">If the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: a list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charge_estimate</code> objects corresponding to all the unbilled charges created for the current term of the subscription.</li>\n</ul></div>",
        "operationId" : "regenerate_invoice_estimate",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "date_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The start date of the period being invoiced. The default value is [current_term_start](/docs/api/subscriptions/subscription-object#current_term_start)\n.\n",
                    "example" : null
                  },
                  "date_to" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The end date of the period being invoiced. The default value is [current_term_end](/docs/api/subscriptions/subscription-object#current_term_end)\n.\n",
                    "example" : null
                  },
                  "prorate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Whether the charges should be prorated according to the term specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_from</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_to</code>.\nShould not be passed without <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_from</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_to</code>\n.</p>",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Only applicable when <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html \" target=\"_blank\">Consolidated Invoicing</a>\nis enabled for the customer. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto leave the current term charge for the subscription as <a href=\"https://www.chargebee.com/docs/unbilled-charges.html \" target=\"_blank\">unbilled</a>.\nOnce you have done this for all suitable subscriptions of the customer, call <a href=\"/docs/api/unbilled_charges/create-an-invoice-for-unbilled-charges\" target=\"_blank\">Create an invoice for unbilled charges</a>\nto invoice them.</p>",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/create_subscription_for_items_estimate" : {
      "post" : {
        "summary" : "Estimate for creating a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Generates an estimate without creating a subscription. This endpoint can be called when you want to preview details of a new subscription before actually creating one.</p><div class=\"alert alert-info\"><p class=\"mb-2\">The following conditions must be met or <strong class=\"font-semibold\">tax calculation</strong> is ignored:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxability</code> <a href=\"/docs/api/customers/customer-object#taxability\">attribute</a> for the customer is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code> is passed when needed for tax calculation.</li>\n</ul></div></div>",
        "operationId" : "estimate_for_creating_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "use_existing_balances" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "The generated invoice_estimate/next_invoice_estimate will include all the balances - Promotional Credits, Refundable Credits, and Excess Payments - if any. If you don't want these balances to be included you can specify 'false' for the parameter *use_existing_balances*\n.\n",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of subscription billing cycles (including the first one) to [invoice in advance](https://www.chargebee.com/docs/advance-invoices.html)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nfor Calendar Billing. Only applicable when using Calendar Billing. The default value is that which has been configured for the site.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. By default, it is the date of creation of the invoice or, when Metered Billing is enabled, it can be the date of closing the invoice. Provide this value to backdate the invoice (set the invoice date to a value in the past). Backdating an invoice is done for reasons such as booking revenue for a previous date or when the non-recurring charge is effective as of a past date.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the tax configuration as of this date. The date should not be more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</p>",
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">End of the trial period for the subscription. This overrides the trial period set for the plan-item. The value must be later than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\nSet it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nto have no trial period.</p>",
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the subscription is to start. If not provided, the subscription starts immediately. You can provide a value in the past as well. This is called backdating the subscription creation and is done when the subscription has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating is enabled for subscription creation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past, where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> cannot be earlier than 14th February.</li>\n</ul>",
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "free_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The period of time by which the first term of the subscription is to be extended free-of-charge. The value must be in multiples of free_period_unit.\n",
                        "minimum" : 1,
                        "example" : null
                      },
                      "free_period_unit" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unit of time in multiples of which the free_period parameter is expressed. The value must be equal to or lower than the [period_unit](/docs/api/v2/pcv-1/plans/create-a-plan#period_unit)\nattribute of the [plan](/docs/api/v2/pcv-1/subscriptions/create-a-subscription#plan_id)\nchosen.\n\\* year -\n\nCharge based on year(s)\n\\* day -\n\nCharge based on day(s)\n\\* month -\n\nCharge based on month(s)\n\\* week -\n\nCharge based on week(s)\n",
                        "enum" : [ "day", "week", "month", "year" ],
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      },
                      "trial_end_action" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.\n\\* activate_subscription -\n\nThe subscription activates and charges are raised for non-metered items.\n\\* cancel_subscription -\n\nThe subscription cancels.\n\\* plan_default -\n\nThe action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n\\* site_default -\n\nThis is the default value. The action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n",
                        "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_override" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_override\n",
                    "properties" : {
                      "max_excess_payment_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#excess_payments\">excess payments</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      },
                      "max_refundable_credits_usage" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#refundable_credits\">refundable credits</a>\nthat can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                        "minimum" : -1,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/estimates)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "billing_override" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/change_term_end_estimate" : {
      "post" : {
        "summary" : "Subscription change term end estimate",
        "description" : "Generates an estimate for the 'change term end' operation. This is similar to the [Change term end](/docs/api/subscriptions/change-term-end) API but the subscription's term end will not be changed, only an estimate for this operation is created. This is applicable only for subscriptions in 'in-trial', 'active' and 'non-renewing' states.\n\nIn the response,\n\n* **estimate.subscription_estimate** has the subscription details like the status of the subscription (in_trial, active, etc.), next billing date, and so on.\n* **estimate.invoice_estimate** has details of the invoice that will be generated immediately. This will not be present if no immediate invoice is generated for this operation. This will happen when\n  * *prorate* parameter is false, or\n  * *invoice_immediately* parameter is false, or\n  * subscription is in *in-trial* state\n* **estimate.credit_note_estimates\\[\\]** has details of the credit-notes that will get generated during this operation. This list will be empty if no credit-note gets generated during this operation.\n* **estimate.unbilled_charge_estimates\\[\\]** has details of the unbilled charges. This is returned only if *invoice_immediately* is set as false.\n",
        "operationId" : "subscription_change_term_end_estimate",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "term_ends_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The time at which the current term should end for this subscription.\n",
                    "example" : null
                  },
                  "prorate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Applicable for *active*\n/ *non_renewing*\nsubscriptions. If specified as *true*\nprorated charges / credits will be added during this operation.\n",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  }
                },
                "required" : [ "term_ends_at" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/pause_subscription_estimate" : {
      "post" : {
        "summary" : "Pause subscription estimate",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API provides an estimate of the details pertaining to the <code><a href=\"/docs/api/subscriptions/pause-a-subscription\">pause_subscription</a></code> operation. It returns attributes such as <code><a href=\"/docs/api/estimates/estimate-object#subscription_estimate_pause_date\">pause_date</a></code> and <code><a href=\"/docs/api/estimates/estimate-object#subscription_estimate_resume_date\">resume_date</a></code>. This is similar to the <a href=\"/docs/api/subscriptions/pause-a-subscription\">Pause a subscription</a> API with the exception that the subscription is not paused. Only an estimate for this operation is created.</p><p class=\"mb-2\">In the response,</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">estimate.subscription_estimate</strong> has the subscription details.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">estimate.invoice_estimate</strong> has details of the invoice that are generated immediately. This is not present if no immediate invoices are generated for this operation.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">estimate.credit_note_estimates[]</strong> has details of the credit notes that are generated during this operation. This list is empty if no credit notes are generated.</li>\n</ul></div>",
        "operationId" : "pause_subscription_estimate",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "pause_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">List of options to pause the subscription.</p>\n* billing_cycles - <p class=\"mb-2\">Pause at the end of the current term, and resume automatically after the number of billing cycles you specify in <code><a href=\"/docs/api/estimates/pause-subscription-estimate#subscription_skip_billing_cycles\">skip_billing_cycles</a></code></p>\n* immediately - <p class=\"mb-2\">Pause immediately</p>\n* end_of_term - <p class=\"mb-2\">Pause at the end of current term</p>\n* specific_date - <p class=\"mb-2\">Pause on a specific date</p>",
                    "enum" : [ "immediately", "end_of_term", "specific_date", "billing_cycles" ],
                    "example" : null
                  },
                  "unbilled_charges_handling" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Applicable when unbilled charges are present for the subscription and <code><a href=\"/docs/api/estimates/pause-subscription-estimate#pause_option\">pause_option</a></code> is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediately</code>. <strong class=\"font-semibold\">Note:</strong> On the invoice raised, an automatic charge is attempted on the payment method available, if customer&#x27;s auto-collection property is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>.</p>\n* invoice - <p class=\"mb-2\">Invoice charges\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> is chosen, an automatic charge is attempted on the payment method available if the customer has enabled auto-collection. If a payment collection fails or when auto-collection is not enabled, the invoice is closed as unpaid.</p>\n* no_action - <p class=\"mb-2\">Retain as unbilled\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">no_action</code> is chosen, charges are added to the resumption invoice.</p>",
                    "enum" : [ "no_action", "invoice" ],
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "pause_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When a pause has been scheduled, it is the date/time of scheduled pause. When the subscription is in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>\nstate, it is the date/time when the subscription was paused.</p>",
                        "example" : null
                      },
                      "resume_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "For a paused subscription, it is the date/time when the subscription is scheduled to resume. If the pause is for an indefinite period, this value is not returned.\n",
                        "example" : null
                      },
                      "skip_billing_cycles" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Number of billing cycles this subscription should be paused. The subscription resumes after the paused billing cycles end.\n",
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/advance_invoice_estimate" : {
      "post" : {
        "summary" : "Advance invoice estimate",
        "description" : "This API is used to generate an invoice estimate for preview. Estimate details include the number of billing cycles to be invoiced in advance, the number of billing cycles in one interval, advance invoicing schedules, and so on.\n",
        "operationId" : "advance_invoice_estimate",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "default" : 1,
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type = immediate</code>: the number of future billing cycles to be invoiced in advance. The invoicing is done for the <a href=\"/docs/api/subscriptions/subscription-object#remaining_billing_cycles\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a> of the subscription if that is less than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>.</li>\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type = fixed_intervals</code>: The number of future billing cycles in one <a href=\"/docs/api/advance_invoice_schedules\">interval</a>. The schedule is created such that the total number of billing cycles in the schedule does not exceed the <a href=\"/docs/api/subscriptions/subscription-object#remaining_billing_cycles\">remaining_billing_cycles</a> of the subscription.\n.</li>\n</ul>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Whether the charge should be invoiced immediately or added to <a href=\"/docs/api/unbilled_charges\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unbilled_charges</code></a>.\nApplicable only when <a href=\"/docs/api/subscriptions/charge-future-renewals#schedule_type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">immediate</code>\n.</p>",
                    "example" : null
                  },
                  "schedule_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The type of advance invoice or advance invoicing schedule.</p>\n* immediate - <p class=\"mb-2\">Charge immediately for the number of billing cycles specified by <a href=\"/docs/api/subscriptions/charge-future-renewals#terms_to_charge\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code></a>\n.</p>\n* specific_dates - <p class=\"mb-2\">Charge on <a href=\"/docs/api/subscriptions/charge-future-renewals#specific_dates_schedule_date\">specific dates</a>.\nFor each date, specify the <a href=\"/docs/api/subscriptions/charge-future-renewals#specific_dates_schedule_terms_to_charge\">number of billing cycles</a>\nto charge for. Up to 5 dates can be configured.</p>\n* fixed_intervals - <p class=\"mb-2\">Charge at fixed intervals of time. Specify the <a href=\"/docs/api/subscriptions/charge-future-renewals#terms_to_charge\">number of billing cycles</a>\nthat constitute an interval and the number of <a href=\"/docs/api/subscriptions/charge-future-renewals#fixed_interval_schedule_days_before_renewal\">days before each interval</a>\nthat the invoice should be generated. Also specify <a href=\"/docs/api/subscriptions/charge-future-renewals#fixed_interval_schedule_end_schedule_on\">when the schedule should end</a>\n.</p>",
                    "enum" : [ "immediate", "specific_dates", "fixed_intervals" ],
                    "example" : null
                  },
                  "fixed_interval_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for fixed_interval_schedule\n",
                    "properties" : {
                      "number_of_occurrences" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of advance invoices to generate. The schedule is created such that the total number of billing cycles in the schedule does not exceed the <a href=\"/docs/api/subscriptions/subscription-object#remaining_billing_cycles\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a>\nof the subscription.  This parameter is applicable only when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_end_schedule_on\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code></a>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">after_number_of_intervals</code></p>",
                        "minimum" : 1,
                        "example" : null
                      },
                      "days_before_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The number of days before each interval that advance invoices are generated.\n",
                        "minimum" : 1,
                        "example" : null
                      },
                      "end_schedule_on" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies when the schedule should end.</p>\n* after_number_of_intervals - <p class=\"mb-2\">Advance invoices are generated a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specified number of times</code></p>\n* subscription_end - <p class=\"mb-2\">Advance invoices are generated for as long as the subscription is active.</p>\n* specific_date - <p class=\"mb-2\">End the advance invoicing schedule on a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific date</code>\n.</p>",
                        "enum" : [ "after_number_of_intervals", "specific_date", "subscription_end" ],
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date when the schedule should end. Advance invoices are not generated beyond this date. It must be at least 1 day before the start of the last billing cycle of the subscription and also within 5 years from the current date. This parameter is only applicable when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_end_schedule_on\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code></a>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>\n.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "specific_dates_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for specific_dates_schedule\n",
                    "properties" : {
                      "terms_to_charge" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The number of billing cycles to charge for, on the date specified. Applicable only when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#schedule_type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code></a>\nis specific_dates.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique id of the member of the advance_invoice_schedule array which corresponds to the specific_dates_schedule that you intend to modify. Only applicable when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#schedule_type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "fixed_interval_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "specific_dates_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/create_subscription_quote_for_items" : {
      "post" : {
        "summary" : "Create a quote for subscription creation",
        "description" : "Create a quote for new subscription line items of a customer.\n",
        "operationId" : "create_a_quote_for_a_new_subscription_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The quote name will be used as the pdf name of the quote.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Notes specific to this quote that you want customers to see on the quote PDF.\n",
                    "maxLength" : 10000,
                    "example" : null
                  },
                  "expires_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Quotes will be valid till this date. After this quote will be marked as closed.\n",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of subscription billing cycles (including the first one) to [invoice in advance](https://www.chargebee.com/docs/advance-invoices.html)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nfor Calendar Billing. Only applicable when using Calendar Billing. The default value is that which has been configured for the site.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of <a href=\"/docs/api/coupons/coupon-object#id\">IDs</a> of the coupons to be applied. <a href=\"/docs/api/coupon_codes\">Coupon codes</a> are also supported.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Not applicable when Chargebee CPQ is enabled. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupons[]</code> array instead.</p></div>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "billing_start_option" : {
                    "type" : "string",
                    "default" : "on_specific_date",
                    "deprecated" : false,
                    "description" : "When the quote is converted, this attribute determines the date/time as of when the subscription start is to be carried out.  \n**Note**\n\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n\\* on_specific_date -\n\nUpon quote conversion, the subscription is scheduled to start on the specified date.\n\\* immediately -\n\nThe subscription starts immediately upon conversion of the quote to a subscription.\n",
                    "enum" : [ "immediately", "on_specific_date" ],
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "po_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Purchase order number for this subscription.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">End of the trial period for the subscription. This overrides the trial period set for the plan-item. The value must be later than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\nSet it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nto have no trial period.</p>",
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the subscription is to start or has started. If not provided, the subscription starts immediately on quote conversion. The quote can be converted on a date/time after this date. This is called backdating the subscription creation and is done when the subscription has already been provisioned but the conversion action has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating is enabled for subscription creation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[start_date]</code> cannot be earlier than 14th February.</li>\n</ul>",
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      },
                      "free_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The period of time by which the first term of the subscription is extended free of charge. The value is expressed in the time unit specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code>. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code> adds 3 free months to the first term of the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Prerequisite</strong></p>\nCan be used only when Chargebee CPQ is enabled. To request access, <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">contact Chargebee Support</a>.</p></div>",
                        "minimum" : 1,
                        "example" : null
                      },
                      "free_period_unit" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The time unit for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Prerequisite</strong></p>\nCan be used only when Chargebee CPQ is enabled. To request access, <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">contact Chargebee Support</a>.\n<p><strong class=\"font-semibold\">Constraint</strong></p>\nMust be equal to or lower than the <a href=\"/docs/api/item_prices#period_unit\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code></a> of the plan <a href=\"/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_items_item_price_id\" class=\"text-blue-600 hover:text-blue-800 underline\">item price</a> of the subscription.</p></div>\n* year - <p class=\"mb-2\">Charge based on year(s)</p>\n* day - <p class=\"mb-2\">Charge based on day(s)</p>\n* month - <p class=\"mb-2\">Charge based on month(s)</p>\n* week - <p class=\"mb-2\">Charge based on week(s)</p>",
                        "enum" : [ "day", "week", "month", "year" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address.\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The first name of the billing contact.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and all its sub-parameters apply only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which the item price belongs. Use this index to map <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> values to the correct ramp, as the target <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> may be part of multiple ramps.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the quote to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/quotes)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[ramp_tier_id][i]</code>. Since an item price can be part of multiple subscriptions ramps, this group ID specifies the ramp to which this tier information belongs.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupons" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "The [ID](/docs/api/coupons/coupon-object#id) of the coupon to be applied. [Coupon codes](/docs/api/coupon_codes) are not supported.  \n**Note**\n\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "coupons" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}" : {
      "get" : {
        "summary" : "Retrieve a quote",
        "description" : "Retrieves the quotes identified by the 'number' specified in the url.\n",
        "operationId" : "retrieve_a_quote",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_charge" : {
                      "$ref" : "#/components/schemas/QuotedCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_charge</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/update_status" : {
      "post" : {
        "summary" : "Update quote status",
        "description" : "Updates the status of the quote.\n",
        "operationId" : "update_quote_status",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The status to which the quote should be updated.\n\\* accepted -\n\nThe customer has accepted the quote.\n\\* closed -\n\nThe quote has been marked as closed.  \n**Note**\n\nNot applicable when Chargebee CPQ is enabled.\n\\* declined -\n\nThe customer declined/rejected the quote.\n\\* open -\n\nThe quote is either newly created, or has been approved but not yet sent to the customer.\n\\* proposed -\n\nThe quote has been shared with the customer via email or e-signature and is awaiting their response.  \n**Note**\n\nApplicable only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n\\* voided -\n\nThe quote has been invalidated and can no longer be acted upon.  \n**Note**\n\nApplicable only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n",
                    "enum" : [ "accepted", "declined", "proposed", "voided", "closed" ],
                    "example" : null
                  },
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An internal [comment](/docs/api/comments)\nto be added for this operation, to the quote. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing [Hosted Page](/docs/api/hosted_pages)\nor any document such as the [Quote PDF](/docs/api/quotes/retrieve-quote-as-pdf)\n.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "required" : [ "status" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_charge" : {
                      "$ref" : "#/components/schemas/QuotedCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_charge</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/extend_expiry_date" : {
      "post" : {
        "summary" : "Extend expiry date",
        "description" : "Can be used to extend the expiry date of a quote.\n",
        "operationId" : "extend_expiry_date",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "valid_till" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Quote will be valid till this date. After this date quote will be marked as closed.\n",
                    "example" : null
                  }
                },
                "required" : [ "valid_till" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_charge" : {
                      "$ref" : "#/components/schemas/QuotedCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_charge</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/edit_update_subscription_quote_for_items" : {
      "post" : {
        "summary" : "Edit a quote for subscription update",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Edits a quote for updating a subscription.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><h4>Quote and related resources</h4></strong><div class=\"impact-description\"><p class=\"mb-2\">If the quote is for a scheduled change, then the following resources are updated:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <a href=\"ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are disabled, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code> and the <a href=\"quoted_subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_subscription</code></a> are updated.</li>\n<li class=\"text-base leading-relaxed\">When <a href=\"ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are enabled with compatibility mode, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code>, the <a href=\"quoted_ramps\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_ramp</code></a>, and the <a href=\"quoted_subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_subscription</code></a> are updated.</li>\n</ul><p class=\"mb-2\">For more details, see <a href=\"subscriptions#ramps-compat-mode\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps API compatibility mode</a>.</p></div></div></div>",
        "operationId" : "edit_update_subscription_quote_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Notes specific to this quote that you want customers to see on the quote PDF.\n",
                    "maxLength" : 10000,
                    "example" : null
                  },
                  "expires_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Quotes will be valid till this date. After this quote will be marked as closed.\n",
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_items_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist for the subscription is replaced by the one provided. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nthen the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist gets added to the existing list.</p>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Billing cycles set for plan-item price is used by default.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles to <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\">invoice in advance</a>.\nIf a new term is started for the subscription due to this API call, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nis inclusive of this new term. See description for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>\nparameter to learn more about when a subscription term is reset.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "reactivate_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nand it is being reactivated via this operation, this is the date/time at which the subscription should be reactivated.\n<strong class=\"font-semibold\">Note:</strong>\nIt is recommended not to pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changed_scheduled_at</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>\ncan be backdated (set to a value in the past). Use backdating when the subscription has been reactivated already but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be enabled for subscription reactivation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the product catalog items of the subscription were changed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> cannot be earlier than 14th February.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nchosen for the site for calendar billing. Only applicable when using calendar billing.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of <a href=\"/docs/api/coupons/coupon-object#id\">IDs</a> of the coupons to be applied. <a href=\"/docs/api/coupon_codes\">Coupon codes</a> are also supported.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Not applicable when Chargebee CPQ is enabled. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupons[]</code> array instead.</p></div>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_coupon_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Should be true if the existing coupons should be replaced with the ones that are being passed.\n",
                    "example" : null
                  },
                  "change_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When the quote is converted, this attribute determines the date/time as of when the subscription change is to be carried out.</p>\n* end_of_term - <p class=\"mb-2\">The change is carried out at the end of the current billing cycle of the subscription.</p>\n* specific_date - <p class=\"mb-2\">The change is carried out as of the date specified under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\n.</p>\n* immediately - <p class=\"mb-2\">The change is carried out immediately.</p>",
                    "enum" : [ "immediately", "specific_date" ],
                    "example" : null
                  },
                  "changes_scheduled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>, then set the date-time at which the subscription change is to happen or has happened.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Do not pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> parameter does not apply to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">po_number</code>; these parameters take effect <strong class=\"font-semibold\">immediately</strong> when scheduling a subscription update.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Backdated changes</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>can be set to a value in the past. This is called backdating the subscription change and is performed when the subscription change has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/backdating#configuring-backdated-subscription-actions-and-invoicing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for subscription change operations.</li>\n<li class=\"text-base leading-relaxed\">Only the following changes can be backdated:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">Subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the following changes were made:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n</ul></div>",
                    "example" : null
                  },
                  "force_term_reset" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Applicable for 'Active' \\& 'Non Renewing' states alone. Generally, subscription's term will be reset (i.e current term is ended and a new term starts immediately) when a new plan having different billing frequency is specified in the input. For all the other cases, the subscription's term will remain intact. Now for this later scenario, if you want to force a term reset you can specify this param as 'true'.\n**Note**:\nSpecifying this value as 'false' has no impact on the default behaviour.\n",
                    "example" : null
                  },
                  "reactivate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Applicable only for cancelled subscriptions. Once this is passed as true, cancelled subscription will become active; otherwise subscription changes will be made but the subscription state will remain cancelled. If not passed, subscription will be activated only if there is any change in subscription data.\n",
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The new start date of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscription. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscriptions.</p>",
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The time at which the trial has ended or will end for the subscription. This is only allowed when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>.\nAlso, the value must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\n<strong class=\"font-semibold\">Note</strong>:\nThis parameter can be backdated (set to a value in the past) only when the subscription is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nDo this to keep a record of when the trial ended in case it ended at some point in the past. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>\nis backdated, the subscription immediately goes into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>\nstatus.</p>",
                        "example" : null
                      },
                      "auto_collection" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n",
                        "enum" : [ "on", "off" ],
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The first name of the billing contact.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThe parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and all its sub-parameters apply only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "VAT number of this customer. If not provided then taxes are not calculated for the estimate. Applicable only when taxes are configured for the EU or UK region. VAT validation is not done for this.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "registered_for_gst" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site, the price or per-unit price of the item can be set here. The <a href=\"/docs/api/item_prices/item_price-object#price\">value set for the item price</a>\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price_in_decimal</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which the item price belongs. Use this index to map <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> values to the correct ramp, as the target <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> may be part of multiple ramps.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the quote to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be carried out for the discount.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* add - <p class=\"mb-2\">The discount is attached to the subscription.</p>\n* remove - <p class=\"mb-2\">The discount (given by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[id]</code>\n) is removed from the subscription. Subsequent invoices will no longer have the discount applied. <strong class=\"font-semibold\">Tip:</strong>\nIf you want to replace a discount, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>\nit and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">add</code>\nanother in the same API call.</p>",
                          "enum" : [ "add", "remove" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The id of the discount to be removed. This parameter is only relevant when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[operation_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type", "operation_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/quotes)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[ramp_tier_id][i]</code>. Since an item price can be part of multiple subscriptions ramps, this group ID specifies the ramp to which this tier information belongs.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupons" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "The [ID](/docs/api/coupons/coupon-object#id) of the coupon to be applied. [Coupon codes](/docs/api/coupon_codes) are not supported.  \n**Note**\n\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "coupons" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes" : {
      "get" : {
        "summary" : "List quotes",
        "description" : "List all quotes.\n",
        "operationId" : "list_quotes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*deleted\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ' attribute will be '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* '.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe quote number. Acts as a identifier for quote and typically generated sequentially.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"123\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "123",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe identifier of the customer this quote belongs to.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*customer_id\\[is_not\\] = \"4gmiXbsjdm\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "4gmiXbsjdm",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nTo filter based on subscription_id.\nNOTE: Not to be used if *consolidated invoicing*\nfeature is enabled.\n**Supported operators :**\nis, is_not, starts_with, is_present, in, not_in\n\n**Example →**\n*subscription_id\\[is_not\\] = \"4gmiXbsjdm\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "4gmiXbsjdm",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nCurrent status of this quote. Possible values are : open, accepted, declined, invoiced, closed.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"open\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "open",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`open\\` - Open \\* \\`accepted\\` - Accepted. \\* \\`declined\\` - Declined. \\* \\`invoiced\\` - Invoiced \\* \\`closed\\` - Closed \\* \\`pending_approval\\` - Pending Approval \\* \\`approval_rejected\\` - Approval Rejected \\* \\`proposed\\` - Proposed. \\* \\`voided\\` - Voided. \\* \\`expired\\` - Expired\n",
                "enum" : [ "open", "accepted", "declined", "invoiced", "closed", "pending_approval", "approval_rejected", "proposed", "voided", "expired" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`open\\` - Open \\* \\`accepted\\` - Accepted. \\* \\`declined\\` - Declined. \\* \\`invoiced\\` - Invoiced \\* \\`closed\\` - Closed \\* \\`pending_approval\\` - Pending Approval \\* \\`approval_rejected\\` - Approval Rejected \\* \\`proposed\\` - Proposed. \\* \\`voided\\` - Voided. \\* \\`expired\\` - Expired\n",
                "enum" : [ "open", "accepted", "declined", "invoiced", "closed", "pending_approval", "approval_rejected", "proposed", "voided", "expired" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`open\\` - Open \\* \\`accepted\\` - Accepted. \\* \\`declined\\` - Declined. \\* \\`invoiced\\` - Invoiced \\* \\`closed\\` - Closed \\* \\`pending_approval\\` - Pending Approval \\* \\`approval_rejected\\` - Approval Rejected \\* \\`proposed\\` - Proposed. \\* \\`voided\\` - Voided. \\* \\`expired\\` - Expired\n",
                "enum" : [ "open", "accepted", "declined", "invoiced", "closed", "pending_approval", "approval_rejected", "proposed", "voided", "expired" ],
                "pattern" : "^\\[(open|accepted|declined|invoiced|closed|pending_approval|approval_rejected|proposed|voided|expired)(,(open|accepted|declined|invoiced|closed|pending_approval|approval_rejected|proposed|voided|expired))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`open\\` - Open \\* \\`accepted\\` - Accepted. \\* \\`declined\\` - Declined. \\* \\`invoiced\\` - Invoiced \\* \\`closed\\` - Closed \\* \\`pending_approval\\` - Pending Approval \\* \\`approval_rejected\\` - Approval Rejected \\* \\`proposed\\` - Proposed. \\* \\`voided\\` - Voided. \\* \\`expired\\` - Expired\n",
                "enum" : [ "open", "accepted", "declined", "invoiced", "closed", "pending_approval", "approval_rejected", "proposed", "voided", "expired" ],
                "pattern" : "^\\[(open|accepted|declined|invoiced|closed|pending_approval|approval_rejected|proposed|voided|expired)(,(open|accepted|declined|invoiced|closed|pending_approval|approval_rejected|proposed|voided|expired))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "date",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nCreation date of the quote. Typically this is the date on which quote is generated.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*date\\[on\\] = \"1435054328\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTo filter based on updated at. This attribute will be present only if the resource has been updated after 2016-09-28.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[on\\] = \"1243545465\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ndate\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"date\"*\n\nThis will sort the result based on the 'date' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "date" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "date" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "quote" : {
                            "$ref" : "#/components/schemas/Quote",
                            "description" : "Resource object representing quote"
                          },
                          "quoted_subscription" : {
                            "$ref" : "#/components/schemas/QuotedSubscription",
                            "description" : "Resource object representing quoted_subscription"
                          },
                          "quoted_ramp" : {
                            "$ref" : "#/components/schemas/QuotedRamp",
                            "description" : "Resource object representing quoted_ramp"
                          }
                        },
                        "required" : [ "quote" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/convert" : {
      "post" : {
        "summary" : "Convert a quote",
        "description" : "This API is to convert a quote to an invoice.\n",
        "operationId" : "convert_a_quote",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "invoice_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date. When not provided, the value is the same as current date. Moreover, if the invoice is created as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\n, and if the site is configured to set invoice dates to date of closing, then upon invoice closure, this date is changed to the invoice closing date. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxes</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item_taxes</code>\nare computed based on the tax configuration as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code>.\nWhen passing this parameter, the following prerequisites must be met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> must be in the past.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_date</code> is not more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.</li>\n<li class=\"text-base leading-relaxed\">The date is not earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_subscription.start_date</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_subscription.changes_scheduled_at</code> (whichever is applicable).</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "invoice_immediately" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If there are charges raised immediately for the subscription, this parameter specifies whether those charges are to be invoiced immediately or added to <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">unbilled charges</a>.\nThe default value is as per the <a href=\"https://www.chargebee.com/docs/unbilled-charges.html#configuration\" target=\"_blank\">site settings</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code>\nonly affects charges that are raised at the time of execution of this API call. Any charges scheduled to be raised in the future are not affected by this parameter.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "create_pending_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nautomatically for the subscription when it has one or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nitems. However, when there are no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nitems, you can pass this parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nto force all invoices (except the first) to be created as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>.\nThis is useful in the following scenarios:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When you manage metered billing at your end by calculating usage-based charges yourself and add them to the subscription as <a href=\"https://www.chargebee.com/docs/2.0/charges.html\" target=\"_blank\">one-time charges</a>.</li>\n<li class=\"text-base leading-relaxed\">When your workflow involves inspecting all charges before you close invoices.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">You must enable <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html\" target=\"_blank\">Metered Billing</a> for this parameter to be acceptable.</li>\n<li class=\"text-base leading-relaxed\">To create the first invoice also as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>, pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_invoice_pending</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "first_invoice_pending" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Non-metered items are billed at the beginning of a billing cycle while metered items are billed at the end. Consequently, the first invoice of the subscription contains only the non-metered items.</p>\n<p class=\"mb-2\">By passing this parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, you create the first invoice as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> allowing you to add the previous term&#x27;s metered charges to it before closing. This is useful when the subscription is moved to Chargebee from a different billing system. As applicable to all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> invoices, this invoice is also <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\">closed automatically</a> or via an <a href=\"/docs/api/invoices/close-a-pending-invoice\">API call</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">This parameter is passed only when there are metered items in the subscription or when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p></div>\n<p class=\"mb-2\">.</p>",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Applicable only for create subscription quote.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "auto_collection" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Applicable only for create subscription quote.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n",
                        "enum" : [ "on", "off" ],
                        "example" : null
                      },
                      "po_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Purchase order number for this subscription.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "auto_close_invoices" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\">auto-closing of invoices</a>\nis enabled for the site, you can pass this parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto prevent the automatic closing of invoices for this subscription. The value passed here takes precedence over the value stored at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>\n.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_charge" : {
                      "$ref" : "#/components/schemas/QuotedCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_charge</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    },
                    "subscription" : {
                      "$ref" : "#/components/schemas/Subscription",
                      "description" : "<p class=\"mb-2\">Resource object representing subscription</p>"
                    },
                    "invoice" : {
                      "$ref" : "#/components/schemas/Invoice",
                      "description" : "<p class=\"mb-2\">Resource object representing invoice</p>"
                    },
                    "credit_note" : {
                      "$ref" : "#/components/schemas/CreditNote",
                      "description" : "<p class=\"mb-2\">Resource object representing credit_note</p>"
                    },
                    "unbilled_charges" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing unbilled_charge</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/UnbilledCharge",
                        "description" : "Resource object representing unbilled_charge"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "customer", "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/delete" : {
      "post" : {
        "summary" : "Delete a quote",
        "description" : "Delete a quote using this API.\n",
        "operationId" : "delete_a_quote",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comment" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reason for deleting this transaction. This comment will be added to the associated entity.\n",
                    "maxLength" : 300,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_charge" : {
                      "$ref" : "#/components/schemas/QuotedCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_charge</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/edit_create_subscription_quote_for_items" : {
      "post" : {
        "summary" : "Edit a quote for subscription creation",
        "description" : "Changes the quote produced for creating a new subscription items\n",
        "operationId" : "edit_create_subscription_quote_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Notes specific to this quote that you want customers to see on the quote PDF.\n",
                    "maxLength" : 10000,
                    "example" : null
                  },
                  "expires_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Quotes will be valid till this date. After this quote will be marked as closed.\n",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of subscription billing cycles (including the first one) to [invoice in advance](https://www.chargebee.com/docs/advance-invoices.html)\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nfor Calendar Billing. Only applicable when using Calendar Billing. The default value is that which has been configured for the site.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of <a href=\"/docs/api/coupons/coupon-object#id\">IDs</a> of the coupons to be applied. <a href=\"/docs/api/coupon_codes\">Coupon codes</a> are also supported.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Not applicable when Chargebee CPQ is enabled. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupons[]</code> array instead.</p></div>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "billing_start_option" : {
                    "type" : "string",
                    "default" : "on_specific_date",
                    "deprecated" : false,
                    "description" : "When the quote is converted, this attribute determines the date/time as of when the subscription start is to be carried out.  \n**Note**\n\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n\\* on_specific_date -\n\nUpon quote conversion, the subscription is scheduled to start on the specified date.\n\\* immediately -\n\nThe subscription starts immediately upon conversion of the quote to a subscription.\n",
                    "enum" : [ "immediately", "on_specific_date" ],
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "po_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Purchase order number for this subscription.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">End of the trial period for the subscription. This overrides the trial period set for the plan-item. The value must be later than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\nSet it to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nto have no trial period.</p>",
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the subscription is to start or has started. If not provided, the subscription starts immediately on quote conversion. The quote can be converted on a date/time after this date. This is called backdating the subscription creation and is done when the subscription has already been provisioned but the conversion action has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating is enabled for subscription creation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[start_date]</code> cannot be earlier than 14th February.</li>\n</ul>",
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      },
                      "free_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The period of time by which the first term of the subscription is extended free of charge. The value is expressed in the time unit specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code>. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code> adds 3 free months to the first term of the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Prerequisite</strong></p>\nCan be used only when Chargebee CPQ is enabled. To request access, <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">contact Chargebee Support</a>.</p></div>",
                        "minimum" : 1,
                        "example" : null
                      },
                      "free_period_unit" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The time unit for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Prerequisite</strong></p>\nCan be used only when Chargebee CPQ is enabled. To request access, <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">contact Chargebee Support</a>.\n<p><strong class=\"font-semibold\">Constraint</strong></p>\nMust be equal to or lower than the <a href=\"/docs/api/item_prices#period_unit\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code></a> of the plan <a href=\"/quotes/edit-create-subscription-quote-for-items#subscription_items_item_price_id\" class=\"text-blue-600 hover:text-blue-800 underline\">item price</a> of the subscription.</p></div>\n* year - <p class=\"mb-2\">Charge based on year(s)</p>\n* day - <p class=\"mb-2\">Charge based on day(s)</p>\n* month - <p class=\"mb-2\">Charge based on month(s)</p>\n* week - <p class=\"mb-2\">Charge based on week(s)</p>",
                        "enum" : [ "day", "week", "month", "year" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The first name of the billing contact.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThe parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and all its sub-parameters apply only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "When [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site, the price or per-unit price of the item can be set here. The [value set for the item price](/docs/api/item_prices/item_price-object#price)\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which the item price belongs. Use this index to map <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> values to the correct ramp, as the target <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> may be part of multiple ramps.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the quote to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/quotes)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[ramp_tier_id][i]</code>. Since an item price can be part of multiple subscriptions ramps, this group ID specifies the ramp to which this tier information belongs.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupons" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "The [ID](/docs/api/coupons/coupon-object#id) of the coupon to be applied. [Coupon codes](/docs/api/coupon_codes) are not supported.  \n**Note**\n\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "coupons" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/update_subscription_quote_for_items" : {
      "post" : {
        "summary" : "Create a quote for subscription update",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a quote for updating a subscription.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><h4>Quote and related resources</h4></strong><div class=\"impact-description\"><p class=\"mb-2\">If the quote is for a scheduled change, then the following resources are created:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <a href=\"ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are disabled, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code> and a <a href=\"quoted_subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_subscription</code></a> are created.</li>\n<li class=\"text-base leading-relaxed\">When <a href=\"ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are enabled with compatibility mode, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code>, a <a href=\"quoted_ramps\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_ramp</code></a>, and a <a href=\"quoted_subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_subscription</code></a> are created.</li>\n</ul><p class=\"mb-2\">For more details, see <a href=\"subscriptions#ramps-compat-mode\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps API compatibility mode</a>.</p></div></div></div>",
        "operationId" : "create_a_quote_for_update_subscription_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The quote name will be used as the pdf name of the quote.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Notes specific to this quote that you want customers to see on the quote PDF.\n",
                    "maxLength" : 10000,
                    "example" : null
                  },
                  "expires_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Quotes will be valid till this date. After this quote will be marked as closed.\n",
                    "example" : null
                  },
                  "mandatory_items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Item ids of [mandatorily attached addons](/docs/api/attached_items)\nthat are to be removed from the subscription.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_items_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist for the subscription is replaced by the one provided. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nthen the provided <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nlist gets added to the existing list.</p>",
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Billing cycles set for plan-item price is used by default.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "terms_to_charge" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles to <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\">invoice in advance</a>.\nIf a new term is started for the subscription due to this API call, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nis inclusive of this new term. See description for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">force_term_reset</code>\nparameter to learn more about when a subscription term is reset.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "reactivate_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nand it is being reactivated via this operation, this is the date/time at which the subscription should be reactivated.\n<strong class=\"font-semibold\">Note:</strong>\nIt is recommended not to pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changed_scheduled_at</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>\ncan be backdated (set to a value in the past). Use backdating when the subscription has been reactivated already but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be enabled for subscription reactivation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the product catalog items of the subscription were changed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the plan in the subscription is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> cannot be earlier than 14th February.\n.</li>\n</ul>",
                    "example" : null
                  },
                  "billing_alignment_mode" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Override the [billing alignment mode](https://www.chargebee.com/docs/calendar-billing.html#alignment-of-billing-date)\nchosen for the site for calendar billing. Only applicable when using calendar billing.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n",
                    "enum" : [ "immediate", "delayed" ],
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of <a href=\"/docs/api/coupons/coupon-object#id\">IDs</a> of the coupons to be applied. <a href=\"/docs/api/coupon_codes\">Coupon codes</a> are also supported.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Not applicable when Chargebee CPQ is enabled. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupons[]</code> array instead.</p></div>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "replace_coupon_list" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Should be true if the existing coupons should be replaced with the ones that are being passed.\n",
                    "example" : null
                  },
                  "change_option" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When the quote is converted, this attribute determines the date/time as of when the subscription change is to be carried out.</p>\n* end_of_term - <p class=\"mb-2\">The change is carried out at the end of the current billing cycle of the subscription.</p>\n* specific_date - <p class=\"mb-2\">The change is carried out as of the date specified under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\n.</p>\n* immediately - <p class=\"mb-2\">The change is carried out immediately.</p>",
                    "enum" : [ "immediately", "specific_date" ],
                    "example" : null
                  },
                  "changes_scheduled_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>, then set the date-time at which the subscription change is to happen or has happened.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Do not pass this parameter along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> parameter does not apply to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_collection</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">po_number</code>; these parameters take effect <strong class=\"font-semibold\">immediately</strong> when scheduling a subscription update.</li>\n</ul></div>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Backdated changes</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>can be set to a value in the past. This is called backdating the subscription change and is performed when the subscription change has already been provisioned but its billing has been delayed. Backdating is allowed only when the following prerequisites are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating must be <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/backdating#configuring-backdated-subscription-actions-and-invoicing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">enabled</a> for subscription change operations.</li>\n<li class=\"text-base leading-relaxed\">Only the following changes can be backdated:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">Subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</li>\n<li class=\"text-base leading-relaxed\">The date is on or after the last date/time any of the following changes were made:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Changes in the recurring items or their prices.</li>\n<li class=\"text-base leading-relaxed\">Addition of non-recurring items.</li>\n</ul>\n</li>\n</ul></div>",
                    "example" : null
                  },
                  "force_term_reset" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Applicable for 'Active' \\& 'Non Renewing' states alone. Generally, subscription's term will be reset (i.e current term is ended and a new term starts immediately) when a new plan having different billing frequency is specified in the input. For all the other cases, the subscription's term will remain intact. Now for this later scenario, if you want to force a term reset you can specify this param as 'true'.\n**Note**:\nSpecifying this value as 'false' has no impact on the default behaviour.\n",
                    "example" : null
                  },
                  "reactivate" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Applicable only for cancelled subscriptions. Once this is passed as true, cancelled subscription will become active; otherwise subscription changes will be made but the subscription state will remain cancelled. If not passed, subscription will be activated only if there is any change in subscription data.\n",
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<span featureId=\"cb-net-d-payment-terms\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> This parameter applies only when Chargebee CPQ is enabled. To request access, please contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">support</a></p>",
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The new start date of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscription. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscriptions.</p>",
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The time at which the trial has ended or will end for the subscription. This is only allowed when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>.\nAlso, the value must not be earlier than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code>.\n<strong class=\"font-semibold\">Note</strong>:\nThis parameter can be backdated (set to a value in the past) only when the subscription is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nDo this to keep a record of when the trial ended in case it ended at some point in the past. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end</code>\nis backdated, the subscription immediately goes into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>\nstatus.</p>",
                        "example" : null
                      },
                      "auto_collection" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n",
                        "enum" : [ "on", "off" ],
                        "example" : null
                      },
                      "offline_payment_method" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* bank_transfer -\n\nBank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* boleto -\n\nBoleto\n\\* no_preference -\n\nNo Preference\n\\* sepa_credit -\n\nSEPA Credit\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* custom -\n\nCustom\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* cash -\n\nCash\n\\* check -\n\nCheck\n",
                        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "maximum" : 100,
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The first name of the billing contact.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and all its sub-parameters apply only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "VAT number of this customer. If not provided then taxes are not calculated for the estimate. Applicable only when taxes are configured for the EU or UK region. VAT validation is not done for this.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "registered_for_gst" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_items\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site, the price or per-unit price of the item can be set here. The <a href=\"/docs/api/item_prices/item_price-object#price\">value set for the item price</a>\nis used by default. Provide the value as a decimal string in major units of the currency. Can be provided only when <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price_in_decimal</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "trial_end" : {
                        "type" : "array",
                        "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                          "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which the item price belongs. Use this index to map <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> values to the correct ramp, as the target <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> may be part of multiple ramps.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the quote to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "operation_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The operation to be carried out for the discount.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* add - <p class=\"mb-2\">The discount is attached to the subscription.</p>\n* remove - <p class=\"mb-2\">The discount (given by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[id]</code>\n) is removed from the subscription. Subsequent invoices will no longer have the discount applied. <strong class=\"font-semibold\">Tip:</strong>\nIf you want to replace a discount, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>\nit and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">add</code>\nanother in the same API call.</p>",
                          "enum" : [ "add", "remove" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the discount to be removed. This parameter is only relevant when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[operation_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type", "operation_type" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price for which the tier price is being overridden.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/quotes)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ramp_tier_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/quoted_ramps\">ramp</a> to which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[ramp_tier_id][i]</code>. Since an item price can be part of multiple subscriptions ramps, this group ID specifies the ramp to which this tier information belongs.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 105,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupons" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "description" : "The [ID](/docs/api/coupons/coupon-object#id) of the coupon to be applied. [Coupon codes](/docs/api/coupon_codes) are not supported.  \n**Note**\n\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "start_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the start date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "end_date" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Specifies the end date for the coupon. The period of the coupon, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The parameter applies only when Chargebee CPQ is enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "coupons" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_items" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_subscription" : {
                      "$ref" : "#/components/schemas/QuotedSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_subscription</p>"
                    },
                    "quoted_ramp" : {
                      "$ref" : "#/components/schemas/QuotedRamp",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_ramp</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/quote_line_groups" : {
      "get" : {
        "summary" : "List quote line groups",
        "description" : "This API retrieves all the quote line groups and lineitems for a quote.\n",
        "operationId" : "list_quote_line_groups",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "quote_line_group" : {
                            "$ref" : "#/components/schemas/QuoteLineGroup",
                            "description" : "Resource object representing quote_line_group"
                          }
                        },
                        "required" : [ "quote_line_group" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/edit_for_charge_items_and_charges" : {
      "post" : {
        "summary" : "Edit a quote for charges and charge items",
        "description" : "Changes the quote produced for adding one-time charges and charge items.\n",
        "operationId" : "edit_quote_for_charge_items_and_charges",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase Order Number for this quote.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Notes specific to this quote that you want customers to see on the quote PDF.\n",
                    "maxLength" : 10000,
                    "example" : null
                  },
                  "expires_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Quotes will be valid till this date. After this quote will be marked as closed.\n",
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the quote.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "coupon" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The 'One Time' coupon to be applied.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of Coupons to be added.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of days within which the customer has to make payment for the invoice.  \n**Note**\n\nThe parameter applies only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team).\n",
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_prices\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "A unique ID for your system to identify the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Item price quantity\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/getting-started\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "Defines service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price to which this tier belongs.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "charges" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for charges\n",
                    "properties" : {
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the amount for the one-time charge. The value is in [major units of the currency](/docs/api/getting-started).\nApplicable only when multi-decimal pricing is enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this charge\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n",
                          "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period" : {
                        "type" : "array",
                        "description" : "Service period for charge\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the quote to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "apply_on" ],
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "The unique identifier belonging to a tax vendor when they are onboarded with Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the corresponding tax field.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "charges" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_charge" : {
                      "$ref" : "#/components/schemas/QuotedCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_charge</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/{quote-id}/pdf" : {
      "post" : {
        "summary" : "Retrieve a quote as PDF",
        "description" : "Retrieves the quote as a PDF. The returned URL is secure, allows download and expires in 60 minutes.\n",
        "operationId" : "retrieve_quote_as_pdf",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "quote-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/quote-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "consolidated_view" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "When true, the quote PDF has summary of all charges on the quote. When false, the quote PDF has a detailed view of charges grouped by charge event. This parameter does not affect one-time quotes.\n",
                    "example" : null
                  },
                  "disposition_type" : {
                    "type" : "string",
                    "default" : "attachment",
                    "deprecated" : false,
                    "description" : "Determines the pdf should be rendered as inline or attachment in the browser.\n\\* attachment -\n\nPDF is rendered as attachment in the browser\n\\* inline -\n\nPDF is rendered as inline in the browser\n",
                    "enum" : [ "attachment", "inline" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "download" : {
                      "$ref" : "#/components/schemas/Download",
                      "description" : "<p class=\"mb-2\">Resource object representing download</p>"
                    }
                  },
                  "required" : [ "download" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/quotes/create_for_charge_items_and_charges" : {
      "post" : {
        "summary" : "Create a quote for charges and charge items",
        "description" : "Creates a quote using charge-items and one-time charges.\n",
        "operationId" : "create_a_quote_for_charge_and_charge_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The quote name will be used as the pdf name of the quote.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Identifier of the customer for which the quote needs to be created.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "po_number" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Purchase Order Number for this quote.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Notes specific to this quote that you want customers to see on the quote PDF.\n",
                    "maxLength" : 10000,
                    "example" : null
                  },
                  "expires_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Quotes will be valid till this date. After this quote will be marked as closed.\n",
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the quote.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "coupon" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The 'One Time' coupon to be applied.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "coupon_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of Coupons to be added.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "net_term_days" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong>\nYou can use this parameter only when Chargebee CPQ is enabled. Contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team\">Chargebee Support</a> to request access.</p></div>",
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_prices\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "A unique ID for your system to identify the item price.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Item price quantity\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/getting-started\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "Defines service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The id of the item price to which this tier belongs.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "charges" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for charges\n",
                    "properties" : {
                      "amount" : {
                        "type" : "array",
                        "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the amount for the one-time charge. The value is in [major units of the currency](/docs/api/getting-started).\nApplicable only when multi-decimal pricing is enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "description" : "Description for this charge\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n",
                          "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "array",
                        "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period" : {
                        "type" : "array",
                        "description" : "Service period for charge\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the quote to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "apply_on" ],
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "The unique identifier belonging to a tax vendor when they are onboarded with Chargebee.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the corresponding tax field.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "charges" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "quote" : {
                      "$ref" : "#/components/schemas/Quote",
                      "description" : "<p class=\"mb-2\">Resource object representing quote</p>"
                    },
                    "quoted_charge" : {
                      "$ref" : "#/components/schemas/QuotedCharge",
                      "description" : "<p class=\"mb-2\">Resource object representing quoted_charge</p>"
                    }
                  },
                  "required" : [ "quote" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupons" : {
      "get" : {
        "summary" : "List coupons",
        "description" : "List all the available coupons that are created for a specific promotion or offers. You can find list of coupon codes that are currently active, expired, archived or deleted.\n",
        "operationId" : "list_coupons",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>\n<p class=\"mb-2\">.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">id[is] = &quot;OFF2008&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "OFF2008",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The display name used in web interface for identifying the coupon.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the name of the coupon set contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the name of the coupon set in the path parameter before making an API call.</p></div>\n<p class=\"mb-2\">.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">name[is_not] = &quot;Offer 10&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Offer 10",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "discount_type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe type of deduction. Possible values are : fixed_amount, percentage.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*discount_type\\[is\\] = \"fixed_amount\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "fixed_amount",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                "pattern" : "^\\[(fixed_amount|percentage|offer_quantity)(,(fixed_amount|percentage|offer_quantity))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                "pattern" : "^\\[(fixed_amount|percentage|offer_quantity)(,(fixed_amount|percentage|offer_quantity))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "duration_type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nSpecifies the time duration for which this coupon is attached to the subscription. Possible values are : one_time, forever, limited_period.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*duration_type\\[is\\] = \"forever\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "forever",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                "enum" : [ "one_time", "forever", "limited_period" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                "enum" : [ "one_time", "forever", "limited_period" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                "enum" : [ "one_time", "forever", "limited_period" ],
                "pattern" : "^\\[(one_time|forever|limited_period)(,(one_time|forever|limited_period))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                "enum" : [ "one_time", "forever", "limited_period" ],
                "pattern" : "^\\[(one_time|forever|limited_period)(,(one_time|forever|limited_period))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nStatus of the coupon. Possible values are : active, expired, archived, deleted.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is_not\\] = \"active\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                "pattern" : "^\\[(active|expired|archived|deleted|future)(,(active|expired|archived|deleted|future))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                "pattern" : "^\\[(active|expired|archived|deleted|future)(,(active|expired|archived|deleted|future))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "apply_on",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe amount on the invoice to which the coupon is applied. Possible values are : invoice_amount, each_specified_item.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*apply_on\\[is\\] = \"invoice_amount\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "invoice_amount",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                "enum" : [ "invoice_amount", "each_specified_item" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                "enum" : [ "invoice_amount", "each_specified_item" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                "enum" : [ "invoice_amount", "each_specified_item" ],
                "pattern" : "^\\[(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items)(,(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                "enum" : [ "invoice_amount", "each_specified_item" ],
                "pattern" : "^\\[(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items)(,(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this coupon is created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[before\\] = \"145222875\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "145222875",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTo filter based on updated at. This attribute will be present only if the resource has been updated after 2016-11-09.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[on\\] = \"1243545465\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "currency_code",
          "in" : "query",
          "description" : "optional, string filter\n\nThe currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) of the coupon. Applicable for *fixed_amount*\ncoupons alone.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*currency_code\\[is\\] = \"USD\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "USD",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "applicable_item_price_ids",
          "in" : "query",
          "description" : "optional, string filter\n\nList of itemPrice ids for which these coupons are applicable.\n\n**Supported operators :**\nin, is\n\n**Example →**\n*applicable_item_price_ids\\[is\\] = \"day-pass-USD\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "day-pass-USD",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "coupon" : {
                            "$ref" : "#/components/schemas/Coupon",
                            "description" : "Resource object representing coupon"
                          }
                        },
                        "required" : [ "coupon" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupons/{coupon-id}/update_for_items" : {
      "post" : {
        "summary" : "Update a coupon for items",
        "description" : "This API updates a coupon that is created for a specific promotion or offers.\n",
        "operationId" : "update_a_coupon_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The display name used in web interface for identifying the coupon.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the name of the coupon set contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the name of the coupon set in the path parameter before making an API call.</p></div>\n<p class=\"mb-2\">.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "invoice_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Display name used in invoice. If it is not configured then name is used in invoice.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "discount_type" : {
                    "type" : "string",
                    "default" : "percentage",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the type of discount to be applied.</p>\n* percentage - <p class=\"mb-2\">A percentage of the original price is deducted as a discount. The discount percentage is specified in <code><a href=\"/docs/api/coupons/update-a-coupon-for-items#discount_percentage\">discount_percentage</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#percentage-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code>\ncoupons.</p></div>\n* fixed_amount - <p class=\"mb-2\">A fixed amount is deducted as a discount. The discount amount is specified in <code><a href=\"/docs/api/coupons/update-a-coupon-for-items#discount_amount\">discount_amount</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#fixed-amount-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\ncoupons.</p></div>\n* offer_quantity - <p class=\"mb-2\">A specified number of units of the item price are offered for free. The number of free units is specified in <code><a href=\"/docs/api/coupons/update-a-coupon-for-items#discount_quantity\">discount_quantity</a></code>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\noption is valid only when <code><a href=\"/docs/api/coupons/update-a-coupon-for-items#apply_on\">apply_on</a></code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code>\nand the <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#offer-quantity-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\ncoupons.</p></div>",
                    "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                    "example" : null
                  },
                  "discount_amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "The value of the deduction. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code ([ISO 4217 format](https://www.chargebee.com/docs/2.0/supported-currencies.html)\n) of the coupon. Applicable for *fixed_amount*\ncoupons alone.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "discount_percentage" : {
                    "type" : "number",
                    "format" : "double",
                    "deprecated" : false,
                    "description" : "The percentage of the original amount that should be deducted from it.\n",
                    "maximum" : 100,
                    "minimum" : 0.01,
                    "example" : null
                  },
                  "discount_quantity" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the number of free units provided for the <a href=\"/docs/api/item_prices\">item price</a>\n, without affecting the total quantity sold. This parameter is applicable only when the <code><a href=\"/docs/api/coupons/update-a-coupon-for-items#discount_type\">discount_type</a></code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\n.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "apply_on" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The amount on the invoice to which the coupon is applied.</p>\n* invoice_amount - <p class=\"mb-2\">The coupon is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* each_unit_of_specified_items - <p class=\"mb-2\">Discount will be applied to each unit of plan and addon items specified.</p>\n* each_specified_item - <p class=\"mb-2\">Applies the coupon to specified items (plans, addons, or charges), with the discount applied to each matching <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>.</p>\n<p class=\"mb-2\">Requires applicability to be configured using <a href=\"/docs/api/coupons/update-a-coupon-for-items#item_constraints\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_constraints</code></a>—for example <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">all</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">criteria</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_ids</code>.</p>\n<p class=\"mb-2\">When you attach this coupon to a subscription, at least one of that subscription&#x27;s plans, addons, or charges must match those rules. If none do, the request fails.</p>\n* specified_items_total - <p class=\"mb-2\">Discount will be applied to the total of plan and addon items specified.</p>",
                    "enum" : [ "invoice_amount", "each_specified_item" ],
                    "example" : null
                  },
                  "duration_type" : {
                    "type" : "string",
                    "default" : "forever",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the time duration for which this coupon is attached to the subscription.</p>\n* forever - <p class=\"mb-2\">The coupon is attached to the subscription and applied on the invoices until explicitly removed.</p>\n* one_time - <p class=\"mb-2\">The coupon stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
                    "enum" : [ "one_time", "forever", "limited_period" ],
                    "example" : null
                  },
                  "duration_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">(Deprecated)</strong>\nThe duration of time in months for which the coupon is attached to the subscription. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis parameter has been deprecated. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ninstead.</p>",
                    "maximum" : 240,
                    "minimum" : 1,
                    "example" : null
                  },
                  "valid_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date from which the coupon can be applied to subscriptions.\n",
                    "example" : null
                  },
                  "valid_till" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Date upto which the coupon can be applied to new subscriptions.\n",
                    "example" : null
                  },
                  "max_redemptions" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Maximum number of times this coupon can be redeemed.  \n**Note:**\n\nIf not specified, the coupon can be redeemed an indefinite number of times.\n\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the coupon. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
                    "example" : null
                  },
                  "included_in_mrr" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The coupon is included in MRR calculations for your site. This attribute is only applicable for coupons of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type = one_time</code>\nand when the feature is enabled in Chargebee. Note: If the site-level setting is to exclude one-time coupons from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                    "example" : null
                  },
                  "period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The duration of time for which the coupon is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">duration_type</a></code>\nis <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">limited_period</a></code>\n.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unit of time for period. Applicable only when <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">duration_type</a></code>\nis <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">limited_period</a></code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "item_constraints" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_constraints\n",
                    "properties" : {
                      "constraint" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Constraint applicable for the item\n\\* specific -\n\nCoupon applicable to specific items.\n\\* all -\n\nCoupon applicable to all items.\n\\* criteria -\n\nCoupon applicable based on criteria.\n\\* none -\n\nCoupon not applicable to any items.\n",
                          "enum" : [ "none", "all", "specific", "criteria" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Item type for which this criteria is applicable for.\n\\* charge -\n\nCharge\n\\* plan -\n\nPlan\n\\* addon -\n\nAddon\n",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_ids" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">List of item price ids for which this coupon is applicable.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When specifying a value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_ids</code>, make sure that the value is wrapped in square brackets (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">[]</code>), for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">[cbdemo_advanced-USD-Daily]</code> instead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cbdemo_advanced-USD-Daily</code>; otherwise, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">param_wrong_value</code> error returns.</p><p class=\"mb-2\">For information about <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_ids</code>, refer to <em class=\"italic\">Defining Price Points</em> in <a href=\"https://www.chargebee.com/docs/2.0/plans.html#defining-price-points-for-plan\" target=\"_blank\">Plans</a>, <a href=\"https://www.chargebee.com/docs/2.0/addons.html#defining-price-points-for-an-addon\" target=\"_blank\">Addons</a>, and <a href=\"https://www.chargebee.com/docs/2.0/charges.html#defining-price-points-for-a-charge\" target=\"_blank\">Charges</a>.</p></div>",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "constraint", "item_type" ],
                    "example" : null
                  },
                  "item_constraint_criteria" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_constraint_criteria\n",
                    "properties" : {
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Item type for which this criteria is applicable for.\n\\* charge -\n\nCharge is a type of item\n\\* plan -\n\nPlan is a type of item\n\\* addon -\n\nAddon is a type of item\n",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_family_ids" : {
                        "type" : "array",
                        "description" : "List of families for which this coupon is applicable.\n",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      },
                      "currencies" : {
                        "type" : "array",
                        "description" : "List of currencies ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) for which this coupon is applicable.\n",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_periods" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Pass the item price period units for this criterion. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nfollowed by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nSuch as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">[1 day,1 week,3 month,6 month]</code></p>",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupon_constraints" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_constraints</code>.\nMultiple <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_constraints</code>\ncan be passed by specifying unique indices.</p>",
                    "properties" : {
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The resource type for the constraint. This, along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\n, helps define the specific rule applied.</p>\n* customer - <p class=\"mb-2\">The constraint is based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords.</p>",
                          "enum" : [ "customer" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The type of coupon constraint.</p>\n* unique_by - <p class=\"mb-2\">Indicates - when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">that the coupon can be redeemed only once for every unique value of a specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nattribute. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nattribute is specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>\n, then the coupon can be redeemed only once for every unique value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.email</code>.\nIn other words, when there are multiple <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords with the same value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>\n, once the coupon has been redeemed for one of those customer records, no further redemptions of the coupon are allowed for any of those <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords.</li>\n</ul>\n* new_customer - <p class=\"mb-2\">The coupon is applicable only for new customer(s). A customer will be considered as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">new_customer</code>\nwhen they do not have any prior non-void, non-zero-dollar invoices.</p>\n* existing_customer - <p class=\"mb-2\">The coupon is applicable only for existing customer(s). A customer will be considered as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">existing_customer</code>\nwhen they have at least one non-void, non-zero-dollar invoice.</p>\n* max_redemptions - <p class=\"mb-2\">The coupon can be redeemed up to a set number of times for a specific resource type. The maximum redemptions are specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\n, and the resource type is specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code>\nthen the coupon can only be redeemed up to 10 times for any particular <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecord.</p>",
                          "enum" : [ "max_redemptions", "unique_by", "existing_customer", "new_customer" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the coupon constraint. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">constraints[type]</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unique_by</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">max_redemptions</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be any integer in the range <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon.max_redemptions</code>, inclusive.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">new_customer</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">existing_customer</code> then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">based_on_invoice</code>.</p>\n</li>\n</ul>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 65000,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "entity_type", "type" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "coupon_constraints" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_constraint_criteria" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_constraints" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon" : {
                      "$ref" : "#/components/schemas/Coupon",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon</p>"
                    }
                  },
                  "required" : [ "coupon" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupons/{coupon-id}/unarchive" : {
      "post" : {
        "summary" : "Unarchive a coupon",
        "description" : "This API unarchives a specific coupon using the coupon ID.\n",
        "operationId" : "unarchive_a_coupon",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon" : {
                      "$ref" : "#/components/schemas/Coupon",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon</p>"
                    }
                  },
                  "required" : [ "coupon" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupons/{coupon-id}/delete" : {
      "post" : {
        "summary" : "Delete a coupon",
        "description" : "If no Subscriptions/Invoices are linked to this Coupon, the Coupon will be deleted from your Chargebee site. This action cannot be undone.\n\nTo ensure that existing Subscriptions/Invoices are not affected, Coupons associated with them will not be deleted, but moved to \"Archived\" state. Once a Coupon has been archived, it cannot be edited or used again unless [unarchived](/docs/api/coupons/unarchive-a-coupon). Unused Coupons codes are deleted.\n",
        "operationId" : "delete_a_coupon",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon" : {
                      "$ref" : "#/components/schemas/Coupon",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon</p>"
                    }
                  },
                  "required" : [ "coupon" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupons/copy" : {
      "post" : {
        "summary" : "Copy a coupon",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Copies a coupon over from one site to another. Copying of <code><a href=\"/docs/api/coupons/coupon-object#status\">archived</a></code> coupons is not supported.</p><p class=\"mb-2\">The item prices that are linked to the coupon in the source site are also linked to the coupon in the destination site. However, this will only work if those item prices exist and with the same <code><a href=\"/docs/api/item_prices/item_price-object#id\">ids</a></code>, in the destination site. Hence, it is recommended that the item prices be copied over before copying the coupons.</p><p class=\"mb-2\">The value for <code><a href=\"/docs/api/coupons/coupon-object#redemptions\">redemptions</a></code> is not copied. It is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> for the newly created coupon. Hence, if such a coupon had <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code> in the source site due to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redemptions</code> having reached <code><a href=\"/docs/api/coupons/coupon-object#max_redemptions\">max_redemptions</a></code>, it&#x27;s <code><a href=\"/docs/api/coupons/coupon-object#status\">status</a></code> would be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> in the destination site.</p></div>",
        "operationId" : "copy_a_coupon",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "from_site" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Your Chargebee site name having the coupon to be copied.\n**Note:**\nUnless you are copying from a twin site (acme \\& acme-test are twin sites), [contact support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support)\nto have this allow-listed.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "id_at_from_site" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Id of the coupon to be copied. The new coupon created in this site will have the same Id.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Id of copied coupon in this site.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "for_site_merging" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "If copy action is performed as part of Chargebee site merge action, pass the value as true.\n**Note:**\nIf this parameter is passed true coupon state, redemptions, coupon set and coupon codes associated with this coupon will be copied.\n",
                    "example" : null
                  }
                },
                "required" : [ "from_site", "id_at_from_site" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon" : {
                      "$ref" : "#/components/schemas/Coupon",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon</p>"
                    }
                  },
                  "required" : [ "coupon" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupons/{coupon-id}" : {
      "get" : {
        "summary" : "Retrieve a coupon",
        "description" : "This API retrieves a specific coupon using the coupon ID.\n",
        "operationId" : "retrieve_a_coupon",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon" : {
                      "$ref" : "#/components/schemas/Coupon",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon</p>"
                    }
                  },
                  "required" : [ "coupon" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupons/create_for_items" : {
      "post" : {
        "summary" : "Create a coupon for items",
        "description" : "This API creates a new coupon for a specific promotion or offers.\n",
        "operationId" : "create_a_coupon_for_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>\n<p class=\"mb-2\">.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The display name used in web interface for identifying the coupon.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the name of the coupon set contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the name of the coupon set in the path parameter before making an API call.</p></div>\n<p class=\"mb-2\">.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "invoice_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Display name used in invoice. If it is not configured then name is used in invoice.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "discount_type" : {
                    "type" : "string",
                    "default" : "percentage",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the type of discount to be applied.</p>\n* percentage - <p class=\"mb-2\">A percentage of the original price is deducted as a discount. The discount percentage is specified in <code><a href=\"/docs/api/coupons/create-a-coupon-for-items#discount_percentage\">discount_percentage</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#percentage-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code>\ncoupons.</p></div>\n* fixed_amount - <p class=\"mb-2\">A fixed amount is deducted as a discount. The discount amount is specified in <code><a href=\"/docs/api/coupons/create-a-coupon-for-items#discount_amount\">discount_amount</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#fixed-amount-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\ncoupons.</p></div>\n* offer_quantity - <p class=\"mb-2\">A specified number of units of the item price are offered for free. The number of free units is specified in <code><a href=\"/docs/api/coupons/create-a-coupon-for-items#discount_quantity\">discount_quantity</a></code>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\noption is valid only when <code><a href=\"/docs/api/coupons/create-a-coupon-for-items#apply_on\">apply_on</a></code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code>\nand the <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#offer-quantity-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\ncoupons.</p></div>",
                    "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                    "example" : null
                  },
                  "discount_amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "The value of the deduction. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code ([ISO 4217 format](https://www.chargebee.com/docs/2.0/supported-currencies.html)\n) of the coupon. Applicable for *fixed_amount*\ncoupons alone.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "discount_percentage" : {
                    "type" : "number",
                    "format" : "double",
                    "deprecated" : false,
                    "description" : "The percentage of the original amount that should be deducted from it.\n",
                    "maximum" : 100,
                    "minimum" : 0.01,
                    "example" : null
                  },
                  "discount_quantity" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the number of free units provided for the <a href=\"/docs/api/item_prices\">item price</a>\n, without affecting the total quantity sold. This parameter is applicable only when the <code><a href=\"/docs/api/coupons/create-a-coupon-for-items#discount_type\">discount_type</a></code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\n.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "apply_on" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The amount on the invoice to which the coupon is applied.</p>\n* invoice_amount - <p class=\"mb-2\">The coupon is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* each_unit_of_specified_items - <p class=\"mb-2\">Discount will be applied to each unit of plan and addon items specified.</p>\n* each_specified_item - <p class=\"mb-2\">Applies the coupon to specified items (plans, addons, or charges), with the discount applied to each matching <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>.</p>\n<p class=\"mb-2\">Requires applicability to be configured using <a href=\"/docs/api/coupons/create-a-coupon-for-items#item_constraints\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_constraints</code></a>—for example <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">all</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">criteria</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_ids</code>.</p>\n<p class=\"mb-2\">When you attach this coupon to a subscription, at least one of that subscription&#x27;s plans, addons, or charges must match those rules. If none do, the request fails.</p>\n* specified_items_total - <p class=\"mb-2\">Discount will be applied to the total of plan and addon items specified.</p>",
                    "enum" : [ "invoice_amount", "each_specified_item" ],
                    "example" : null
                  },
                  "duration_type" : {
                    "type" : "string",
                    "default" : "forever",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the time duration for which this coupon is attached to the subscription.</p>\n* forever - <p class=\"mb-2\">The coupon is attached to the subscription and applied on the invoices until explicitly removed.</p>\n* one_time - <p class=\"mb-2\">The coupon stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
                    "enum" : [ "one_time", "forever", "limited_period" ],
                    "example" : null
                  },
                  "duration_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">(Deprecated)</strong>\nThe duration of time in months for which the coupon is attached to the subscription. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis parameter has been deprecated. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ninstead.</p>",
                    "maximum" : 240,
                    "minimum" : 1,
                    "example" : null
                  },
                  "valid_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date from which the coupon can be applied to subscriptions.\n",
                    "example" : null
                  },
                  "valid_till" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Date upto which the coupon can be applied to new subscriptions.\n",
                    "example" : null
                  },
                  "max_redemptions" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Maximum number of times this coupon can be redeemed.  \n**Note:**\n\nIf not specified, the coupon can be redeemed an indefinite number of times.\n\n.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the coupon. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
                    "example" : null
                  },
                  "included_in_mrr" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The coupon is included in MRR calculations for your site. This attribute is only applicable for coupons of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type = one_time</code>\nand when the feature is enabled in Chargebee. Note: If the site-level setting is to exclude one-time coupons from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                    "example" : null
                  },
                  "period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The duration of time for which the coupon is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">duration_type</a></code>\nis <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">limited_period</a></code>\n.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unit of time for period. Applicable only when <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">duration_type</a></code>\nis <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">limited_period</a></code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "default" : "active",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Status of the coupon.</p>\n* future - <p class=\"mb-2\">The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.</p>\n* expired - <p class=\"mb-2\">Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons/coupon-object#max_redemptions\">max_redemptions</a></code>\nor <code><a href=\"/docs/api/coupons/coupon-object#valid_till\">valid_till</a></code>\ndate is past. Existing associations remain unaffected.</p>\n* archived - <p class=\"mb-2\">Cannot be applied to a subscription. Existing associations remain unaffected.</p>\n* active - <p class=\"mb-2\">Can be applied to a subscription.</p>\n* deleted - <p class=\"mb-2\">Indicates the coupon has been deleted.</p>",
                    "enum" : [ "active", "archived" ],
                    "example" : null
                  },
                  "item_constraints" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_constraints\n",
                    "properties" : {
                      "constraint" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Constraint applicable for the item\n\\* specific -\n\nCoupon applicable to specific items.\n\\* all -\n\nCoupon applicable to all items.\n\\* criteria -\n\nCoupon applicable based on criteria.\n\\* none -\n\nCoupon not applicable to any items.\n",
                          "enum" : [ "none", "all", "specific", "criteria" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Item type for which this criteria is applicable for.\n\\* charge -\n\nCharge\n\\* plan -\n\nPlan\n\\* addon -\n\nAddon\n",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_ids" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">List of item price ids for which this coupon is applicable.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When specifying a value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_ids</code>, make sure that the value is wrapped in square brackets (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">[]</code>), for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">[cbdemo_advanced-USD-Daily]</code> instead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cbdemo_advanced-USD-Daily</code>; otherwise, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">param_wrong_value</code> error returns.</p><p class=\"mb-2\">For information about <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_ids</code>, refer to <em class=\"italic\">Defining Price Points</em> in <a href=\"https://www.chargebee.com/docs/2.0/plans.html#defining-price-points-for-plan\" target=\"_blank\">Plans</a>, <a href=\"https://www.chargebee.com/docs/2.0/addons.html#defining-price-points-for-an-addon\" target=\"_blank\">Addons</a>, and <a href=\"https://www.chargebee.com/docs/2.0/charges.html#defining-price-points-for-a-charge\" target=\"_blank\">Charges</a>.</p></div>",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "constraint", "item_type" ],
                    "example" : null
                  },
                  "item_constraint_criteria" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_constraint_criteria\n",
                    "properties" : {
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "Item type for which this criteria is applicable for.\n\\* charge -\n\nCharge is a type of item\n\\* plan -\n\nPlan is a type of item\n\\* addon -\n\nAddon is a type of item\n",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_family_ids" : {
                        "type" : "array",
                        "description" : "List of families for which this coupon is applicable.\n",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      },
                      "currencies" : {
                        "type" : "array",
                        "description" : "List of currencies ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) for which this coupon is applicable.\n",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_periods" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Pass the item price period units for this criterion. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nfollowed by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nSuch as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">[1 day,1 week,3 month,6 month]</code></p>",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupon_constraints" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_constraints</code>.\nMultiple <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon_constraints</code>\ncan be passed by specifying unique indices.</p>",
                    "properties" : {
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The resource type for the constraint. This, along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\n, helps define the specific rule applied.</p>\n* customer - <p class=\"mb-2\">The constraint is based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords.</p>",
                          "enum" : [ "customer" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The type of coupon constraint.</p>\n* unique_by - <p class=\"mb-2\">Indicates - when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">that the coupon can be redeemed only once for every unique value of a specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nattribute. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nattribute is specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>\n, then the coupon can be redeemed only once for every unique value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.email</code>.\nIn other words, when there are multiple <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords with the same value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>\n, once the coupon has been redeemed for one of those customer records, no further redemptions of the coupon are allowed for any of those <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords.</li>\n</ul>\n* new_customer - <p class=\"mb-2\">The coupon is applicable only for new customer(s). A customer will be considered as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">new_customer</code>\nwhen they do not have any prior non-void, non-zero-dollar invoices.</p>\n* existing_customer - <p class=\"mb-2\">The coupon is applicable only for existing customer(s). A customer will be considered as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">existing_customer</code>\nwhen they have at least one non-void, non-zero-dollar invoice.</p>\n* max_redemptions - <p class=\"mb-2\">The coupon can be redeemed up to a set number of times for a specific resource type. The maximum redemptions are specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\n, and the resource type is specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code>\nthen the coupon can only be redeemed up to 10 times for any particular <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecord.</p>",
                          "enum" : [ "max_redemptions", "unique_by", "existing_customer", "new_customer" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the coupon constraint. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">constraints[type]</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unique_by</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">max_redemptions</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be any integer in the range <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon.max_redemptions</code>, inclusive.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">new_customer</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">existing_customer</code> then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">based_on_invoice</code>.</p>\n</li>\n</ul>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 65000,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "entity_type", "type" ],
                    "example" : null
                  }
                },
                "required" : [ "apply_on", "id", "name" ],
                "example" : null
              },
              "encoding" : {
                "coupon_constraints" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_constraint_criteria" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_constraints" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon" : {
                      "$ref" : "#/components/schemas/Coupon",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon</p>"
                    }
                  },
                  "required" : [ "coupon" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_sets" : {
      "get" : {
        "summary" : "List coupon sets",
        "description" : "Use this API to get the list of all the coupon sets.\n",
        "operationId" : "list_coupon_sets",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nUniquely identifies a coupon_set.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"bulk-codes-1\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "bulk-codes-1",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "optional, string filter\n\nName of the coupon set.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*name\\[is_not\\] = \"bulk-codes-1\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "bulk-codes-1",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "coupon_id",
          "in" : "query",
          "description" : "optional, string filter\n\nCoupon id linked to coupon set.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*coupon_id\\[is\\] = \"OFF2008\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "OFF2008",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "total_count",
          "in" : "query",
          "description" : "optional, integer filter\n\nNo of coupon codes present in coupon set.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*total_count\\[gt\\] = \"10\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "10",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "redeemed_count",
          "in" : "query",
          "description" : "optional, integer filter\n\nNo of redeemed codes.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*redeemed_count\\[is\\] = \"5\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "5",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "archived_count",
          "in" : "query",
          "description" : "optional, integer filter\n\nNo of archived codes.\n**Supported operators :**\nis, is_not, lt, lte, gt, gte, between\n\n**Example →**\n*archived_count\\[is\\] = \"2\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "2",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "coupon_set" : {
                            "$ref" : "#/components/schemas/CouponSet",
                            "description" : "Resource object representing coupon_set"
                          }
                        },
                        "required" : [ "coupon_set" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a coupon set",
        "description" : "Create a coupon set with a coupon code compatible to your product offers and promotional discounts\n",
        "operationId" : "create_a_coupon_set",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "coupon_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Coupon id linked to coupon set.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Name of the coupon set.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Uniquely identifies a coupon_set.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the coupon set. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
                    "example" : null
                  }
                },
                "required" : [ "coupon_id", "id", "name" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_set" : {
                      "$ref" : "#/components/schemas/CouponSet",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_set</p>"
                    }
                  },
                  "required" : [ "coupon_set" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_sets/{coupon-set-id}/update" : {
      "post" : {
        "summary" : "Update a coupon set",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Use this API to update a specific coupon set by updating its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">meta_data</code>.</p></div>",
        "operationId" : "update_a_coupon_set",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-set-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-set-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Name of the coupon set.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "meta_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the coupon set. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_set" : {
                      "$ref" : "#/components/schemas/CouponSet",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_set</p>"
                    }
                  },
                  "required" : [ "coupon_set" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_sets/{coupon-set-id}" : {
      "get" : {
        "summary" : "Retrieve a coupon set",
        "description" : "Use this API to retrieve a specific coupon set.\n",
        "operationId" : "retrieve_a_coupon_set",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-set-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-set-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_set" : {
                      "$ref" : "#/components/schemas/CouponSet",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_set</p>"
                    }
                  },
                  "required" : [ "coupon_set" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_sets/{coupon-set-id}/add_coupon_codes" : {
      "post" : {
        "summary" : "Add coupon codes to coupon set",
        "description" : "This API add coupon codes to an existing coupon set.\n",
        "operationId" : "add_coupon_codes_to_coupon_set",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-set-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-set-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "code" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "You can pass up to 100 values per API call. You can also use the Chargebee UI to pass up to 1000 codes per operation. There is no limit on the total number of coupon codes that can be included in a coupon set.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_set" : {
                      "$ref" : "#/components/schemas/CouponSet",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_set</p>"
                    }
                  },
                  "required" : [ "coupon_set" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_sets/{coupon-set-id}/delete_unused_coupon_codes" : {
      "post" : {
        "summary" : "Delete unused coupon codes",
        "description" : "Use this API to delete all the unutilised coupon codes from a specific coupon set.\n",
        "operationId" : "delete_unused_coupon_codes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-set-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-set-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_set" : {
                      "$ref" : "#/components/schemas/CouponSet",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_set</p>"
                    }
                  },
                  "required" : [ "coupon_set" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_sets/{coupon-set-id}/delete" : {
      "post" : {
        "summary" : "Delete a coupon set",
        "description" : "Use this endpoint to delete a specific coupon set\n",
        "operationId" : "delete_a_coupon_set",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-set-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-set-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_set" : {
                      "$ref" : "#/components/schemas/CouponSet",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_set</p>"
                    }
                  },
                  "required" : [ "coupon_set" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_codes" : {
      "get" : {
        "summary" : "List coupon codes",
        "description" : "List the available coupon codes.\n",
        "operationId" : "list_coupon_codes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "code",
          "in" : "query",
          "description" : "optional, string filter\n\nUnique coupon code that can be redeemed only once.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*code\\[is_not\\] = \"OFF2009\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "OFF2009",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "coupon_id",
          "in" : "query",
          "description" : "optional, string filter\n\nId of the main coupon resource.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*coupon_id\\[is\\] = \"OFF20\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "OFF20",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "coupon_set_name",
          "in" : "query",
          "description" : "optional, string filter\n\nCoupon set name to which this coupon code would be grouped under. If the coupon set with the passed name is not present, a new coupon set will be created.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*coupon_set_name\\[is_not\\] = \"OFF20\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "OFF20",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nStatus of the coupon code. Possible values are : not_redeemed, redeemed, archived.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"redeemed\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "redeemed",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`not_redeemed\\` - Can be applied to a subscription. \\* \\`redeemed\\` - Cannot be applied to a subscription as the coupon code has been already used. \\* \\`archived\\` - Cannot be applied to a subscription as it has been made inactive.\n",
                "enum" : [ "not_redeemed", "redeemed", "archived" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`not_redeemed\\` - Can be applied to a subscription. \\* \\`redeemed\\` - Cannot be applied to a subscription as the coupon code has been already used. \\* \\`archived\\` - Cannot be applied to a subscription as it has been made inactive.\n",
                "enum" : [ "not_redeemed", "redeemed", "archived" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`not_redeemed\\` - Can be applied to a subscription. \\* \\`redeemed\\` - Cannot be applied to a subscription as the coupon code has been already used. \\* \\`archived\\` - Cannot be applied to a subscription as it has been made inactive.\n",
                "enum" : [ "not_redeemed", "redeemed", "archived" ],
                "pattern" : "^\\[(not_redeemed|redeemed|archived)(,(not_redeemed|redeemed|archived))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`not_redeemed\\` - Can be applied to a subscription. \\* \\`redeemed\\` - Cannot be applied to a subscription as the coupon code has been already used. \\* \\`archived\\` - Cannot be applied to a subscription as it has been made inactive.\n",
                "enum" : [ "not_redeemed", "redeemed", "archived" ],
                "pattern" : "^\\[(not_redeemed|redeemed|archived)(,(not_redeemed|redeemed|archived))*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "coupon_code" : {
                            "$ref" : "#/components/schemas/CouponCode",
                            "description" : "Resource object representing coupon_code"
                          }
                        },
                        "required" : [ "coupon_code" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_codes/{coupon-code-code}" : {
      "get" : {
        "summary" : "Retrieve a coupon code",
        "description" : "Retrieves a specific coupon code details.\n",
        "operationId" : "retrieve_a_coupon_code",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-code-code",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-code-code",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_code" : {
                      "$ref" : "#/components/schemas/CouponCode",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_code</p>"
                    }
                  },
                  "required" : [ "coupon_code" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/coupon_codes/{coupon-code-code}/archive" : {
      "post" : {
        "summary" : "Archive a coupon code",
        "description" : "Archives a coupon code thereby making it inactive. The archived coupon code cannot be applied to any subscription.\n",
        "operationId" : "archive_a_coupon_code",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "coupon-code-code",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/coupon-code-code",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "coupon_code" : {
                      "$ref" : "#/components/schemas/CouponCode",
                      "description" : "<p class=\"mb-2\">Resource object representing coupon_code</p>"
                    }
                  },
                  "required" : [ "coupon_code" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/addresses" : {
      "get" : {
        "summary" : "Retrieve an address",
        "description" : "Retrieves an address resource for a subscription and the specified label.\n",
        "operationId" : "retrieve_an_address",
        "parameters" : [ {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "label",
          "in" : "query",
          "description" : "Label to identify the address. This is unique for all the address for a subscription.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "address" : {
                      "$ref" : "#/components/schemas/Address",
                      "description" : "<p class=\"mb-2\">Resource object representing address</p>"
                    }
                  },
                  "required" : [ "address" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update an address",
        "description" : "Adds or replaces the address for a subscription. If an address is already present for the specified label, it will be replaced otherwise new address is added with that label.\n",
        "operationId" : "update_an_address",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "label" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Label to identify the address. This is unique for all the address for a subscription.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "first_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "First name.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "last_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Last name.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "email" : {
                    "type" : "string",
                    "format" : "email",
                    "deprecated" : false,
                    "description" : "Email.\n",
                    "maxLength" : 70,
                    "example" : null
                  },
                  "company" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Company name.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "phone" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Phone number.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "addr" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 1.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "extended_addr" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 2.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "extended_addr2" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 3.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "city" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Name of the city.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "state_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "state" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "zip" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "country" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>\n<p class=\"mb-2\">.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "validation_status" : {
                    "type" : "string",
                    "default" : "not_validated",
                    "deprecated" : false,
                    "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* invalid -\n\nAddress is invalid.\n\\* valid -\n\nAddress was validated successfully.\n",
                    "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                    "example" : null
                  }
                },
                "required" : [ "label", "subscription_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "address" : {
                      "$ref" : "#/components/schemas/Address",
                      "description" : "<p class=\"mb-2\">Resource object representing address</p>"
                    }
                  },
                  "required" : [ "address" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/usages/pdf" : {
      "post" : {
        "summary" : "Retrieve Usages for an Invoice as PDF",
        "description" : "Retrieves usages record for an invoice in PDF file format.\n",
        "operationId" : "retrieve_usages_for_an_invoice_as_pdf",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "disposition_type" : {
                    "type" : "string",
                    "default" : "attachment",
                    "deprecated" : false,
                    "description" : "Determines the pdf should be rendered as inline or attachment in the browser.\n\\* attachment -\n\nPDF is rendered as attachment in the browser\n\\* inline -\n\nPDF is rendered as inline in the browser\n",
                    "enum" : [ "attachment", "inline" ],
                    "example" : null
                  },
                  "invoice" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The invoice number. Acts as a identifier for invoice and typically generated sequentially.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "invoice" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "download" : {
                      "$ref" : "#/components/schemas/Download",
                      "description" : "<p class=\"mb-2\">Resource object representing download</p>"
                    }
                  },
                  "required" : [ "download" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/usages" : {
      "get" : {
        "summary" : "Retrieve a usage",
        "description" : "Retrieves a usage record of a specific subscription.\n",
        "operationId" : "retrieve_a_usage",
        "parameters" : [ {
          "name" : "id",
          "in" : "query",
          "description" : "The unique identifier for the usage record to be retrieved.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "usage" : {
                      "$ref" : "#/components/schemas/Usage",
                      "description" : "<p class=\"mb-2\">Resource object representing usage</p>"
                    }
                  },
                  "required" : [ "usage" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a usage",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a usage record for an item price in a subscription. The item price must belong to a <code><a href=\"/docs/api/items/item-object#metered\">metered</a></code> item.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Max Usages</strong></p><p class=\"mb-2\">The maximum number of usages that can be recorded for the entire lifetime of a subscription is 5000. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a>\nif you want this limit to be increased for your site.</p></div></div>",
        "operationId" : "create_a_usage",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique and immutable id for the usage. If not provided, it is autogenerated.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "item_price_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The id of the [item price](/docs/api/item_prices)\nto which this usage belongs. The item price must be a part of the subscription or should have been part of it historically.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "quantity" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The quantity specified for this usage record.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "usage_date" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time at which this usage occurred. Chargebee bills only those usages whose\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nfalls within a time when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.\nHowever, the remaining usage records are still stored and are\n<a href=\"/docs/api/usages/retrieve-a-usage\">retrievable</a>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\ncorresponds to a time already invoiced, then it is stored but never invoiced unless the <a href=\"/docs/api/subscriptions/regenerate-an-invoice\">invoice is regenerated</a>\n.</p>",
                    "example" : null
                  },
                  "note" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A note for this usage record. This note is not displayed on any customer-facing document or interface such as [invoice PDFs](/docs/api/invoices/retrieve-invoice-as-pdf)\nor [Hosted Pages](/docs/api/hosted_pages)\n.\n",
                    "maxLength" : 500,
                    "example" : null
                  }
                },
                "required" : [ "item_price_id", "quantity", "usage_date" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "usage" : {
                      "$ref" : "#/components/schemas/Usage",
                      "description" : "<p class=\"mb-2\">Resource object representing usage</p>"
                    }
                  },
                  "required" : [ "usage" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/delete_usage" : {
      "post" : {
        "summary" : "Delete a usage",
        "description" : "Deletes a usage record. This operation cannot be invoked for a usage record that has been [invoiced](/docs/api/usages).\n",
        "operationId" : "delete_a_usage",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique and immutable id for the usage. If not provided, it is autogenerated.\n",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "required" : [ "id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "usage" : {
                      "$ref" : "#/components/schemas/Usage",
                      "description" : "<p class=\"mb-2\">Resource object representing usage</p>"
                    }
                  },
                  "required" : [ "usage" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/usages" : {
      "get" : {
        "summary" : "List usages",
        "description" : "Retrieves the list of usages.\n",
        "operationId" : "list_usages",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nA unique and immutable id for the usage. If not provided, it is autogenerated.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*id\\[is\\] = \"usage_lsfja24411\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "usage_lsfja24411",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe id of the [subscription](/docs/api/subscriptions)\nto which this usage record belongs.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*subscription_id\\[is\\] = \"active2\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active2",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "usage_date",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">The time at which this usage occurred. Chargebee bills only those usages whose\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nfalls within a time when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.\nHowever, the remaining usage records are still stored and are\n<a href=\"/docs/api/usages/retrieve-a-usage\">retrievable</a>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\ncorresponds to a time already invoiced, then it is stored but never invoiced unless the <a href=\"/docs/api/subscriptions/regenerate-an-invoice\">invoice is regenerated</a>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">usage_date[after] = &quot;1601220958&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1601220958",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1601220958",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_price_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe id of the [item price](/docs/api/item_prices)\nto which this usage belongs. The item price must be a part of the subscription or should have been part of it historically.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*item_price_id\\[is\\] = \"sprout\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "sprout",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "invoice_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">When the usage has been invoiced, this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/invoices\">invoice</a>.\nThis is cleared when the invoice is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>\nor deleted.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">invoice_id[is] = &quot;null&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "source",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe source from which the usage record was created. Possible values are : admin_console, api, bulk_operation.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*source\\[is\\] = \"api\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "api",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation.\n",
                "enum" : [ "admin_console", "api", "bulk_operation" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation.\n",
                "enum" : [ "admin_console", "api", "bulk_operation" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation.\n",
                "enum" : [ "admin_console", "api", "bulk_operation" ],
                "pattern" : "^\\[(admin_console|api|bulk_operation)(,(admin_console|api|bulk_operation))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation.\n",
                "enum" : [ "admin_console", "api", "bulk_operation" ],
                "pattern" : "^\\[(admin_console|api|bulk_operation)(,(admin_console|api|bulk_operation))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nusage_date\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"usage_date\"*\n\nThis will sort the result based on the 'usage_date' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "usage_date", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "usage_date", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "usage" : {
                            "$ref" : "#/components/schemas/Usage",
                            "description" : "Resource object representing usage"
                          }
                        },
                        "required" : [ "usage" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/events" : {
      "get" : {
        "summary" : "List events",
        "description" : "Retrieves list of events.\n",
        "operationId" : "list_events",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nUniquely identifies a event.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"8ndk0hbKm\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8ndk0hbKm",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "webhook_status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nReturns the events (occurred in the past 6 days) which has this status in any of the events' webhooks.\n**Note**:\nTo retrieve events which have occurred before the 6 day period, use the occurred_at(start_time/end_time) attribute. Possible values are : not_configured, scheduled, succeeded, re_scheduled, failed, skipped, not_applicable.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*webhook_status\\[is\\] = \"succeeded\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "succeeded",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`not_configured\\` - Webhook was not configured when this event occurred \\* \\`scheduled\\` - Webhook call has been scheduled. \\* \\`succeeded\\` - Webhook call was successful. \\* \\`re_scheduled\\` - Webhook call has been rescheduled due failure(s) in previous call(s) \\* \\`failed\\` - Webhook call has been suspended after the all retries have resulted in failure. \\* \\`skipped\\` - Skipped as specified in request \\* \\`not_applicable\\` - Webhook call is not applicable for this event. \\* \\`disabled\\` - Disabled as no longer used \\* \\`rate_limited\\` - Webhook call was rate limited.\n",
                "enum" : [ "not_configured", "scheduled", "succeeded", "re_scheduled", "failed", "skipped", "not_applicable", "disabled", "rate_limited" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`not_configured\\` - Webhook was not configured when this event occurred \\* \\`scheduled\\` - Webhook call has been scheduled. \\* \\`succeeded\\` - Webhook call was successful. \\* \\`re_scheduled\\` - Webhook call has been rescheduled due failure(s) in previous call(s) \\* \\`failed\\` - Webhook call has been suspended after the all retries have resulted in failure. \\* \\`skipped\\` - Skipped as specified in request \\* \\`not_applicable\\` - Webhook call is not applicable for this event. \\* \\`disabled\\` - Disabled as no longer used \\* \\`rate_limited\\` - Webhook call was rate limited.\n",
                "enum" : [ "not_configured", "scheduled", "succeeded", "re_scheduled", "failed", "skipped", "not_applicable", "disabled", "rate_limited" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`not_configured\\` - Webhook was not configured when this event occurred \\* \\`scheduled\\` - Webhook call has been scheduled. \\* \\`succeeded\\` - Webhook call was successful. \\* \\`re_scheduled\\` - Webhook call has been rescheduled due failure(s) in previous call(s) \\* \\`failed\\` - Webhook call has been suspended after the all retries have resulted in failure. \\* \\`skipped\\` - Skipped as specified in request \\* \\`not_applicable\\` - Webhook call is not applicable for this event. \\* \\`disabled\\` - Disabled as no longer used \\* \\`rate_limited\\` - Webhook call was rate limited.\n",
                "enum" : [ "not_configured", "scheduled", "succeeded", "re_scheduled", "failed", "skipped", "not_applicable", "disabled", "rate_limited" ],
                "pattern" : "^\\[(not_configured|scheduled|succeeded|re_scheduled|failed|skipped|not_applicable|disabled|rate_limited)(,(not_configured|scheduled|succeeded|re_scheduled|failed|skipped|not_applicable|disabled|rate_limited))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`not_configured\\` - Webhook was not configured when this event occurred \\* \\`scheduled\\` - Webhook call has been scheduled. \\* \\`succeeded\\` - Webhook call was successful. \\* \\`re_scheduled\\` - Webhook call has been rescheduled due failure(s) in previous call(s) \\* \\`failed\\` - Webhook call has been suspended after the all retries have resulted in failure. \\* \\`skipped\\` - Skipped as specified in request \\* \\`not_applicable\\` - Webhook call is not applicable for this event. \\* \\`disabled\\` - Disabled as no longer used \\* \\`rate_limited\\` - Webhook call was rate limited.\n",
                "enum" : [ "not_configured", "scheduled", "succeeded", "re_scheduled", "failed", "skipped", "not_applicable", "disabled", "rate_limited" ],
                "pattern" : "^\\[(not_configured|scheduled|succeeded|re_scheduled|failed|skipped|not_applicable|disabled|rate_limited)(,(not_configured|scheduled|succeeded|re_scheduled|failed|skipped|not_applicable|disabled|rate_limited))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "event_type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nSpecify it if you need to fetch events of a particular type. Possible values are : coupon_created, coupon_updated, coupon_deleted, coupon_set_created, coupon_set_updated, coupon_set_deleted, coupon_codes_added, coupon_codes_deleted, coupon_codes_updated, customer_created, customer_changed, customer_deleted, customer_moved_out, customer_moved_in, promotional_credits_added, promotional_credits_deducted, subscription_created, subscription_created_with_backdating, subscription_started, subscription_trial_end_reminder, subscription_activated, subscription_activated_with_backdating, subscription_changed, mrr_updated, subscription_changed_with_backdating, subscription_cancellation_scheduled, subscription_cancellation_reminder, subscription_cancelled, subscription_canceled_with_backdating, subscription_reactivated, subscription_reactivated_with_backdating, subscription_renewed, subscription_scheduled_cancellation_removed, subscription_changes_scheduled, subscription_scheduled_changes_removed, subscription_shipping_address_updated, subscription_deleted, subscription_paused, subscription_pause_scheduled, subscription_scheduled_pause_removed, subscription_resumed, subscription_resumption_scheduled, subscription_scheduled_resumption_removed, subscription_advance_invoice_schedule_added, subscription_advance_invoice_schedule_updated, subscription_advance_invoice_schedule_removed, pending_invoice_created, pending_invoice_updated, invoice_generated, invoice_generated_with_backdating, invoice_updated, invoice_deleted, credit_note_created, credit_note_created_with_backdating, credit_note_updated, credit_note_deleted, subscription_renewal_reminder, add_usages_reminder, transaction_created, transaction_updated, transaction_deleted, payment_succeeded, payment_failed, payment_refunded, payment_initiated, refund_initiated, authorization_succeeded, authorization_voided, card_added, card_updated, card_expiry_reminder, card_expired, card_deleted, payment_source_added, payment_source_updated, payment_source_deleted, payment_source_expiring, payment_source_expired, virtual_bank_account_added, virtual_bank_account_updated, virtual_bank_account_deleted, token_created, token_consumed, token_expired, unbilled_charges_created, unbilled_charges_voided, unbilled_charges_deleted, unbilled_charges_invoiced, order_created, order_updated, order_cancelled, order_delivered, order_returned, order_ready_to_process, order_ready_to_ship, order_deleted, order_resent, quote_created, quote_updated, quote_deleted, tax_withheld_recorded, tax_withheld_deleted, tax_withheld_refunded, gift_scheduled, gift_unclaimed, gift_claimed, gift_expired, gift_cancelled, gift_updated, hierarchy_created, hierarchy_deleted, payment_intent_created, payment_intent_updated, contract_term_created, contract_term_renewed, contract_term_terminated, contract_term_completed, contract_term_cancelled, item_family_created, item_family_updated, item_family_deleted, item_created, item_updated, item_deleted, item_price_created, item_price_updated, item_price_deleted, attached_item_created, attached_item_updated, attached_item_deleted, differential_price_created, differential_price_updated, differential_price_deleted, feature_created, feature_updated, feature_deleted, feature_activated, feature_reactivated, feature_archived, item_entitlements_updated, entitlement_overrides_updated, entitlement_overrides_removed, item_entitlements_removed, entitlement_overrides_auto_removed, business_entity_created, business_entity_updated, business_entity_deleted, purchase_created.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*event_type\\[is\\] = \"customer_created\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "customer_created",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`coupon_created\\` - Sent when a coupon is created. \\* \\`coupon_updated\\` - Sent when a coupon is changed. \\* \\`coupon_deleted\\` - Sent when a coupon is deleted. \\* \\`coupon_set_created\\` - Sent when a coupon set is created \\* \\`coupon_set_updated\\` - Sent when a coupon set is changed \\* \\`coupon_set_deleted\\` - Sent when a coupon set is deleted \\* \\`coupon_codes_added\\` - Sent when coupon codes are added in coupon set \\* \\`coupon_codes_deleted\\` - Sent when coupon codes are deleted in coupon set \\* \\`coupon_codes_updated\\` - Sent when coupon codes are updated \\* \\`customer_created\\` - Sent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation. \\* \\`customer_changed\\` - Sent when a customer is changed \\* \\`customer_deleted\\` - Sent when a customer is deleted \\* \\`customer_moved_out\\` - Sent when a customer is copied to another site \\* \\`customer_moved_in\\` - Sent when a customer is copied from another site \\* \\`promotional_credits_added\\` - Sent when a customer prmotion credits added \\* \\`promotional_credits_deducted\\` - Sent when a customer prmotion credits deducted \\* \\`subscription_created\\` - Sent when a new subscription is created. \\* \\`subscription_created_with_backdating\\` - Sent when a new subscription is created with backdating. \\* \\`subscription_started\\` - Sent when a 'future' subscription gets started at the scheduled date. \\* \\`subscription_trial_end_reminder\\` - Sent when the customer's trial period is about to end. \\* \\`subscription_activated\\` - Sent after the subscription has been moved from trial to active state \\* \\`subscription_activated_with_backdating\\` - Sent after the subscription changes to \\`active\\` from another \\`status\\`, while the change is backdated. \\* \\`subscription_changed\\` - Sent after the subscription's recurring items have been changed \\* \\`subscription_trial_extended\\` - Trial Extension \\* \\`mrr_updated\\` - Sent when either of MRR or CMRR of a subscription changes \\* \\`subscription_changed_with_backdating\\` - Sent after the subscription's recurring items have been changed with backdated date \\* \\`subscription_cancellation_scheduled\\` - Sent when subscription is scheduled to cancel at end of current term \\* \\`subscription_cancellation_reminder\\` - Sent when the customer's subscription is nearing it's scheduled cancellation date. \\* \\`subscription_cancelled\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_canceled_with_backdating\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_reactivated\\` - Sent when the subscription is moved from cancelled state to active or in_trial state \\* \\`subscription_reactivated_with_backdating\\` - Sent when the subscription is moved from cancelled state to active or in_trial state with past date \\* \\`subscription_renewed\\` - Sent when the subscription is renewed from the current term. \\* \\`subscription_items_renewed\\` - Sent when one or more Subscription Items are renewed \\* \\`subscription_scheduled_cancellation_removed\\` - Sent when scheduled cancellation is removed for the subscription. \\* \\`subscription_changes_scheduled\\` - Sent when subscription changes are scheduled for later. Changes will be applied at the end of current term. \\* \\`subscription_scheduled_changes_removed\\` - Sent when scheduled change for the subscription is removed. \\* \\`subscription_shipping_address_updated\\` - Triggered when shipping address is added or updated for a subscription. \\* \\`subscription_deleted\\` - Sent when a subscription has been deleted \\* \\`subscription_paused\\` - Sent when the subscription is paused. \\* \\`subscription_pause_scheduled\\` - Sent when the subscription is scheduled to pause. \\* \\`subscription_scheduled_pause_removed\\` - Triggered when scheduled pause is removed for the subscription. \\* \\`subscription_resumed\\` - Sent when the subscription is moved from paused state to active state \\* \\`subscription_resumption_scheduled\\` - Triggered when the subscription resumption is scheduled. \\* \\`subscription_scheduled_resumption_removed\\` - Triggered when scheduled resumption is removed for the subscription. \\* \\`subscription_advance_invoice_schedule_added\\` - Triggered when advance invoice is scheduled for a subscription. \\* \\`subscription_advance_invoice_schedule_updated\\` - Triggered when scheduled advance invoice is updated for a subscription. \\* \\`subscription_advance_invoice_schedule_removed\\` - Triggered when scheduled advance invoice is removed for a subscription. \\* \\`pending_invoice_created\\` - Event triggered (in the case of metered billing) when a \"Pending\" invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the \"Notify for Pending Invoices\" option is enabled. \\* \\`pending_invoice_updated\\` - Event triggered when the option \"Notify and wait to close invoices\" is enabled, and the 'Pending' invoice is updated. \\* \\`invoice_generated\\` - Event triggered when a new invoice is generated. In case of metered billing, this event is triggered when a \"Pending\" invoice is closed. \\* \\`invoice_generated_with_backdating\\` - Event triggered when a new invoice is generated with past date as invoice date. \\* \\`invoice_updated\\` - Triggered when the invoice's shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed. \\* \\`invoice_deleted\\` - Event triggered when an invoice is deleted. \\* \\`credit_note_created\\` - Sent when a credit note is created \\* \\`credit_note_created_with_backdating\\` - Sent when a credit note is created with past date as credit note date \\* \\`credit_note_updated\\` - Sent when a credit note is updated \\* \\`credit_note_deleted\\` - Sent when a credit note is deleted \\* \\`payment_schedules_created\\` - Event triggered when new payment schedules are created for an invoice \\* \\`payment_schedules_updated\\` - Event triggered when payment schedules are updated for an invoice \\* \\`payment_schedule_scheme_created\\` - Event triggered when a new payment schedule scheme is created \\* \\`payment_schedule_scheme_deleted\\` - Event triggered when a payment schedule scheme is deleted \\* \\`subscription_renewal_reminder\\` - Sent before each subscription's renewal based on plan's period \\* \\`add_usages_reminder\\` - Sent every month day before renewal date of plan's period \\* \\`payment_due_reminder\\` - Sent after scheduled days of payment failure \\* \\`transaction_created\\` - Triggered when a transaction is recorded \\* \\`transaction_updated\\` - Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated. \\* \\`transaction_deleted\\` - Triggered when a transaction is deleted. \\* \\`payment_succeeded\\` - Sent when the payment is successfully collected \\* \\`payment_failed\\` - Sent when attempt to charge customer's credit card fails \\* \\`dunning_updated\\` - Sent when dunning is paused for an invoice \\* \\`payment_refunded\\` - Sent when a payment refund is made \\* \\`payment_initiated\\` - Sent when a payment is initiated via direct debit \\* \\`refund_initiated\\` - Sent when a refund is initiated via direct debit \\* \\`netd_payment_due_reminder\\` - \\*\\*(Deprecated)\\*\\* Sent when a invoice's due period is about to end \\* \\`authorization_succeeded\\` - Triggered when a authorization transaction is created. \\* \\`authorization_voided\\` - Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time. \\* \\`card_added\\` - Sent when a card is added for a customer. \\* \\`card_updated\\` - Sent when the card is updated for a customer. \\* \\`card_expiry_reminder\\` - Sent when the customer's credit card is expiring soon. Sent 30 days before the expiry date. \\* \\`card_expired\\` - Sent when a card for a customer is expired \\* \\`card_deleted\\` - Sent when a card is deleted for a customer \\* \\`payment_source_added\\` - Sent when a payment source is added for a customer. \\* \\`payment_source_updated\\` - Sent when the payment source is updated for a customer or when role is assigned to the payment source. \\* \\`payment_source_deleted\\` - Sent when a payment source is deleted for a customer \\* \\`payment_source_expiring\\` - Sent when the customer's payment source is expiring soon. Sent 30 days before the expiry date. \\* \\`payment_source_expired\\` - Sent when a payment source for a customer is expired \\* \\`payment_source_locally_deleted\\` - Sent when a payment source for a customer removed from Chargebee \\* \\`virtual_bank_account_added\\` - Sent when a virtual bank account is added for a customer. \\* \\`virtual_bank_account_updated\\` - Sent when the virtual bank account is updated for a customer. \\* \\`virtual_bank_account_deleted\\` - Sent when a virtual bank account is deleted for a customer. \\* \\`token_created\\` - Sent when a Token is created \\* \\`token_consumed\\` - Sent when a Token is consumed \\* \\`token_expired\\` - Sent when a Token is expired \\* \\`unbilled_charges_created\\` - Triggered when unbilled charges are created \\* \\`unbilled_charges_voided\\` - Triggered when unbilled charges are voided \\* \\`unbilled_charges_deleted\\` - Triggered when unbilled charges are deleted \\* \\`unbilled_charges_invoiced\\` - Triggered when unbilled charges are invoiced \\* \\`order_created\\` - Triggered when order is created \\* \\`order_updated\\` - Triggered when order is updated \\* \\`order_cancelled\\` - Triggered when order is cancelled \\* \\`order_delivered\\` - Triggered when order is marked as delivered \\* \\`order_returned\\` - Triggered when order is marked as returned \\* \\`order_ready_to_process\\` - Triggered when order reaches it's order date \\* \\`order_ready_to_ship\\` - Triggered when order reaches it's shipping date \\* \\`order_deleted\\` - Triggered when order is deleted \\* \\`order_resent\\` - Triggered when order is resent \\* \\`quote_created\\` - Triggered when quote is created \\* \\`quote_updated\\` - Triggered when quote is updated \\* \\`quote_deleted\\` - Triggered when quote is deleted \\* \\`tax_withheld_recorded\\` - Triggered when a tax withheld is recorded for an invoice \\* \\`tax_withheld_deleted\\` - Triggered when a tax withheld is deleted \\* \\`tax_withheld_refunded\\` - Sent when a tax withheld refund is made \\* \\`gift_scheduled\\` - Triggered when a new gift is created \\* \\`gift_unclaimed\\` - Triggered when a new gift is unclaimed and is ready to be claimed \\* \\`gift_claimed\\` - Triggered when a gift is claimed \\* \\`gift_expired\\` - Triggered when a gift expires \\* \\`gift_cancelled\\` - Triggered when a gift is cancelled. \\* \\`gift_updated\\` - Triggered when a gift is updated \\* \\`hierarchy_created\\` - Triggered when a hierarchy is created \\* \\`hierarchy_deleted\\` - Triggered when a hierarchy is deleted \\* \\`payment_intent_created\\` - Sent when a Payment intent is created \\* \\`payment_intent_updated\\` - Sent when a Payment intent is updated \\* \\`contract_term_created\\` - Triggered when new contract term is created \\* \\`contract_term_renewed\\` - Triggered when new contract term is renewed \\* \\`contract_term_terminated\\` - Triggered when contract term is terminated \\* \\`contract_term_completed\\` - Triggered when contract term is completed \\* \\`contract_term_cancelled\\` - Triggered when contract term is cancelled \\* \\`item_family_created\\` - Triggered when an item family is created \\* \\`item_family_updated\\` - Triggered when an item family is updated \\* \\`item_family_deleted\\` - Triggered when an item family is deleted \\* \\`item_created\\` - Triggered when an item is created \\* \\`item_updated\\` - Triggered when an item is updated \\* \\`item_deleted\\` - Triggered when an item is deleted \\* \\`item_price_created\\` - Triggered when an item price is created \\* \\`item_price_updated\\` - Triggered when an item price is updated \\* \\`item_price_deleted\\` - Triggered when an item price is deleted \\* \\`attached_item_created\\` - Triggered when an Attached item is created \\* \\`attached_item_updated\\` - Triggered when an Attached item is updated \\* \\`attached_item_deleted\\` - Triggered when an Attached item is deleted \\* \\`differential_price_created\\` - Triggered when a differential price is created \\* \\`differential_price_updated\\` - Triggered when a differential price is updated \\* \\`differential_price_deleted\\` - Triggered when a differential price is deleted \\* \\`feature_created\\` - Triggered when a feature is created. \\* \\`feature_updated\\` - Triggered when an feature is updated \\* \\`feature_deleted\\` - Triggered when a feature is deleted \\* \\`feature_activated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the first time. \\* \\`feature_reactivated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the second time or more. \\* \\`feature_archived\\` - Triggered when an feature is archived \\* \\`item_entitlements_updated\\` - Triggered when item entitlements are updated to a feature \\* \\`entitlement_overrides_updated\\` - Triggered when an override entitlement is updated \\* \\`entitlement_overrides_removed\\` - Triggered when an override entitlement is removed \\* \\`item_entitlements_removed\\` - Triggered when item entitlements are removed for a feature \\* \\`entitlement_overrides_auto_removed\\` - Triggered when Subscription entitlements overrides for a feature are auto removed after expiry \\* \\`subscription_entitlements_created\\` - Triggered when subscription entitlements are created for a new subscription \\* \\`subscription_entitlements_updated\\` - Triggered when subscription entitlements are updated due to the subscription change event \\* \\`business_entity_created\\` - Sent when a business entity is created. \\* \\`business_entity_updated\\` - Sent when a business entity is updated. \\* \\`business_entity_deleted\\` - Sent when a business entity is deleted. \\* \\`customer_business_entity_changed\\` - Sent when a customer's business entity is changed. \\* \\`subscription_business_entity_changed\\` - Sent when a subscription's business entity is changed. \\* \\`purchase_created\\` - Triggered when purchase action is completed successfully \\* \\`voucher_created\\` - Triggered when a payment voucher is created \\* \\`voucher_expired\\` - Triggered when a payment voucher is expired \\* \\`voucher_create_failed\\` - Triggered when a payment voucher creation is failed \\* \\`product_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product create is completed successfully \\* \\`product_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product update is completed successfully \\* \\`product_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product delete is completed successfully \\* \\`variant_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant create completed successfully \\* \\`variant_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant update completed successfully \\* \\`variant_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant delete completed successfully \\* \\`item_price_entitlements_updated\\` - Triggered when item Price entitlements are updated to a feature \\* \\`item_price_entitlements_removed\\` - Triggered when item price entitlements are removed for a feature \\* \\`subscription_ramp_created\\` - Triggered when a subscription ramp is created. \\* \\`subscription_ramp_deleted\\` - Triggered when a subscription ramp is deleted. \\* \\`subscription_ramp_applied\\` - Triggered when a subscription ramp is applied. \\* \\`subscription_ramp_drafted\\` - Triggered when a subscription ramp is moved to draft status. \\* \\`subscription_ramp_updated\\` - Triggered when a subscription ramp is updated. \\* \\`price_variant_created\\` - Triggered when a price variant is created. \\* \\`price_variant_updated\\` - Triggered when a price variant is updated. \\* \\`price_variant_deleted\\` - Triggered when a price variant is deleted. \\* \\`customer_entitlements_updated\\` - Triggered when entitlements for the list of customers got updated. \\* \\`subscription_moved_in\\` - Triggered when a subscription moved from other customer \\* \\`subscription_moved_out\\` - Triggered when a subscription moved to other customer \\* \\`subscription_movement_failed\\` - Triggered when a subscription movement failed \\* \\`omnichannel_subscription_created\\` - Triggered when an omnichannel subscription is created \\* \\`omnichannel_subscription_item_renewed\\` - Triggered when an omnichannel subscription item is renewed \\* \\`omnichannel_subscription_item_downgrade_scheduled\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item is downgrade is scheduled \\* \\`omnichannel_subscription_item_scheduled_downgrade_removed\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item scheduled downgrade is removed \\* \\`omnichannel_subscription_item_downgraded\\` - Triggered when an omnichannel subscription item is downgraded \\* \\`omnichannel_subscription_item_expired\\` - Triggered when an omnichannel subscription item is expired \\* \\`omnichannel_subscription_item_cancellation_scheduled\\` - Triggered when an omnichannel subscription item is scheduled for cancellation \\* \\`omnichannel_subscription_item_scheduled_cancellation_removed\\` - Triggered when an omnichannel subscription item scheduled cancellation is removed \\* \\`omnichannel_subscription_item_resubscribed\\` - Triggered when an omnichannel subscription item is resubscribed \\* \\`omnichannel_subscription_item_upgraded\\` - Triggered when an omnichannel subscription item is upgraded \\* \\`omnichannel_subscription_item_cancelled\\` - Triggered when an omnichannel subscription item is cancelled \\* \\`omnichannel_subscription_imported\\` - Triggered when an omnichannel subscription item is imported \\* \\`omnichannel_subscription_item_grace_period_started\\` - Triggered when an omnichannel subscription item's grace period has started \\* \\`omnichannel_subscription_item_grace_period_expired\\` - Triggered when an omnichannel subscription item's grace period has expired \\* \\`omnichannel_subscription_item_dunning_started\\` - Triggered when an omnichannel subscription item's dunning has started \\* \\`omnichannel_subscription_item_dunning_expired\\` - Triggered when an omnichannel subscription item's dunning has expired \\* \\`rule_created\\` - Triggered when a rule is created \\* \\`rule_updated\\` - Triggered when a rule is updated \\* \\`rule_deleted\\` - Triggered when a rule is deleted \\* \\`record_purchase_failed\\` - Triggered when an omnichannel record purchase is failed \\* \\`omnichannel_subscription_item_change_scheduled\\` - Triggered when an omnichannel subscription item change is scheduled \\* \\`omnichannel_subscription_item_scheduled_change_removed\\` - Triggered when an omnichannel subscription item scheduled change is removed \\* \\`omnichannel_subscription_item_reactivated\\` - Triggered when an omnichannel subscription item's refund is reversed \\* \\`sales_order_created\\` - Triggered when sales order is created \\* \\`sales_order_updated\\` - Triggered when sales order is updated \\* \\`omnichannel_subscription_item_changed\\` - Triggered when an omnichannel subscription item is changed \\* \\`omnichannel_subscription_item_paused\\` - Triggered when an omnichannel subscription item is paused \\* \\`omnichannel_subscription_item_resumed\\` - Triggered when an omnichannel subscription item is resumed \\* \\`omnichannel_one_time_order_created\\` - Triggered when an omnichannel one time order is created \\* \\`omnichannel_one_time_order_item_cancelled\\` - Triggered when an omnichannel one time order item is cancelled \\* \\`usage_file_ingested\\` - Triggered when a usage file is ingested \\* \\`omnichannel_subscription_item_pause_scheduled\\` - Triggered when an omnichannel subscription item scheduled for pause \\* \\`omnichannel_subscription_moved_in\\` - Triggered when an omnichannel subscription is moved into another customer \\* \\`omnichannel_transaction_created\\` - Triggered when an omnichannel transaction is created \\* \\`alert_status_changed\\` - Triggered when the status for an alert changes \\* \\`omnichannel_subscription_item_updated\\` - Triggered when an omnichannel subscription item is updated \\* \\`omnichannel_subscription_item_recovered\\` - Triggered when an omnichannel subscription item is recovered from grace period or dunning\n",
                "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`coupon_created\\` - Sent when a coupon is created. \\* \\`coupon_updated\\` - Sent when a coupon is changed. \\* \\`coupon_deleted\\` - Sent when a coupon is deleted. \\* \\`coupon_set_created\\` - Sent when a coupon set is created \\* \\`coupon_set_updated\\` - Sent when a coupon set is changed \\* \\`coupon_set_deleted\\` - Sent when a coupon set is deleted \\* \\`coupon_codes_added\\` - Sent when coupon codes are added in coupon set \\* \\`coupon_codes_deleted\\` - Sent when coupon codes are deleted in coupon set \\* \\`coupon_codes_updated\\` - Sent when coupon codes are updated \\* \\`customer_created\\` - Sent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation. \\* \\`customer_changed\\` - Sent when a customer is changed \\* \\`customer_deleted\\` - Sent when a customer is deleted \\* \\`customer_moved_out\\` - Sent when a customer is copied to another site \\* \\`customer_moved_in\\` - Sent when a customer is copied from another site \\* \\`promotional_credits_added\\` - Sent when a customer prmotion credits added \\* \\`promotional_credits_deducted\\` - Sent when a customer prmotion credits deducted \\* \\`subscription_created\\` - Sent when a new subscription is created. \\* \\`subscription_created_with_backdating\\` - Sent when a new subscription is created with backdating. \\* \\`subscription_started\\` - Sent when a 'future' subscription gets started at the scheduled date. \\* \\`subscription_trial_end_reminder\\` - Sent when the customer's trial period is about to end. \\* \\`subscription_activated\\` - Sent after the subscription has been moved from trial to active state \\* \\`subscription_activated_with_backdating\\` - Sent after the subscription changes to \\`active\\` from another \\`status\\`, while the change is backdated. \\* \\`subscription_changed\\` - Sent after the subscription's recurring items have been changed \\* \\`subscription_trial_extended\\` - Trial Extension \\* \\`mrr_updated\\` - Sent when either of MRR or CMRR of a subscription changes \\* \\`subscription_changed_with_backdating\\` - Sent after the subscription's recurring items have been changed with backdated date \\* \\`subscription_cancellation_scheduled\\` - Sent when subscription is scheduled to cancel at end of current term \\* \\`subscription_cancellation_reminder\\` - Sent when the customer's subscription is nearing it's scheduled cancellation date. \\* \\`subscription_cancelled\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_canceled_with_backdating\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_reactivated\\` - Sent when the subscription is moved from cancelled state to active or in_trial state \\* \\`subscription_reactivated_with_backdating\\` - Sent when the subscription is moved from cancelled state to active or in_trial state with past date \\* \\`subscription_renewed\\` - Sent when the subscription is renewed from the current term. \\* \\`subscription_items_renewed\\` - Sent when one or more Subscription Items are renewed \\* \\`subscription_scheduled_cancellation_removed\\` - Sent when scheduled cancellation is removed for the subscription. \\* \\`subscription_changes_scheduled\\` - Sent when subscription changes are scheduled for later. Changes will be applied at the end of current term. \\* \\`subscription_scheduled_changes_removed\\` - Sent when scheduled change for the subscription is removed. \\* \\`subscription_shipping_address_updated\\` - Triggered when shipping address is added or updated for a subscription. \\* \\`subscription_deleted\\` - Sent when a subscription has been deleted \\* \\`subscription_paused\\` - Sent when the subscription is paused. \\* \\`subscription_pause_scheduled\\` - Sent when the subscription is scheduled to pause. \\* \\`subscription_scheduled_pause_removed\\` - Triggered when scheduled pause is removed for the subscription. \\* \\`subscription_resumed\\` - Sent when the subscription is moved from paused state to active state \\* \\`subscription_resumption_scheduled\\` - Triggered when the subscription resumption is scheduled. \\* \\`subscription_scheduled_resumption_removed\\` - Triggered when scheduled resumption is removed for the subscription. \\* \\`subscription_advance_invoice_schedule_added\\` - Triggered when advance invoice is scheduled for a subscription. \\* \\`subscription_advance_invoice_schedule_updated\\` - Triggered when scheduled advance invoice is updated for a subscription. \\* \\`subscription_advance_invoice_schedule_removed\\` - Triggered when scheduled advance invoice is removed for a subscription. \\* \\`pending_invoice_created\\` - Event triggered (in the case of metered billing) when a \"Pending\" invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the \"Notify for Pending Invoices\" option is enabled. \\* \\`pending_invoice_updated\\` - Event triggered when the option \"Notify and wait to close invoices\" is enabled, and the 'Pending' invoice is updated. \\* \\`invoice_generated\\` - Event triggered when a new invoice is generated. In case of metered billing, this event is triggered when a \"Pending\" invoice is closed. \\* \\`invoice_generated_with_backdating\\` - Event triggered when a new invoice is generated with past date as invoice date. \\* \\`invoice_updated\\` - Triggered when the invoice's shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed. \\* \\`invoice_deleted\\` - Event triggered when an invoice is deleted. \\* \\`credit_note_created\\` - Sent when a credit note is created \\* \\`credit_note_created_with_backdating\\` - Sent when a credit note is created with past date as credit note date \\* \\`credit_note_updated\\` - Sent when a credit note is updated \\* \\`credit_note_deleted\\` - Sent when a credit note is deleted \\* \\`payment_schedules_created\\` - Event triggered when new payment schedules are created for an invoice \\* \\`payment_schedules_updated\\` - Event triggered when payment schedules are updated for an invoice \\* \\`payment_schedule_scheme_created\\` - Event triggered when a new payment schedule scheme is created \\* \\`payment_schedule_scheme_deleted\\` - Event triggered when a payment schedule scheme is deleted \\* \\`subscription_renewal_reminder\\` - Sent before each subscription's renewal based on plan's period \\* \\`add_usages_reminder\\` - Sent every month day before renewal date of plan's period \\* \\`payment_due_reminder\\` - Sent after scheduled days of payment failure \\* \\`transaction_created\\` - Triggered when a transaction is recorded \\* \\`transaction_updated\\` - Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated. \\* \\`transaction_deleted\\` - Triggered when a transaction is deleted. \\* \\`payment_succeeded\\` - Sent when the payment is successfully collected \\* \\`payment_failed\\` - Sent when attempt to charge customer's credit card fails \\* \\`dunning_updated\\` - Sent when dunning is paused for an invoice \\* \\`payment_refunded\\` - Sent when a payment refund is made \\* \\`payment_initiated\\` - Sent when a payment is initiated via direct debit \\* \\`refund_initiated\\` - Sent when a refund is initiated via direct debit \\* \\`netd_payment_due_reminder\\` - \\*\\*(Deprecated)\\*\\* Sent when a invoice's due period is about to end \\* \\`authorization_succeeded\\` - Triggered when a authorization transaction is created. \\* \\`authorization_voided\\` - Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time. \\* \\`card_added\\` - Sent when a card is added for a customer. \\* \\`card_updated\\` - Sent when the card is updated for a customer. \\* \\`card_expiry_reminder\\` - Sent when the customer's credit card is expiring soon. Sent 30 days before the expiry date. \\* \\`card_expired\\` - Sent when a card for a customer is expired \\* \\`card_deleted\\` - Sent when a card is deleted for a customer \\* \\`payment_source_added\\` - Sent when a payment source is added for a customer. \\* \\`payment_source_updated\\` - Sent when the payment source is updated for a customer or when role is assigned to the payment source. \\* \\`payment_source_deleted\\` - Sent when a payment source is deleted for a customer \\* \\`payment_source_expiring\\` - Sent when the customer's payment source is expiring soon. Sent 30 days before the expiry date. \\* \\`payment_source_expired\\` - Sent when a payment source for a customer is expired \\* \\`payment_source_locally_deleted\\` - Sent when a payment source for a customer removed from Chargebee \\* \\`virtual_bank_account_added\\` - Sent when a virtual bank account is added for a customer. \\* \\`virtual_bank_account_updated\\` - Sent when the virtual bank account is updated for a customer. \\* \\`virtual_bank_account_deleted\\` - Sent when a virtual bank account is deleted for a customer. \\* \\`token_created\\` - Sent when a Token is created \\* \\`token_consumed\\` - Sent when a Token is consumed \\* \\`token_expired\\` - Sent when a Token is expired \\* \\`unbilled_charges_created\\` - Triggered when unbilled charges are created \\* \\`unbilled_charges_voided\\` - Triggered when unbilled charges are voided \\* \\`unbilled_charges_deleted\\` - Triggered when unbilled charges are deleted \\* \\`unbilled_charges_invoiced\\` - Triggered when unbilled charges are invoiced \\* \\`order_created\\` - Triggered when order is created \\* \\`order_updated\\` - Triggered when order is updated \\* \\`order_cancelled\\` - Triggered when order is cancelled \\* \\`order_delivered\\` - Triggered when order is marked as delivered \\* \\`order_returned\\` - Triggered when order is marked as returned \\* \\`order_ready_to_process\\` - Triggered when order reaches it's order date \\* \\`order_ready_to_ship\\` - Triggered when order reaches it's shipping date \\* \\`order_deleted\\` - Triggered when order is deleted \\* \\`order_resent\\` - Triggered when order is resent \\* \\`quote_created\\` - Triggered when quote is created \\* \\`quote_updated\\` - Triggered when quote is updated \\* \\`quote_deleted\\` - Triggered when quote is deleted \\* \\`tax_withheld_recorded\\` - Triggered when a tax withheld is recorded for an invoice \\* \\`tax_withheld_deleted\\` - Triggered when a tax withheld is deleted \\* \\`tax_withheld_refunded\\` - Sent when a tax withheld refund is made \\* \\`gift_scheduled\\` - Triggered when a new gift is created \\* \\`gift_unclaimed\\` - Triggered when a new gift is unclaimed and is ready to be claimed \\* \\`gift_claimed\\` - Triggered when a gift is claimed \\* \\`gift_expired\\` - Triggered when a gift expires \\* \\`gift_cancelled\\` - Triggered when a gift is cancelled. \\* \\`gift_updated\\` - Triggered when a gift is updated \\* \\`hierarchy_created\\` - Triggered when a hierarchy is created \\* \\`hierarchy_deleted\\` - Triggered when a hierarchy is deleted \\* \\`payment_intent_created\\` - Sent when a Payment intent is created \\* \\`payment_intent_updated\\` - Sent when a Payment intent is updated \\* \\`contract_term_created\\` - Triggered when new contract term is created \\* \\`contract_term_renewed\\` - Triggered when new contract term is renewed \\* \\`contract_term_terminated\\` - Triggered when contract term is terminated \\* \\`contract_term_completed\\` - Triggered when contract term is completed \\* \\`contract_term_cancelled\\` - Triggered when contract term is cancelled \\* \\`item_family_created\\` - Triggered when an item family is created \\* \\`item_family_updated\\` - Triggered when an item family is updated \\* \\`item_family_deleted\\` - Triggered when an item family is deleted \\* \\`item_created\\` - Triggered when an item is created \\* \\`item_updated\\` - Triggered when an item is updated \\* \\`item_deleted\\` - Triggered when an item is deleted \\* \\`item_price_created\\` - Triggered when an item price is created \\* \\`item_price_updated\\` - Triggered when an item price is updated \\* \\`item_price_deleted\\` - Triggered when an item price is deleted \\* \\`attached_item_created\\` - Triggered when an Attached item is created \\* \\`attached_item_updated\\` - Triggered when an Attached item is updated \\* \\`attached_item_deleted\\` - Triggered when an Attached item is deleted \\* \\`differential_price_created\\` - Triggered when a differential price is created \\* \\`differential_price_updated\\` - Triggered when a differential price is updated \\* \\`differential_price_deleted\\` - Triggered when a differential price is deleted \\* \\`feature_created\\` - Triggered when a feature is created. \\* \\`feature_updated\\` - Triggered when an feature is updated \\* \\`feature_deleted\\` - Triggered when a feature is deleted \\* \\`feature_activated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the first time. \\* \\`feature_reactivated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the second time or more. \\* \\`feature_archived\\` - Triggered when an feature is archived \\* \\`item_entitlements_updated\\` - Triggered when item entitlements are updated to a feature \\* \\`entitlement_overrides_updated\\` - Triggered when an override entitlement is updated \\* \\`entitlement_overrides_removed\\` - Triggered when an override entitlement is removed \\* \\`item_entitlements_removed\\` - Triggered when item entitlements are removed for a feature \\* \\`entitlement_overrides_auto_removed\\` - Triggered when Subscription entitlements overrides for a feature are auto removed after expiry \\* \\`subscription_entitlements_created\\` - Triggered when subscription entitlements are created for a new subscription \\* \\`subscription_entitlements_updated\\` - Triggered when subscription entitlements are updated due to the subscription change event \\* \\`business_entity_created\\` - Sent when a business entity is created. \\* \\`business_entity_updated\\` - Sent when a business entity is updated. \\* \\`business_entity_deleted\\` - Sent when a business entity is deleted. \\* \\`customer_business_entity_changed\\` - Sent when a customer's business entity is changed. \\* \\`subscription_business_entity_changed\\` - Sent when a subscription's business entity is changed. \\* \\`purchase_created\\` - Triggered when purchase action is completed successfully \\* \\`voucher_created\\` - Triggered when a payment voucher is created \\* \\`voucher_expired\\` - Triggered when a payment voucher is expired \\* \\`voucher_create_failed\\` - Triggered when a payment voucher creation is failed \\* \\`product_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product create is completed successfully \\* \\`product_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product update is completed successfully \\* \\`product_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product delete is completed successfully \\* \\`variant_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant create completed successfully \\* \\`variant_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant update completed successfully \\* \\`variant_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant delete completed successfully \\* \\`item_price_entitlements_updated\\` - Triggered when item Price entitlements are updated to a feature \\* \\`item_price_entitlements_removed\\` - Triggered when item price entitlements are removed for a feature \\* \\`subscription_ramp_created\\` - Triggered when a subscription ramp is created. \\* \\`subscription_ramp_deleted\\` - Triggered when a subscription ramp is deleted. \\* \\`subscription_ramp_applied\\` - Triggered when a subscription ramp is applied. \\* \\`subscription_ramp_drafted\\` - Triggered when a subscription ramp is moved to draft status. \\* \\`subscription_ramp_updated\\` - Triggered when a subscription ramp is updated. \\* \\`price_variant_created\\` - Triggered when a price variant is created. \\* \\`price_variant_updated\\` - Triggered when a price variant is updated. \\* \\`price_variant_deleted\\` - Triggered when a price variant is deleted. \\* \\`customer_entitlements_updated\\` - Triggered when entitlements for the list of customers got updated. \\* \\`subscription_moved_in\\` - Triggered when a subscription moved from other customer \\* \\`subscription_moved_out\\` - Triggered when a subscription moved to other customer \\* \\`subscription_movement_failed\\` - Triggered when a subscription movement failed \\* \\`omnichannel_subscription_created\\` - Triggered when an omnichannel subscription is created \\* \\`omnichannel_subscription_item_renewed\\` - Triggered when an omnichannel subscription item is renewed \\* \\`omnichannel_subscription_item_downgrade_scheduled\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item is downgrade is scheduled \\* \\`omnichannel_subscription_item_scheduled_downgrade_removed\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item scheduled downgrade is removed \\* \\`omnichannel_subscription_item_downgraded\\` - Triggered when an omnichannel subscription item is downgraded \\* \\`omnichannel_subscription_item_expired\\` - Triggered when an omnichannel subscription item is expired \\* \\`omnichannel_subscription_item_cancellation_scheduled\\` - Triggered when an omnichannel subscription item is scheduled for cancellation \\* \\`omnichannel_subscription_item_scheduled_cancellation_removed\\` - Triggered when an omnichannel subscription item scheduled cancellation is removed \\* \\`omnichannel_subscription_item_resubscribed\\` - Triggered when an omnichannel subscription item is resubscribed \\* \\`omnichannel_subscription_item_upgraded\\` - Triggered when an omnichannel subscription item is upgraded \\* \\`omnichannel_subscription_item_cancelled\\` - Triggered when an omnichannel subscription item is cancelled \\* \\`omnichannel_subscription_imported\\` - Triggered when an omnichannel subscription item is imported \\* \\`omnichannel_subscription_item_grace_period_started\\` - Triggered when an omnichannel subscription item's grace period has started \\* \\`omnichannel_subscription_item_grace_period_expired\\` - Triggered when an omnichannel subscription item's grace period has expired \\* \\`omnichannel_subscription_item_dunning_started\\` - Triggered when an omnichannel subscription item's dunning has started \\* \\`omnichannel_subscription_item_dunning_expired\\` - Triggered when an omnichannel subscription item's dunning has expired \\* \\`rule_created\\` - Triggered when a rule is created \\* \\`rule_updated\\` - Triggered when a rule is updated \\* \\`rule_deleted\\` - Triggered when a rule is deleted \\* \\`record_purchase_failed\\` - Triggered when an omnichannel record purchase is failed \\* \\`omnichannel_subscription_item_change_scheduled\\` - Triggered when an omnichannel subscription item change is scheduled \\* \\`omnichannel_subscription_item_scheduled_change_removed\\` - Triggered when an omnichannel subscription item scheduled change is removed \\* \\`omnichannel_subscription_item_reactivated\\` - Triggered when an omnichannel subscription item's refund is reversed \\* \\`sales_order_created\\` - Triggered when sales order is created \\* \\`sales_order_updated\\` - Triggered when sales order is updated \\* \\`omnichannel_subscription_item_changed\\` - Triggered when an omnichannel subscription item is changed \\* \\`omnichannel_subscription_item_paused\\` - Triggered when an omnichannel subscription item is paused \\* \\`omnichannel_subscription_item_resumed\\` - Triggered when an omnichannel subscription item is resumed \\* \\`omnichannel_one_time_order_created\\` - Triggered when an omnichannel one time order is created \\* \\`omnichannel_one_time_order_item_cancelled\\` - Triggered when an omnichannel one time order item is cancelled \\* \\`usage_file_ingested\\` - Triggered when a usage file is ingested \\* \\`omnichannel_subscription_item_pause_scheduled\\` - Triggered when an omnichannel subscription item scheduled for pause \\* \\`omnichannel_subscription_moved_in\\` - Triggered when an omnichannel subscription is moved into another customer \\* \\`omnichannel_transaction_created\\` - Triggered when an omnichannel transaction is created \\* \\`alert_status_changed\\` - Triggered when the status for an alert changes \\* \\`omnichannel_subscription_item_updated\\` - Triggered when an omnichannel subscription item is updated \\* \\`omnichannel_subscription_item_recovered\\` - Triggered when an omnichannel subscription item is recovered from grace period or dunning\n",
                "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`coupon_created\\` - Sent when a coupon is created. \\* \\`coupon_updated\\` - Sent when a coupon is changed. \\* \\`coupon_deleted\\` - Sent when a coupon is deleted. \\* \\`coupon_set_created\\` - Sent when a coupon set is created \\* \\`coupon_set_updated\\` - Sent when a coupon set is changed \\* \\`coupon_set_deleted\\` - Sent when a coupon set is deleted \\* \\`coupon_codes_added\\` - Sent when coupon codes are added in coupon set \\* \\`coupon_codes_deleted\\` - Sent when coupon codes are deleted in coupon set \\* \\`coupon_codes_updated\\` - Sent when coupon codes are updated \\* \\`customer_created\\` - Sent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation. \\* \\`customer_changed\\` - Sent when a customer is changed \\* \\`customer_deleted\\` - Sent when a customer is deleted \\* \\`customer_moved_out\\` - Sent when a customer is copied to another site \\* \\`customer_moved_in\\` - Sent when a customer is copied from another site \\* \\`promotional_credits_added\\` - Sent when a customer prmotion credits added \\* \\`promotional_credits_deducted\\` - Sent when a customer prmotion credits deducted \\* \\`subscription_created\\` - Sent when a new subscription is created. \\* \\`subscription_created_with_backdating\\` - Sent when a new subscription is created with backdating. \\* \\`subscription_started\\` - Sent when a 'future' subscription gets started at the scheduled date. \\* \\`subscription_trial_end_reminder\\` - Sent when the customer's trial period is about to end. \\* \\`subscription_activated\\` - Sent after the subscription has been moved from trial to active state \\* \\`subscription_activated_with_backdating\\` - Sent after the subscription changes to \\`active\\` from another \\`status\\`, while the change is backdated. \\* \\`subscription_changed\\` - Sent after the subscription's recurring items have been changed \\* \\`subscription_trial_extended\\` - Trial Extension \\* \\`mrr_updated\\` - Sent when either of MRR or CMRR of a subscription changes \\* \\`subscription_changed_with_backdating\\` - Sent after the subscription's recurring items have been changed with backdated date \\* \\`subscription_cancellation_scheduled\\` - Sent when subscription is scheduled to cancel at end of current term \\* \\`subscription_cancellation_reminder\\` - Sent when the customer's subscription is nearing it's scheduled cancellation date. \\* \\`subscription_cancelled\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_canceled_with_backdating\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_reactivated\\` - Sent when the subscription is moved from cancelled state to active or in_trial state \\* \\`subscription_reactivated_with_backdating\\` - Sent when the subscription is moved from cancelled state to active or in_trial state with past date \\* \\`subscription_renewed\\` - Sent when the subscription is renewed from the current term. \\* \\`subscription_items_renewed\\` - Sent when one or more Subscription Items are renewed \\* \\`subscription_scheduled_cancellation_removed\\` - Sent when scheduled cancellation is removed for the subscription. \\* \\`subscription_changes_scheduled\\` - Sent when subscription changes are scheduled for later. Changes will be applied at the end of current term. \\* \\`subscription_scheduled_changes_removed\\` - Sent when scheduled change for the subscription is removed. \\* \\`subscription_shipping_address_updated\\` - Triggered when shipping address is added or updated for a subscription. \\* \\`subscription_deleted\\` - Sent when a subscription has been deleted \\* \\`subscription_paused\\` - Sent when the subscription is paused. \\* \\`subscription_pause_scheduled\\` - Sent when the subscription is scheduled to pause. \\* \\`subscription_scheduled_pause_removed\\` - Triggered when scheduled pause is removed for the subscription. \\* \\`subscription_resumed\\` - Sent when the subscription is moved from paused state to active state \\* \\`subscription_resumption_scheduled\\` - Triggered when the subscription resumption is scheduled. \\* \\`subscription_scheduled_resumption_removed\\` - Triggered when scheduled resumption is removed for the subscription. \\* \\`subscription_advance_invoice_schedule_added\\` - Triggered when advance invoice is scheduled for a subscription. \\* \\`subscription_advance_invoice_schedule_updated\\` - Triggered when scheduled advance invoice is updated for a subscription. \\* \\`subscription_advance_invoice_schedule_removed\\` - Triggered when scheduled advance invoice is removed for a subscription. \\* \\`pending_invoice_created\\` - Event triggered (in the case of metered billing) when a \"Pending\" invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the \"Notify for Pending Invoices\" option is enabled. \\* \\`pending_invoice_updated\\` - Event triggered when the option \"Notify and wait to close invoices\" is enabled, and the 'Pending' invoice is updated. \\* \\`invoice_generated\\` - Event triggered when a new invoice is generated. In case of metered billing, this event is triggered when a \"Pending\" invoice is closed. \\* \\`invoice_generated_with_backdating\\` - Event triggered when a new invoice is generated with past date as invoice date. \\* \\`invoice_updated\\` - Triggered when the invoice's shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed. \\* \\`invoice_deleted\\` - Event triggered when an invoice is deleted. \\* \\`credit_note_created\\` - Sent when a credit note is created \\* \\`credit_note_created_with_backdating\\` - Sent when a credit note is created with past date as credit note date \\* \\`credit_note_updated\\` - Sent when a credit note is updated \\* \\`credit_note_deleted\\` - Sent when a credit note is deleted \\* \\`payment_schedules_created\\` - Event triggered when new payment schedules are created for an invoice \\* \\`payment_schedules_updated\\` - Event triggered when payment schedules are updated for an invoice \\* \\`payment_schedule_scheme_created\\` - Event triggered when a new payment schedule scheme is created \\* \\`payment_schedule_scheme_deleted\\` - Event triggered when a payment schedule scheme is deleted \\* \\`subscription_renewal_reminder\\` - Sent before each subscription's renewal based on plan's period \\* \\`add_usages_reminder\\` - Sent every month day before renewal date of plan's period \\* \\`payment_due_reminder\\` - Sent after scheduled days of payment failure \\* \\`transaction_created\\` - Triggered when a transaction is recorded \\* \\`transaction_updated\\` - Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated. \\* \\`transaction_deleted\\` - Triggered when a transaction is deleted. \\* \\`payment_succeeded\\` - Sent when the payment is successfully collected \\* \\`payment_failed\\` - Sent when attempt to charge customer's credit card fails \\* \\`dunning_updated\\` - Sent when dunning is paused for an invoice \\* \\`payment_refunded\\` - Sent when a payment refund is made \\* \\`payment_initiated\\` - Sent when a payment is initiated via direct debit \\* \\`refund_initiated\\` - Sent when a refund is initiated via direct debit \\* \\`netd_payment_due_reminder\\` - \\*\\*(Deprecated)\\*\\* Sent when a invoice's due period is about to end \\* \\`authorization_succeeded\\` - Triggered when a authorization transaction is created. \\* \\`authorization_voided\\` - Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time. \\* \\`card_added\\` - Sent when a card is added for a customer. \\* \\`card_updated\\` - Sent when the card is updated for a customer. \\* \\`card_expiry_reminder\\` - Sent when the customer's credit card is expiring soon. Sent 30 days before the expiry date. \\* \\`card_expired\\` - Sent when a card for a customer is expired \\* \\`card_deleted\\` - Sent when a card is deleted for a customer \\* \\`payment_source_added\\` - Sent when a payment source is added for a customer. \\* \\`payment_source_updated\\` - Sent when the payment source is updated for a customer or when role is assigned to the payment source. \\* \\`payment_source_deleted\\` - Sent when a payment source is deleted for a customer \\* \\`payment_source_expiring\\` - Sent when the customer's payment source is expiring soon. Sent 30 days before the expiry date. \\* \\`payment_source_expired\\` - Sent when a payment source for a customer is expired \\* \\`payment_source_locally_deleted\\` - Sent when a payment source for a customer removed from Chargebee \\* \\`virtual_bank_account_added\\` - Sent when a virtual bank account is added for a customer. \\* \\`virtual_bank_account_updated\\` - Sent when the virtual bank account is updated for a customer. \\* \\`virtual_bank_account_deleted\\` - Sent when a virtual bank account is deleted for a customer. \\* \\`token_created\\` - Sent when a Token is created \\* \\`token_consumed\\` - Sent when a Token is consumed \\* \\`token_expired\\` - Sent when a Token is expired \\* \\`unbilled_charges_created\\` - Triggered when unbilled charges are created \\* \\`unbilled_charges_voided\\` - Triggered when unbilled charges are voided \\* \\`unbilled_charges_deleted\\` - Triggered when unbilled charges are deleted \\* \\`unbilled_charges_invoiced\\` - Triggered when unbilled charges are invoiced \\* \\`order_created\\` - Triggered when order is created \\* \\`order_updated\\` - Triggered when order is updated \\* \\`order_cancelled\\` - Triggered when order is cancelled \\* \\`order_delivered\\` - Triggered when order is marked as delivered \\* \\`order_returned\\` - Triggered when order is marked as returned \\* \\`order_ready_to_process\\` - Triggered when order reaches it's order date \\* \\`order_ready_to_ship\\` - Triggered when order reaches it's shipping date \\* \\`order_deleted\\` - Triggered when order is deleted \\* \\`order_resent\\` - Triggered when order is resent \\* \\`quote_created\\` - Triggered when quote is created \\* \\`quote_updated\\` - Triggered when quote is updated \\* \\`quote_deleted\\` - Triggered when quote is deleted \\* \\`tax_withheld_recorded\\` - Triggered when a tax withheld is recorded for an invoice \\* \\`tax_withheld_deleted\\` - Triggered when a tax withheld is deleted \\* \\`tax_withheld_refunded\\` - Sent when a tax withheld refund is made \\* \\`gift_scheduled\\` - Triggered when a new gift is created \\* \\`gift_unclaimed\\` - Triggered when a new gift is unclaimed and is ready to be claimed \\* \\`gift_claimed\\` - Triggered when a gift is claimed \\* \\`gift_expired\\` - Triggered when a gift expires \\* \\`gift_cancelled\\` - Triggered when a gift is cancelled. \\* \\`gift_updated\\` - Triggered when a gift is updated \\* \\`hierarchy_created\\` - Triggered when a hierarchy is created \\* \\`hierarchy_deleted\\` - Triggered when a hierarchy is deleted \\* \\`payment_intent_created\\` - Sent when a Payment intent is created \\* \\`payment_intent_updated\\` - Sent when a Payment intent is updated \\* \\`contract_term_created\\` - Triggered when new contract term is created \\* \\`contract_term_renewed\\` - Triggered when new contract term is renewed \\* \\`contract_term_terminated\\` - Triggered when contract term is terminated \\* \\`contract_term_completed\\` - Triggered when contract term is completed \\* \\`contract_term_cancelled\\` - Triggered when contract term is cancelled \\* \\`item_family_created\\` - Triggered when an item family is created \\* \\`item_family_updated\\` - Triggered when an item family is updated \\* \\`item_family_deleted\\` - Triggered when an item family is deleted \\* \\`item_created\\` - Triggered when an item is created \\* \\`item_updated\\` - Triggered when an item is updated \\* \\`item_deleted\\` - Triggered when an item is deleted \\* \\`item_price_created\\` - Triggered when an item price is created \\* \\`item_price_updated\\` - Triggered when an item price is updated \\* \\`item_price_deleted\\` - Triggered when an item price is deleted \\* \\`attached_item_created\\` - Triggered when an Attached item is created \\* \\`attached_item_updated\\` - Triggered when an Attached item is updated \\* \\`attached_item_deleted\\` - Triggered when an Attached item is deleted \\* \\`differential_price_created\\` - Triggered when a differential price is created \\* \\`differential_price_updated\\` - Triggered when a differential price is updated \\* \\`differential_price_deleted\\` - Triggered when a differential price is deleted \\* \\`feature_created\\` - Triggered when a feature is created. \\* \\`feature_updated\\` - Triggered when an feature is updated \\* \\`feature_deleted\\` - Triggered when a feature is deleted \\* \\`feature_activated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the first time. \\* \\`feature_reactivated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the second time or more. \\* \\`feature_archived\\` - Triggered when an feature is archived \\* \\`item_entitlements_updated\\` - Triggered when item entitlements are updated to a feature \\* \\`entitlement_overrides_updated\\` - Triggered when an override entitlement is updated \\* \\`entitlement_overrides_removed\\` - Triggered when an override entitlement is removed \\* \\`item_entitlements_removed\\` - Triggered when item entitlements are removed for a feature \\* \\`entitlement_overrides_auto_removed\\` - Triggered when Subscription entitlements overrides for a feature are auto removed after expiry \\* \\`subscription_entitlements_created\\` - Triggered when subscription entitlements are created for a new subscription \\* \\`subscription_entitlements_updated\\` - Triggered when subscription entitlements are updated due to the subscription change event \\* \\`business_entity_created\\` - Sent when a business entity is created. \\* \\`business_entity_updated\\` - Sent when a business entity is updated. \\* \\`business_entity_deleted\\` - Sent when a business entity is deleted. \\* \\`customer_business_entity_changed\\` - Sent when a customer's business entity is changed. \\* \\`subscription_business_entity_changed\\` - Sent when a subscription's business entity is changed. \\* \\`purchase_created\\` - Triggered when purchase action is completed successfully \\* \\`voucher_created\\` - Triggered when a payment voucher is created \\* \\`voucher_expired\\` - Triggered when a payment voucher is expired \\* \\`voucher_create_failed\\` - Triggered when a payment voucher creation is failed \\* \\`product_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product create is completed successfully \\* \\`product_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product update is completed successfully \\* \\`product_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product delete is completed successfully \\* \\`variant_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant create completed successfully \\* \\`variant_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant update completed successfully \\* \\`variant_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant delete completed successfully \\* \\`item_price_entitlements_updated\\` - Triggered when item Price entitlements are updated to a feature \\* \\`item_price_entitlements_removed\\` - Triggered when item price entitlements are removed for a feature \\* \\`subscription_ramp_created\\` - Triggered when a subscription ramp is created. \\* \\`subscription_ramp_deleted\\` - Triggered when a subscription ramp is deleted. \\* \\`subscription_ramp_applied\\` - Triggered when a subscription ramp is applied. \\* \\`subscription_ramp_drafted\\` - Triggered when a subscription ramp is moved to draft status. \\* \\`subscription_ramp_updated\\` - Triggered when a subscription ramp is updated. \\* \\`price_variant_created\\` - Triggered when a price variant is created. \\* \\`price_variant_updated\\` - Triggered when a price variant is updated. \\* \\`price_variant_deleted\\` - Triggered when a price variant is deleted. \\* \\`customer_entitlements_updated\\` - Triggered when entitlements for the list of customers got updated. \\* \\`subscription_moved_in\\` - Triggered when a subscription moved from other customer \\* \\`subscription_moved_out\\` - Triggered when a subscription moved to other customer \\* \\`subscription_movement_failed\\` - Triggered when a subscription movement failed \\* \\`omnichannel_subscription_created\\` - Triggered when an omnichannel subscription is created \\* \\`omnichannel_subscription_item_renewed\\` - Triggered when an omnichannel subscription item is renewed \\* \\`omnichannel_subscription_item_downgrade_scheduled\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item is downgrade is scheduled \\* \\`omnichannel_subscription_item_scheduled_downgrade_removed\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item scheduled downgrade is removed \\* \\`omnichannel_subscription_item_downgraded\\` - Triggered when an omnichannel subscription item is downgraded \\* \\`omnichannel_subscription_item_expired\\` - Triggered when an omnichannel subscription item is expired \\* \\`omnichannel_subscription_item_cancellation_scheduled\\` - Triggered when an omnichannel subscription item is scheduled for cancellation \\* \\`omnichannel_subscription_item_scheduled_cancellation_removed\\` - Triggered when an omnichannel subscription item scheduled cancellation is removed \\* \\`omnichannel_subscription_item_resubscribed\\` - Triggered when an omnichannel subscription item is resubscribed \\* \\`omnichannel_subscription_item_upgraded\\` - Triggered when an omnichannel subscription item is upgraded \\* \\`omnichannel_subscription_item_cancelled\\` - Triggered when an omnichannel subscription item is cancelled \\* \\`omnichannel_subscription_imported\\` - Triggered when an omnichannel subscription item is imported \\* \\`omnichannel_subscription_item_grace_period_started\\` - Triggered when an omnichannel subscription item's grace period has started \\* \\`omnichannel_subscription_item_grace_period_expired\\` - Triggered when an omnichannel subscription item's grace period has expired \\* \\`omnichannel_subscription_item_dunning_started\\` - Triggered when an omnichannel subscription item's dunning has started \\* \\`omnichannel_subscription_item_dunning_expired\\` - Triggered when an omnichannel subscription item's dunning has expired \\* \\`rule_created\\` - Triggered when a rule is created \\* \\`rule_updated\\` - Triggered when a rule is updated \\* \\`rule_deleted\\` - Triggered when a rule is deleted \\* \\`record_purchase_failed\\` - Triggered when an omnichannel record purchase is failed \\* \\`omnichannel_subscription_item_change_scheduled\\` - Triggered when an omnichannel subscription item change is scheduled \\* \\`omnichannel_subscription_item_scheduled_change_removed\\` - Triggered when an omnichannel subscription item scheduled change is removed \\* \\`omnichannel_subscription_item_reactivated\\` - Triggered when an omnichannel subscription item's refund is reversed \\* \\`sales_order_created\\` - Triggered when sales order is created \\* \\`sales_order_updated\\` - Triggered when sales order is updated \\* \\`omnichannel_subscription_item_changed\\` - Triggered when an omnichannel subscription item is changed \\* \\`omnichannel_subscription_item_paused\\` - Triggered when an omnichannel subscription item is paused \\* \\`omnichannel_subscription_item_resumed\\` - Triggered when an omnichannel subscription item is resumed \\* \\`omnichannel_one_time_order_created\\` - Triggered when an omnichannel one time order is created \\* \\`omnichannel_one_time_order_item_cancelled\\` - Triggered when an omnichannel one time order item is cancelled \\* \\`usage_file_ingested\\` - Triggered when a usage file is ingested \\* \\`omnichannel_subscription_item_pause_scheduled\\` - Triggered when an omnichannel subscription item scheduled for pause \\* \\`omnichannel_subscription_moved_in\\` - Triggered when an omnichannel subscription is moved into another customer \\* \\`omnichannel_transaction_created\\` - Triggered when an omnichannel transaction is created \\* \\`alert_status_changed\\` - Triggered when the status for an alert changes \\* \\`omnichannel_subscription_item_updated\\` - Triggered when an omnichannel subscription item is updated \\* \\`omnichannel_subscription_item_recovered\\` - Triggered when an omnichannel subscription item is recovered from grace period or dunning\n",
                "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
                "pattern" : "^\\[(coupon_created|coupon_updated|coupon_deleted|coupon_set_created|coupon_set_updated|coupon_set_deleted|coupon_codes_added|coupon_codes_deleted|coupon_codes_updated|customer_created|customer_changed|customer_deleted|customer_moved_out|customer_moved_in|promotional_credits_added|promotional_credits_deducted|subscription_created|subscription_created_with_backdating|subscription_started|subscription_trial_end_reminder|subscription_activated|subscription_activated_with_backdating|subscription_changed|subscription_trial_extended|mrr_updated|subscription_changed_with_backdating|subscription_cancellation_scheduled|subscription_cancellation_reminder|subscription_cancelled|subscription_canceled_with_backdating|subscription_reactivated|subscription_reactivated_with_backdating|subscription_renewed|subscription_items_renewed|subscription_scheduled_cancellation_removed|subscription_changes_scheduled|subscription_scheduled_changes_removed|subscription_shipping_address_updated|subscription_deleted|subscription_paused|subscription_pause_scheduled|subscription_scheduled_pause_removed|subscription_resumed|subscription_resumption_scheduled|subscription_scheduled_resumption_removed|subscription_advance_invoice_schedule_added|subscription_advance_invoice_schedule_updated|subscription_advance_invoice_schedule_removed|pending_invoice_created|pending_invoice_updated|invoice_generated|invoice_generated_with_backdating|invoice_updated|invoice_deleted|credit_note_created|credit_note_created_with_backdating|credit_note_updated|credit_note_deleted|payment_schedules_created|payment_schedules_updated|payment_schedule_scheme_created|payment_schedule_scheme_deleted|subscription_renewal_reminder|add_usages_reminder|payment_due_reminder|transaction_created|transaction_updated|transaction_deleted|payment_succeeded|payment_failed|dunning_updated|payment_refunded|payment_initiated|refund_initiated|netd_payment_due_reminder|authorization_succeeded|authorization_voided|card_added|card_updated|card_expiry_reminder|card_expired|card_deleted|payment_source_added|payment_source_updated|payment_source_deleted|payment_source_expiring|payment_source_expired|payment_source_locally_deleted|virtual_bank_account_added|virtual_bank_account_updated|virtual_bank_account_deleted|token_created|token_consumed|token_expired|unbilled_charges_created|unbilled_charges_voided|unbilled_charges_deleted|unbilled_charges_invoiced|order_created|order_updated|order_cancelled|order_delivered|order_returned|order_ready_to_process|order_ready_to_ship|order_deleted|order_resent|quote_created|quote_updated|quote_deleted|tax_withheld_recorded|tax_withheld_deleted|tax_withheld_refunded|gift_scheduled|gift_unclaimed|gift_claimed|gift_expired|gift_cancelled|gift_updated|hierarchy_created|hierarchy_deleted|payment_intent_created|payment_intent_updated|contract_term_created|contract_term_renewed|contract_term_terminated|contract_term_completed|contract_term_cancelled|item_family_created|item_family_updated|item_family_deleted|item_created|item_updated|item_deleted|item_price_created|item_price_updated|item_price_deleted|attached_item_created|attached_item_updated|attached_item_deleted|differential_price_created|differential_price_updated|differential_price_deleted|feature_created|feature_updated|feature_deleted|feature_activated|feature_reactivated|feature_archived|item_entitlements_updated|entitlement_overrides_updated|entitlement_overrides_removed|item_entitlements_removed|entitlement_overrides_auto_removed|subscription_entitlements_created|subscription_entitlements_updated|business_entity_created|business_entity_updated|business_entity_deleted|customer_business_entity_changed|subscription_business_entity_changed|purchase_created|voucher_created|voucher_expired|voucher_create_failed|product_created|product_updated|product_deleted|variant_created|variant_updated|variant_deleted|item_price_entitlements_updated|item_price_entitlements_removed|subscription_ramp_created|subscription_ramp_deleted|subscription_ramp_applied|subscription_ramp_drafted|subscription_ramp_updated|price_variant_created|price_variant_updated|price_variant_deleted|customer_entitlements_updated|subscription_moved_in|subscription_moved_out|subscription_movement_failed|omnichannel_subscription_created|omnichannel_subscription_item_renewed|omnichannel_subscription_item_downgrade_scheduled|omnichannel_subscription_item_scheduled_downgrade_removed|omnichannel_subscription_item_downgraded|omnichannel_subscription_item_expired|omnichannel_subscription_item_cancellation_scheduled|omnichannel_subscription_item_scheduled_cancellation_removed|omnichannel_subscription_item_resubscribed|omnichannel_subscription_item_upgraded|omnichannel_subscription_item_cancelled|omnichannel_subscription_imported|omnichannel_subscription_item_grace_period_started|omnichannel_subscription_item_grace_period_expired|omnichannel_subscription_item_dunning_started|omnichannel_subscription_item_dunning_expired|rule_created|rule_updated|rule_deleted|record_purchase_failed|omnichannel_subscription_item_change_scheduled|omnichannel_subscription_item_scheduled_change_removed|omnichannel_subscription_item_reactivated|sales_order_created|sales_order_updated|omnichannel_subscription_item_changed|omnichannel_subscription_item_paused|omnichannel_subscription_item_resumed|omnichannel_one_time_order_created|omnichannel_one_time_order_item_cancelled|usage_file_ingested|omnichannel_subscription_item_pause_scheduled|omnichannel_subscription_moved_in|omnichannel_transaction_created|alert_status_changed|omnichannel_subscription_item_updated|omnichannel_subscription_item_recovered)(,(coupon_created|coupon_updated|coupon_deleted|coupon_set_created|coupon_set_updated|coupon_set_deleted|coupon_codes_added|coupon_codes_deleted|coupon_codes_updated|customer_created|customer_changed|customer_deleted|customer_moved_out|customer_moved_in|promotional_credits_added|promotional_credits_deducted|subscription_created|subscription_created_with_backdating|subscription_started|subscription_trial_end_reminder|subscription_activated|subscription_activated_with_backdating|subscription_changed|subscription_trial_extended|mrr_updated|subscription_changed_with_backdating|subscription_cancellation_scheduled|subscription_cancellation_reminder|subscription_cancelled|subscription_canceled_with_backdating|subscription_reactivated|subscription_reactivated_with_backdating|subscription_renewed|subscription_items_renewed|subscription_scheduled_cancellation_removed|subscription_changes_scheduled|subscription_scheduled_changes_removed|subscription_shipping_address_updated|subscription_deleted|subscription_paused|subscription_pause_scheduled|subscription_scheduled_pause_removed|subscription_resumed|subscription_resumption_scheduled|subscription_scheduled_resumption_removed|subscription_advance_invoice_schedule_added|subscription_advance_invoice_schedule_updated|subscription_advance_invoice_schedule_removed|pending_invoice_created|pending_invoice_updated|invoice_generated|invoice_generated_with_backdating|invoice_updated|invoice_deleted|credit_note_created|credit_note_created_with_backdating|credit_note_updated|credit_note_deleted|payment_schedules_created|payment_schedules_updated|payment_schedule_scheme_created|payment_schedule_scheme_deleted|subscription_renewal_reminder|add_usages_reminder|payment_due_reminder|transaction_created|transaction_updated|transaction_deleted|payment_succeeded|payment_failed|dunning_updated|payment_refunded|payment_initiated|refund_initiated|netd_payment_due_reminder|authorization_succeeded|authorization_voided|card_added|card_updated|card_expiry_reminder|card_expired|card_deleted|payment_source_added|payment_source_updated|payment_source_deleted|payment_source_expiring|payment_source_expired|payment_source_locally_deleted|virtual_bank_account_added|virtual_bank_account_updated|virtual_bank_account_deleted|token_created|token_consumed|token_expired|unbilled_charges_created|unbilled_charges_voided|unbilled_charges_deleted|unbilled_charges_invoiced|order_created|order_updated|order_cancelled|order_delivered|order_returned|order_ready_to_process|order_ready_to_ship|order_deleted|order_resent|quote_created|quote_updated|quote_deleted|tax_withheld_recorded|tax_withheld_deleted|tax_withheld_refunded|gift_scheduled|gift_unclaimed|gift_claimed|gift_expired|gift_cancelled|gift_updated|hierarchy_created|hierarchy_deleted|payment_intent_created|payment_intent_updated|contract_term_created|contract_term_renewed|contract_term_terminated|contract_term_completed|contract_term_cancelled|item_family_created|item_family_updated|item_family_deleted|item_created|item_updated|item_deleted|item_price_created|item_price_updated|item_price_deleted|attached_item_created|attached_item_updated|attached_item_deleted|differential_price_created|differential_price_updated|differential_price_deleted|feature_created|feature_updated|feature_deleted|feature_activated|feature_reactivated|feature_archived|item_entitlements_updated|entitlement_overrides_updated|entitlement_overrides_removed|item_entitlements_removed|entitlement_overrides_auto_removed|subscription_entitlements_created|subscription_entitlements_updated|business_entity_created|business_entity_updated|business_entity_deleted|customer_business_entity_changed|subscription_business_entity_changed|purchase_created|voucher_created|voucher_expired|voucher_create_failed|product_created|product_updated|product_deleted|variant_created|variant_updated|variant_deleted|item_price_entitlements_updated|item_price_entitlements_removed|subscription_ramp_created|subscription_ramp_deleted|subscription_ramp_applied|subscription_ramp_drafted|subscription_ramp_updated|price_variant_created|price_variant_updated|price_variant_deleted|customer_entitlements_updated|subscription_moved_in|subscription_moved_out|subscription_movement_failed|omnichannel_subscription_created|omnichannel_subscription_item_renewed|omnichannel_subscription_item_downgrade_scheduled|omnichannel_subscription_item_scheduled_downgrade_removed|omnichannel_subscription_item_downgraded|omnichannel_subscription_item_expired|omnichannel_subscription_item_cancellation_scheduled|omnichannel_subscription_item_scheduled_cancellation_removed|omnichannel_subscription_item_resubscribed|omnichannel_subscription_item_upgraded|omnichannel_subscription_item_cancelled|omnichannel_subscription_imported|omnichannel_subscription_item_grace_period_started|omnichannel_subscription_item_grace_period_expired|omnichannel_subscription_item_dunning_started|omnichannel_subscription_item_dunning_expired|rule_created|rule_updated|rule_deleted|record_purchase_failed|omnichannel_subscription_item_change_scheduled|omnichannel_subscription_item_scheduled_change_removed|omnichannel_subscription_item_reactivated|sales_order_created|sales_order_updated|omnichannel_subscription_item_changed|omnichannel_subscription_item_paused|omnichannel_subscription_item_resumed|omnichannel_one_time_order_created|omnichannel_one_time_order_item_cancelled|usage_file_ingested|omnichannel_subscription_item_pause_scheduled|omnichannel_subscription_moved_in|omnichannel_transaction_created|alert_status_changed|omnichannel_subscription_item_updated|omnichannel_subscription_item_recovered))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`coupon_created\\` - Sent when a coupon is created. \\* \\`coupon_updated\\` - Sent when a coupon is changed. \\* \\`coupon_deleted\\` - Sent when a coupon is deleted. \\* \\`coupon_set_created\\` - Sent when a coupon set is created \\* \\`coupon_set_updated\\` - Sent when a coupon set is changed \\* \\`coupon_set_deleted\\` - Sent when a coupon set is deleted \\* \\`coupon_codes_added\\` - Sent when coupon codes are added in coupon set \\* \\`coupon_codes_deleted\\` - Sent when coupon codes are deleted in coupon set \\* \\`coupon_codes_updated\\` - Sent when coupon codes are updated \\* \\`customer_created\\` - Sent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation. \\* \\`customer_changed\\` - Sent when a customer is changed \\* \\`customer_deleted\\` - Sent when a customer is deleted \\* \\`customer_moved_out\\` - Sent when a customer is copied to another site \\* \\`customer_moved_in\\` - Sent when a customer is copied from another site \\* \\`promotional_credits_added\\` - Sent when a customer prmotion credits added \\* \\`promotional_credits_deducted\\` - Sent when a customer prmotion credits deducted \\* \\`subscription_created\\` - Sent when a new subscription is created. \\* \\`subscription_created_with_backdating\\` - Sent when a new subscription is created with backdating. \\* \\`subscription_started\\` - Sent when a 'future' subscription gets started at the scheduled date. \\* \\`subscription_trial_end_reminder\\` - Sent when the customer's trial period is about to end. \\* \\`subscription_activated\\` - Sent after the subscription has been moved from trial to active state \\* \\`subscription_activated_with_backdating\\` - Sent after the subscription changes to \\`active\\` from another \\`status\\`, while the change is backdated. \\* \\`subscription_changed\\` - Sent after the subscription's recurring items have been changed \\* \\`subscription_trial_extended\\` - Trial Extension \\* \\`mrr_updated\\` - Sent when either of MRR or CMRR of a subscription changes \\* \\`subscription_changed_with_backdating\\` - Sent after the subscription's recurring items have been changed with backdated date \\* \\`subscription_cancellation_scheduled\\` - Sent when subscription is scheduled to cancel at end of current term \\* \\`subscription_cancellation_reminder\\` - Sent when the customer's subscription is nearing it's scheduled cancellation date. \\* \\`subscription_cancelled\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_canceled_with_backdating\\` - Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'. \\* \\`subscription_reactivated\\` - Sent when the subscription is moved from cancelled state to active or in_trial state \\* \\`subscription_reactivated_with_backdating\\` - Sent when the subscription is moved from cancelled state to active or in_trial state with past date \\* \\`subscription_renewed\\` - Sent when the subscription is renewed from the current term. \\* \\`subscription_items_renewed\\` - Sent when one or more Subscription Items are renewed \\* \\`subscription_scheduled_cancellation_removed\\` - Sent when scheduled cancellation is removed for the subscription. \\* \\`subscription_changes_scheduled\\` - Sent when subscription changes are scheduled for later. Changes will be applied at the end of current term. \\* \\`subscription_scheduled_changes_removed\\` - Sent when scheduled change for the subscription is removed. \\* \\`subscription_shipping_address_updated\\` - Triggered when shipping address is added or updated for a subscription. \\* \\`subscription_deleted\\` - Sent when a subscription has been deleted \\* \\`subscription_paused\\` - Sent when the subscription is paused. \\* \\`subscription_pause_scheduled\\` - Sent when the subscription is scheduled to pause. \\* \\`subscription_scheduled_pause_removed\\` - Triggered when scheduled pause is removed for the subscription. \\* \\`subscription_resumed\\` - Sent when the subscription is moved from paused state to active state \\* \\`subscription_resumption_scheduled\\` - Triggered when the subscription resumption is scheduled. \\* \\`subscription_scheduled_resumption_removed\\` - Triggered when scheduled resumption is removed for the subscription. \\* \\`subscription_advance_invoice_schedule_added\\` - Triggered when advance invoice is scheduled for a subscription. \\* \\`subscription_advance_invoice_schedule_updated\\` - Triggered when scheduled advance invoice is updated for a subscription. \\* \\`subscription_advance_invoice_schedule_removed\\` - Triggered when scheduled advance invoice is removed for a subscription. \\* \\`pending_invoice_created\\` - Event triggered (in the case of metered billing) when a \"Pending\" invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the \"Notify for Pending Invoices\" option is enabled. \\* \\`pending_invoice_updated\\` - Event triggered when the option \"Notify and wait to close invoices\" is enabled, and the 'Pending' invoice is updated. \\* \\`invoice_generated\\` - Event triggered when a new invoice is generated. In case of metered billing, this event is triggered when a \"Pending\" invoice is closed. \\* \\`invoice_generated_with_backdating\\` - Event triggered when a new invoice is generated with past date as invoice date. \\* \\`invoice_updated\\` - Triggered when the invoice's shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed. \\* \\`invoice_deleted\\` - Event triggered when an invoice is deleted. \\* \\`credit_note_created\\` - Sent when a credit note is created \\* \\`credit_note_created_with_backdating\\` - Sent when a credit note is created with past date as credit note date \\* \\`credit_note_updated\\` - Sent when a credit note is updated \\* \\`credit_note_deleted\\` - Sent when a credit note is deleted \\* \\`payment_schedules_created\\` - Event triggered when new payment schedules are created for an invoice \\* \\`payment_schedules_updated\\` - Event triggered when payment schedules are updated for an invoice \\* \\`payment_schedule_scheme_created\\` - Event triggered when a new payment schedule scheme is created \\* \\`payment_schedule_scheme_deleted\\` - Event triggered when a payment schedule scheme is deleted \\* \\`subscription_renewal_reminder\\` - Sent before each subscription's renewal based on plan's period \\* \\`add_usages_reminder\\` - Sent every month day before renewal date of plan's period \\* \\`payment_due_reminder\\` - Sent after scheduled days of payment failure \\* \\`transaction_created\\` - Triggered when a transaction is recorded \\* \\`transaction_updated\\` - Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated. \\* \\`transaction_deleted\\` - Triggered when a transaction is deleted. \\* \\`payment_succeeded\\` - Sent when the payment is successfully collected \\* \\`payment_failed\\` - Sent when attempt to charge customer's credit card fails \\* \\`dunning_updated\\` - Sent when dunning is paused for an invoice \\* \\`payment_refunded\\` - Sent when a payment refund is made \\* \\`payment_initiated\\` - Sent when a payment is initiated via direct debit \\* \\`refund_initiated\\` - Sent when a refund is initiated via direct debit \\* \\`netd_payment_due_reminder\\` - \\*\\*(Deprecated)\\*\\* Sent when a invoice's due period is about to end \\* \\`authorization_succeeded\\` - Triggered when a authorization transaction is created. \\* \\`authorization_voided\\` - Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time. \\* \\`card_added\\` - Sent when a card is added for a customer. \\* \\`card_updated\\` - Sent when the card is updated for a customer. \\* \\`card_expiry_reminder\\` - Sent when the customer's credit card is expiring soon. Sent 30 days before the expiry date. \\* \\`card_expired\\` - Sent when a card for a customer is expired \\* \\`card_deleted\\` - Sent when a card is deleted for a customer \\* \\`payment_source_added\\` - Sent when a payment source is added for a customer. \\* \\`payment_source_updated\\` - Sent when the payment source is updated for a customer or when role is assigned to the payment source. \\* \\`payment_source_deleted\\` - Sent when a payment source is deleted for a customer \\* \\`payment_source_expiring\\` - Sent when the customer's payment source is expiring soon. Sent 30 days before the expiry date. \\* \\`payment_source_expired\\` - Sent when a payment source for a customer is expired \\* \\`payment_source_locally_deleted\\` - Sent when a payment source for a customer removed from Chargebee \\* \\`virtual_bank_account_added\\` - Sent when a virtual bank account is added for a customer. \\* \\`virtual_bank_account_updated\\` - Sent when the virtual bank account is updated for a customer. \\* \\`virtual_bank_account_deleted\\` - Sent when a virtual bank account is deleted for a customer. \\* \\`token_created\\` - Sent when a Token is created \\* \\`token_consumed\\` - Sent when a Token is consumed \\* \\`token_expired\\` - Sent when a Token is expired \\* \\`unbilled_charges_created\\` - Triggered when unbilled charges are created \\* \\`unbilled_charges_voided\\` - Triggered when unbilled charges are voided \\* \\`unbilled_charges_deleted\\` - Triggered when unbilled charges are deleted \\* \\`unbilled_charges_invoiced\\` - Triggered when unbilled charges are invoiced \\* \\`order_created\\` - Triggered when order is created \\* \\`order_updated\\` - Triggered when order is updated \\* \\`order_cancelled\\` - Triggered when order is cancelled \\* \\`order_delivered\\` - Triggered when order is marked as delivered \\* \\`order_returned\\` - Triggered when order is marked as returned \\* \\`order_ready_to_process\\` - Triggered when order reaches it's order date \\* \\`order_ready_to_ship\\` - Triggered when order reaches it's shipping date \\* \\`order_deleted\\` - Triggered when order is deleted \\* \\`order_resent\\` - Triggered when order is resent \\* \\`quote_created\\` - Triggered when quote is created \\* \\`quote_updated\\` - Triggered when quote is updated \\* \\`quote_deleted\\` - Triggered when quote is deleted \\* \\`tax_withheld_recorded\\` - Triggered when a tax withheld is recorded for an invoice \\* \\`tax_withheld_deleted\\` - Triggered when a tax withheld is deleted \\* \\`tax_withheld_refunded\\` - Sent when a tax withheld refund is made \\* \\`gift_scheduled\\` - Triggered when a new gift is created \\* \\`gift_unclaimed\\` - Triggered when a new gift is unclaimed and is ready to be claimed \\* \\`gift_claimed\\` - Triggered when a gift is claimed \\* \\`gift_expired\\` - Triggered when a gift expires \\* \\`gift_cancelled\\` - Triggered when a gift is cancelled. \\* \\`gift_updated\\` - Triggered when a gift is updated \\* \\`hierarchy_created\\` - Triggered when a hierarchy is created \\* \\`hierarchy_deleted\\` - Triggered when a hierarchy is deleted \\* \\`payment_intent_created\\` - Sent when a Payment intent is created \\* \\`payment_intent_updated\\` - Sent when a Payment intent is updated \\* \\`contract_term_created\\` - Triggered when new contract term is created \\* \\`contract_term_renewed\\` - Triggered when new contract term is renewed \\* \\`contract_term_terminated\\` - Triggered when contract term is terminated \\* \\`contract_term_completed\\` - Triggered when contract term is completed \\* \\`contract_term_cancelled\\` - Triggered when contract term is cancelled \\* \\`item_family_created\\` - Triggered when an item family is created \\* \\`item_family_updated\\` - Triggered when an item family is updated \\* \\`item_family_deleted\\` - Triggered when an item family is deleted \\* \\`item_created\\` - Triggered when an item is created \\* \\`item_updated\\` - Triggered when an item is updated \\* \\`item_deleted\\` - Triggered when an item is deleted \\* \\`item_price_created\\` - Triggered when an item price is created \\* \\`item_price_updated\\` - Triggered when an item price is updated \\* \\`item_price_deleted\\` - Triggered when an item price is deleted \\* \\`attached_item_created\\` - Triggered when an Attached item is created \\* \\`attached_item_updated\\` - Triggered when an Attached item is updated \\* \\`attached_item_deleted\\` - Triggered when an Attached item is deleted \\* \\`differential_price_created\\` - Triggered when a differential price is created \\* \\`differential_price_updated\\` - Triggered when a differential price is updated \\* \\`differential_price_deleted\\` - Triggered when a differential price is deleted \\* \\`feature_created\\` - Triggered when a feature is created. \\* \\`feature_updated\\` - Triggered when an feature is updated \\* \\`feature_deleted\\` - Triggered when a feature is deleted \\* \\`feature_activated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the first time. \\* \\`feature_reactivated\\` - Triggered when a feature \\`status\\` transitions to \\`active\\` for the second time or more. \\* \\`feature_archived\\` - Triggered when an feature is archived \\* \\`item_entitlements_updated\\` - Triggered when item entitlements are updated to a feature \\* \\`entitlement_overrides_updated\\` - Triggered when an override entitlement is updated \\* \\`entitlement_overrides_removed\\` - Triggered when an override entitlement is removed \\* \\`item_entitlements_removed\\` - Triggered when item entitlements are removed for a feature \\* \\`entitlement_overrides_auto_removed\\` - Triggered when Subscription entitlements overrides for a feature are auto removed after expiry \\* \\`subscription_entitlements_created\\` - Triggered when subscription entitlements are created for a new subscription \\* \\`subscription_entitlements_updated\\` - Triggered when subscription entitlements are updated due to the subscription change event \\* \\`business_entity_created\\` - Sent when a business entity is created. \\* \\`business_entity_updated\\` - Sent when a business entity is updated. \\* \\`business_entity_deleted\\` - Sent when a business entity is deleted. \\* \\`customer_business_entity_changed\\` - Sent when a customer's business entity is changed. \\* \\`subscription_business_entity_changed\\` - Sent when a subscription's business entity is changed. \\* \\`purchase_created\\` - Triggered when purchase action is completed successfully \\* \\`voucher_created\\` - Triggered when a payment voucher is created \\* \\`voucher_expired\\` - Triggered when a payment voucher is expired \\* \\`voucher_create_failed\\` - Triggered when a payment voucher creation is failed \\* \\`product_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product create is completed successfully \\* \\`product_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product update is completed successfully \\* \\`product_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when the product delete is completed successfully \\* \\`variant_created\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant create completed successfully \\* \\`variant_updated\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant update completed successfully \\* \\`variant_deleted\\` - \\*\\*(Deprecated)\\*\\* Triggered when product variant delete completed successfully \\* \\`item_price_entitlements_updated\\` - Triggered when item Price entitlements are updated to a feature \\* \\`item_price_entitlements_removed\\` - Triggered when item price entitlements are removed for a feature \\* \\`subscription_ramp_created\\` - Triggered when a subscription ramp is created. \\* \\`subscription_ramp_deleted\\` - Triggered when a subscription ramp is deleted. \\* \\`subscription_ramp_applied\\` - Triggered when a subscription ramp is applied. \\* \\`subscription_ramp_drafted\\` - Triggered when a subscription ramp is moved to draft status. \\* \\`subscription_ramp_updated\\` - Triggered when a subscription ramp is updated. \\* \\`price_variant_created\\` - Triggered when a price variant is created. \\* \\`price_variant_updated\\` - Triggered when a price variant is updated. \\* \\`price_variant_deleted\\` - Triggered when a price variant is deleted. \\* \\`customer_entitlements_updated\\` - Triggered when entitlements for the list of customers got updated. \\* \\`subscription_moved_in\\` - Triggered when a subscription moved from other customer \\* \\`subscription_moved_out\\` - Triggered when a subscription moved to other customer \\* \\`subscription_movement_failed\\` - Triggered when a subscription movement failed \\* \\`omnichannel_subscription_created\\` - Triggered when an omnichannel subscription is created \\* \\`omnichannel_subscription_item_renewed\\` - Triggered when an omnichannel subscription item is renewed \\* \\`omnichannel_subscription_item_downgrade_scheduled\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item is downgrade is scheduled \\* \\`omnichannel_subscription_item_scheduled_downgrade_removed\\` - \\*\\*(Deprecated)\\*\\* Triggered when an omnichannel subscription item scheduled downgrade is removed \\* \\`omnichannel_subscription_item_downgraded\\` - Triggered when an omnichannel subscription item is downgraded \\* \\`omnichannel_subscription_item_expired\\` - Triggered when an omnichannel subscription item is expired \\* \\`omnichannel_subscription_item_cancellation_scheduled\\` - Triggered when an omnichannel subscription item is scheduled for cancellation \\* \\`omnichannel_subscription_item_scheduled_cancellation_removed\\` - Triggered when an omnichannel subscription item scheduled cancellation is removed \\* \\`omnichannel_subscription_item_resubscribed\\` - Triggered when an omnichannel subscription item is resubscribed \\* \\`omnichannel_subscription_item_upgraded\\` - Triggered when an omnichannel subscription item is upgraded \\* \\`omnichannel_subscription_item_cancelled\\` - Triggered when an omnichannel subscription item is cancelled \\* \\`omnichannel_subscription_imported\\` - Triggered when an omnichannel subscription item is imported \\* \\`omnichannel_subscription_item_grace_period_started\\` - Triggered when an omnichannel subscription item's grace period has started \\* \\`omnichannel_subscription_item_grace_period_expired\\` - Triggered when an omnichannel subscription item's grace period has expired \\* \\`omnichannel_subscription_item_dunning_started\\` - Triggered when an omnichannel subscription item's dunning has started \\* \\`omnichannel_subscription_item_dunning_expired\\` - Triggered when an omnichannel subscription item's dunning has expired \\* \\`rule_created\\` - Triggered when a rule is created \\* \\`rule_updated\\` - Triggered when a rule is updated \\* \\`rule_deleted\\` - Triggered when a rule is deleted \\* \\`record_purchase_failed\\` - Triggered when an omnichannel record purchase is failed \\* \\`omnichannel_subscription_item_change_scheduled\\` - Triggered when an omnichannel subscription item change is scheduled \\* \\`omnichannel_subscription_item_scheduled_change_removed\\` - Triggered when an omnichannel subscription item scheduled change is removed \\* \\`omnichannel_subscription_item_reactivated\\` - Triggered when an omnichannel subscription item's refund is reversed \\* \\`sales_order_created\\` - Triggered when sales order is created \\* \\`sales_order_updated\\` - Triggered when sales order is updated \\* \\`omnichannel_subscription_item_changed\\` - Triggered when an omnichannel subscription item is changed \\* \\`omnichannel_subscription_item_paused\\` - Triggered when an omnichannel subscription item is paused \\* \\`omnichannel_subscription_item_resumed\\` - Triggered when an omnichannel subscription item is resumed \\* \\`omnichannel_one_time_order_created\\` - Triggered when an omnichannel one time order is created \\* \\`omnichannel_one_time_order_item_cancelled\\` - Triggered when an omnichannel one time order item is cancelled \\* \\`usage_file_ingested\\` - Triggered when a usage file is ingested \\* \\`omnichannel_subscription_item_pause_scheduled\\` - Triggered when an omnichannel subscription item scheduled for pause \\* \\`omnichannel_subscription_moved_in\\` - Triggered when an omnichannel subscription is moved into another customer \\* \\`omnichannel_transaction_created\\` - Triggered when an omnichannel transaction is created \\* \\`alert_status_changed\\` - Triggered when the status for an alert changes \\* \\`omnichannel_subscription_item_updated\\` - Triggered when an omnichannel subscription item is updated \\* \\`omnichannel_subscription_item_recovered\\` - Triggered when an omnichannel subscription item is recovered from grace period or dunning\n",
                "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
                "pattern" : "^\\[(coupon_created|coupon_updated|coupon_deleted|coupon_set_created|coupon_set_updated|coupon_set_deleted|coupon_codes_added|coupon_codes_deleted|coupon_codes_updated|customer_created|customer_changed|customer_deleted|customer_moved_out|customer_moved_in|promotional_credits_added|promotional_credits_deducted|subscription_created|subscription_created_with_backdating|subscription_started|subscription_trial_end_reminder|subscription_activated|subscription_activated_with_backdating|subscription_changed|subscription_trial_extended|mrr_updated|subscription_changed_with_backdating|subscription_cancellation_scheduled|subscription_cancellation_reminder|subscription_cancelled|subscription_canceled_with_backdating|subscription_reactivated|subscription_reactivated_with_backdating|subscription_renewed|subscription_items_renewed|subscription_scheduled_cancellation_removed|subscription_changes_scheduled|subscription_scheduled_changes_removed|subscription_shipping_address_updated|subscription_deleted|subscription_paused|subscription_pause_scheduled|subscription_scheduled_pause_removed|subscription_resumed|subscription_resumption_scheduled|subscription_scheduled_resumption_removed|subscription_advance_invoice_schedule_added|subscription_advance_invoice_schedule_updated|subscription_advance_invoice_schedule_removed|pending_invoice_created|pending_invoice_updated|invoice_generated|invoice_generated_with_backdating|invoice_updated|invoice_deleted|credit_note_created|credit_note_created_with_backdating|credit_note_updated|credit_note_deleted|payment_schedules_created|payment_schedules_updated|payment_schedule_scheme_created|payment_schedule_scheme_deleted|subscription_renewal_reminder|add_usages_reminder|payment_due_reminder|transaction_created|transaction_updated|transaction_deleted|payment_succeeded|payment_failed|dunning_updated|payment_refunded|payment_initiated|refund_initiated|netd_payment_due_reminder|authorization_succeeded|authorization_voided|card_added|card_updated|card_expiry_reminder|card_expired|card_deleted|payment_source_added|payment_source_updated|payment_source_deleted|payment_source_expiring|payment_source_expired|payment_source_locally_deleted|virtual_bank_account_added|virtual_bank_account_updated|virtual_bank_account_deleted|token_created|token_consumed|token_expired|unbilled_charges_created|unbilled_charges_voided|unbilled_charges_deleted|unbilled_charges_invoiced|order_created|order_updated|order_cancelled|order_delivered|order_returned|order_ready_to_process|order_ready_to_ship|order_deleted|order_resent|quote_created|quote_updated|quote_deleted|tax_withheld_recorded|tax_withheld_deleted|tax_withheld_refunded|gift_scheduled|gift_unclaimed|gift_claimed|gift_expired|gift_cancelled|gift_updated|hierarchy_created|hierarchy_deleted|payment_intent_created|payment_intent_updated|contract_term_created|contract_term_renewed|contract_term_terminated|contract_term_completed|contract_term_cancelled|item_family_created|item_family_updated|item_family_deleted|item_created|item_updated|item_deleted|item_price_created|item_price_updated|item_price_deleted|attached_item_created|attached_item_updated|attached_item_deleted|differential_price_created|differential_price_updated|differential_price_deleted|feature_created|feature_updated|feature_deleted|feature_activated|feature_reactivated|feature_archived|item_entitlements_updated|entitlement_overrides_updated|entitlement_overrides_removed|item_entitlements_removed|entitlement_overrides_auto_removed|subscription_entitlements_created|subscription_entitlements_updated|business_entity_created|business_entity_updated|business_entity_deleted|customer_business_entity_changed|subscription_business_entity_changed|purchase_created|voucher_created|voucher_expired|voucher_create_failed|product_created|product_updated|product_deleted|variant_created|variant_updated|variant_deleted|item_price_entitlements_updated|item_price_entitlements_removed|subscription_ramp_created|subscription_ramp_deleted|subscription_ramp_applied|subscription_ramp_drafted|subscription_ramp_updated|price_variant_created|price_variant_updated|price_variant_deleted|customer_entitlements_updated|subscription_moved_in|subscription_moved_out|subscription_movement_failed|omnichannel_subscription_created|omnichannel_subscription_item_renewed|omnichannel_subscription_item_downgrade_scheduled|omnichannel_subscription_item_scheduled_downgrade_removed|omnichannel_subscription_item_downgraded|omnichannel_subscription_item_expired|omnichannel_subscription_item_cancellation_scheduled|omnichannel_subscription_item_scheduled_cancellation_removed|omnichannel_subscription_item_resubscribed|omnichannel_subscription_item_upgraded|omnichannel_subscription_item_cancelled|omnichannel_subscription_imported|omnichannel_subscription_item_grace_period_started|omnichannel_subscription_item_grace_period_expired|omnichannel_subscription_item_dunning_started|omnichannel_subscription_item_dunning_expired|rule_created|rule_updated|rule_deleted|record_purchase_failed|omnichannel_subscription_item_change_scheduled|omnichannel_subscription_item_scheduled_change_removed|omnichannel_subscription_item_reactivated|sales_order_created|sales_order_updated|omnichannel_subscription_item_changed|omnichannel_subscription_item_paused|omnichannel_subscription_item_resumed|omnichannel_one_time_order_created|omnichannel_one_time_order_item_cancelled|usage_file_ingested|omnichannel_subscription_item_pause_scheduled|omnichannel_subscription_moved_in|omnichannel_transaction_created|alert_status_changed|omnichannel_subscription_item_updated|omnichannel_subscription_item_recovered)(,(coupon_created|coupon_updated|coupon_deleted|coupon_set_created|coupon_set_updated|coupon_set_deleted|coupon_codes_added|coupon_codes_deleted|coupon_codes_updated|customer_created|customer_changed|customer_deleted|customer_moved_out|customer_moved_in|promotional_credits_added|promotional_credits_deducted|subscription_created|subscription_created_with_backdating|subscription_started|subscription_trial_end_reminder|subscription_activated|subscription_activated_with_backdating|subscription_changed|subscription_trial_extended|mrr_updated|subscription_changed_with_backdating|subscription_cancellation_scheduled|subscription_cancellation_reminder|subscription_cancelled|subscription_canceled_with_backdating|subscription_reactivated|subscription_reactivated_with_backdating|subscription_renewed|subscription_items_renewed|subscription_scheduled_cancellation_removed|subscription_changes_scheduled|subscription_scheduled_changes_removed|subscription_shipping_address_updated|subscription_deleted|subscription_paused|subscription_pause_scheduled|subscription_scheduled_pause_removed|subscription_resumed|subscription_resumption_scheduled|subscription_scheduled_resumption_removed|subscription_advance_invoice_schedule_added|subscription_advance_invoice_schedule_updated|subscription_advance_invoice_schedule_removed|pending_invoice_created|pending_invoice_updated|invoice_generated|invoice_generated_with_backdating|invoice_updated|invoice_deleted|credit_note_created|credit_note_created_with_backdating|credit_note_updated|credit_note_deleted|payment_schedules_created|payment_schedules_updated|payment_schedule_scheme_created|payment_schedule_scheme_deleted|subscription_renewal_reminder|add_usages_reminder|payment_due_reminder|transaction_created|transaction_updated|transaction_deleted|payment_succeeded|payment_failed|dunning_updated|payment_refunded|payment_initiated|refund_initiated|netd_payment_due_reminder|authorization_succeeded|authorization_voided|card_added|card_updated|card_expiry_reminder|card_expired|card_deleted|payment_source_added|payment_source_updated|payment_source_deleted|payment_source_expiring|payment_source_expired|payment_source_locally_deleted|virtual_bank_account_added|virtual_bank_account_updated|virtual_bank_account_deleted|token_created|token_consumed|token_expired|unbilled_charges_created|unbilled_charges_voided|unbilled_charges_deleted|unbilled_charges_invoiced|order_created|order_updated|order_cancelled|order_delivered|order_returned|order_ready_to_process|order_ready_to_ship|order_deleted|order_resent|quote_created|quote_updated|quote_deleted|tax_withheld_recorded|tax_withheld_deleted|tax_withheld_refunded|gift_scheduled|gift_unclaimed|gift_claimed|gift_expired|gift_cancelled|gift_updated|hierarchy_created|hierarchy_deleted|payment_intent_created|payment_intent_updated|contract_term_created|contract_term_renewed|contract_term_terminated|contract_term_completed|contract_term_cancelled|item_family_created|item_family_updated|item_family_deleted|item_created|item_updated|item_deleted|item_price_created|item_price_updated|item_price_deleted|attached_item_created|attached_item_updated|attached_item_deleted|differential_price_created|differential_price_updated|differential_price_deleted|feature_created|feature_updated|feature_deleted|feature_activated|feature_reactivated|feature_archived|item_entitlements_updated|entitlement_overrides_updated|entitlement_overrides_removed|item_entitlements_removed|entitlement_overrides_auto_removed|subscription_entitlements_created|subscription_entitlements_updated|business_entity_created|business_entity_updated|business_entity_deleted|customer_business_entity_changed|subscription_business_entity_changed|purchase_created|voucher_created|voucher_expired|voucher_create_failed|product_created|product_updated|product_deleted|variant_created|variant_updated|variant_deleted|item_price_entitlements_updated|item_price_entitlements_removed|subscription_ramp_created|subscription_ramp_deleted|subscription_ramp_applied|subscription_ramp_drafted|subscription_ramp_updated|price_variant_created|price_variant_updated|price_variant_deleted|customer_entitlements_updated|subscription_moved_in|subscription_moved_out|subscription_movement_failed|omnichannel_subscription_created|omnichannel_subscription_item_renewed|omnichannel_subscription_item_downgrade_scheduled|omnichannel_subscription_item_scheduled_downgrade_removed|omnichannel_subscription_item_downgraded|omnichannel_subscription_item_expired|omnichannel_subscription_item_cancellation_scheduled|omnichannel_subscription_item_scheduled_cancellation_removed|omnichannel_subscription_item_resubscribed|omnichannel_subscription_item_upgraded|omnichannel_subscription_item_cancelled|omnichannel_subscription_imported|omnichannel_subscription_item_grace_period_started|omnichannel_subscription_item_grace_period_expired|omnichannel_subscription_item_dunning_started|omnichannel_subscription_item_dunning_expired|rule_created|rule_updated|rule_deleted|record_purchase_failed|omnichannel_subscription_item_change_scheduled|omnichannel_subscription_item_scheduled_change_removed|omnichannel_subscription_item_reactivated|sales_order_created|sales_order_updated|omnichannel_subscription_item_changed|omnichannel_subscription_item_paused|omnichannel_subscription_item_resumed|omnichannel_one_time_order_created|omnichannel_one_time_order_item_cancelled|usage_file_ingested|omnichannel_subscription_item_pause_scheduled|omnichannel_subscription_moved_in|omnichannel_transaction_created|alert_status_changed|omnichannel_subscription_item_updated|omnichannel_subscription_item_recovered))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "source",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nSource of the event. Possible values are : admin_console, api, scheduled_job, hosted_page, portal, system, none, js_api, migration, bulk_operation, external_service.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*source\\[is_not\\] = \"hosted_page\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "hosted_page",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`scheduled_job\\` - Operation made through the Scheduled Jobs \\* \\`hosted_page\\` - Operation made through the Hosted Pages \\* \\`portal\\` - Operation made through [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html) \\* \\`system\\` - Operation that are triggered by ChargeBee System \\* \\`none\\` - If no source can be identified for an operation \\* \\`js_api\\` - Operation made through the JS API \\* \\`migration\\` - Operation that was triggered triggered by the migration of customer data into Chargebee Billing, either from an external system or from another [Chargebee Billing site](https://www.chargebee.com/docs/billing/2.0/getting-started/sites-intro.html) (such as test, live, or sandbox). \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation. \\* \\`external_service\\` - Operation that are triggered via webhook\n",
                "enum" : [ "admin_console", "api", "scheduled_job", "hosted_page", "portal", "system", "none", "js_api", "migration", "bulk_operation", "external_service" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`scheduled_job\\` - Operation made through the Scheduled Jobs \\* \\`hosted_page\\` - Operation made through the Hosted Pages \\* \\`portal\\` - Operation made through [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html) \\* \\`system\\` - Operation that are triggered by ChargeBee System \\* \\`none\\` - If no source can be identified for an operation \\* \\`js_api\\` - Operation made through the JS API \\* \\`migration\\` - Operation that was triggered triggered by the migration of customer data into Chargebee Billing, either from an external system or from another [Chargebee Billing site](https://www.chargebee.com/docs/billing/2.0/getting-started/sites-intro.html) (such as test, live, or sandbox). \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation. \\* \\`external_service\\` - Operation that are triggered via webhook\n",
                "enum" : [ "admin_console", "api", "scheduled_job", "hosted_page", "portal", "system", "none", "js_api", "migration", "bulk_operation", "external_service" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`scheduled_job\\` - Operation made through the Scheduled Jobs \\* \\`hosted_page\\` - Operation made through the Hosted Pages \\* \\`portal\\` - Operation made through [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html) \\* \\`system\\` - Operation that are triggered by ChargeBee System \\* \\`none\\` - If no source can be identified for an operation \\* \\`js_api\\` - Operation made through the JS API \\* \\`migration\\` - Operation that was triggered triggered by the migration of customer data into Chargebee Billing, either from an external system or from another [Chargebee Billing site](https://www.chargebee.com/docs/billing/2.0/getting-started/sites-intro.html) (such as test, live, or sandbox). \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation. \\* \\`external_service\\` - Operation that are triggered via webhook\n",
                "enum" : [ "admin_console", "api", "scheduled_job", "hosted_page", "portal", "system", "none", "js_api", "migration", "bulk_operation", "external_service" ],
                "pattern" : "^\\[(admin_console|api|scheduled_job|hosted_page|portal|system|none|js_api|migration|bulk_operation|external_service)(,(admin_console|api|scheduled_job|hosted_page|portal|system|none|js_api|migration|bulk_operation|external_service))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`admin_console\\` - Operation made through the Chargebee admin UI \\* \\`api\\` - Operation made through the API \\* \\`scheduled_job\\` - Operation made through the Scheduled Jobs \\* \\`hosted_page\\` - Operation made through the Hosted Pages \\* \\`portal\\` - Operation made through [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html) \\* \\`system\\` - Operation that are triggered by ChargeBee System \\* \\`none\\` - If no source can be identified for an operation \\* \\`js_api\\` - Operation made through the JS API \\* \\`migration\\` - Operation that was triggered triggered by the migration of customer data into Chargebee Billing, either from an external system or from another [Chargebee Billing site](https://www.chargebee.com/docs/billing/2.0/getting-started/sites-intro.html) (such as test, live, or sandbox). \\* \\`bulk_operation\\` - Operation that are triggerd through bulk operation. \\* \\`external_service\\` - Operation that are triggered via webhook\n",
                "enum" : [ "admin_console", "api", "scheduled_job", "hosted_page", "portal", "system", "none", "js_api", "migration", "bulk_operation", "external_service" ],
                "pattern" : "^\\[(admin_console|api|scheduled_job|hosted_page|portal|system|none|js_api|migration|bulk_operation|external_service)(,(admin_console|api|scheduled_job|hosted_page|portal|system|none|js_api|migration|bulk_operation|external_service))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "occurred_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTimestamp indicating when this event had occurred.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*occurred_at\\[after\\] = \"1349116200\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1349116200",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\noccurred_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"occurred_at\"*\n\nThis will sort the result based on the 'occurred_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "occurred_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "occurred_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "event" : {
                            "$ref" : "#/components/schemas/Event",
                            "description" : "Resource object representing event"
                          }
                        },
                        "required" : [ "event" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/events/{event-id}" : {
      "get" : {
        "summary" : "Retrieve an event",
        "description" : "Retrieves a specific event identified by a unique event identifier.  \n**Note:**\nOnly events that are less than 90 days old will be retrieved.\n",
        "operationId" : "retrieve_an_event",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "event-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/event-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "event" : {
                      "$ref" : "#/components/schemas/Event",
                      "description" : "<p class=\"mb-2\">Resource object representing event</p>"
                    }
                  },
                  "required" : [ "event" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/comments/{comment-id}/delete" : {
      "post" : {
        "summary" : "Delete a comment",
        "description" : "Delete a comment for an [entity](/docs/api/v2/pcv-1/comments/create-a-comment#entity_type) identified by comment ID.\n\nOnly the comments that are added via Admin console and API can be deleted. Chargebee generated \"System\" comments cannot be deleted.\n",
        "operationId" : "delete_a_comment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "comment-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/comment-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "comment" : {
                      "$ref" : "#/components/schemas/Comment",
                      "description" : "<p class=\"mb-2\">Resource object representing comment</p>"
                    }
                  },
                  "required" : [ "comment" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/comments/{comment-id}" : {
      "get" : {
        "summary" : "Retrieve a comment",
        "description" : "Retrieve a comment for an entity identified by comment ID.\n",
        "operationId" : "retrieve_a_comment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "comment-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/comment-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "comment" : {
                      "$ref" : "#/components/schemas/Comment",
                      "description" : "<p class=\"mb-2\">Resource object representing comment</p>"
                    }
                  },
                  "required" : [ "comment" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/comments" : {
      "get" : {
        "summary" : "List comments",
        "description" : "Retrieve the list of comments sorted by the recent ones on the top.\n\nIf you want to retrieve the list of comments for an [entity](/docs/api/v2/pcv-1/comments/list-comments), for example, subscription you can filter them by passing the entity type and unique identifier for that entity, for example, subscription ID.\n",
        "operationId" : "list_comments",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "entity_type",
          "in" : "query",
          "description" : "Type of the entity this comment generated for.\n\\* item -\n\nEntity that represents item\n\\* order -\n\nEntity that represents an order\n\\* item_price -\n\nEntity that represents item price\n\\* customer -\n\nEntity that represents a customer\n\\* variant -\n\nEntity that represents product variants\n\\* invoice -\n\nInvoice description\n\\* product -\n\nEntity that represents product\n\\* business_entity -\n\nEntity that represents item of type business entity\n\\* plan -\n\nEntity that represents a subscription plan\n\\* coupon -\n\nEntity that represents a discount coupon\n\\* subscription -\n\nEntity that represents a subscription of a customer\n\\* item_family -\n\nEntity that represents item family\n\\* transaction -\n\nEntity that represents a transaction.\n\\* addon -\n\nEntity that represents an addon\n\\* credit_note -\n\nCredit note description\n\\* quote -\n\nEntity that represents a quote\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "customer", "subscription", "invoice", "quote", "credit_note", "transaction", "plan", "addon", "coupon", "order", "business_entity", "item_family", "item", "item_price", "price_variant" ],
            "example" : null
          }
        }, {
          "name" : "entity_id",
          "in" : "query",
          "description" : "Unique identifier of the entity.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nThe time at which this comment was created.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[on\\] = \"1456332678\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1456332678",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "comment" : {
                            "$ref" : "#/components/schemas/Comment",
                            "description" : "Resource object representing comment"
                          }
                        },
                        "required" : [ "comment" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a comment",
        "description" : "Create a new comment for an entity. The newly added comment will be shown in the web interface as well.\n",
        "operationId" : "create_a_comment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "entity_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Type of the entity to create the comment for.\n\\* item -\n\nEntity that represents item\n\\* order -\n\nEntity that represents an order\n\\* item_price -\n\nEntity that represents item price\n\\* customer -\n\nEntity that represents a customer\n\\* variant -\n\nEntity that represents product variants\n\\* invoice -\n\nInvoice description\n\\* product -\n\nEntity that represents product\n\\* business_entity -\n\nEntity that represents item of type business entity\n\\* plan -\n\nEntity that represents a subscription plan\n\\* coupon -\n\nEntity that represents a discount coupon\n\\* subscription -\n\nEntity that represents a subscription of a customer\n\\* item_family -\n\nEntity that represents item family\n\\* transaction -\n\nEntity that represents a transaction.\n\\* addon -\n\nEntity that represents an addon\n\\* credit_note -\n\nCredit note description\n\\* quote -\n\nEntity that represents a quote\n",
                    "enum" : [ "customer", "subscription", "invoice", "quote", "credit_note", "transaction", "plan", "addon", "coupon", "order", "business_entity", "item_family", "item", "item_price", "price_variant" ],
                    "example" : null
                  },
                  "entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Unique identifier of the entity.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Actual notes for the comment.\n",
                    "maxLength" : 1000,
                    "example" : null
                  },
                  "added_by" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The user who created the comment. If created via API, this contains the name given for the API key used.\n",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "required" : [ "entity_id", "entity_type", "notes" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "comment" : {
                      "$ref" : "#/components/schemas/Comment",
                      "description" : "<p class=\"mb-2\">Resource object representing comment</p>"
                    }
                  },
                  "required" : [ "comment" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/portal_sessions" : {
      "post" : {
        "summary" : "Create a portal session",
        "description" : "Creates a portal session for a customer. The session resource in the response contains the access URL. Forward the customer to that access URL. If you would like to logout the customer later via API call, you need to store the id of the portal session resource returned by this API. While creating a session, you also need to pass the redirect URL to which your customers will be sent to upon logout from the portal UI.\n",
        "operationId" : "create_a_portal_session",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "URL to redirect when the user logs out from the portal.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "forward_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "By default access_url redirects the customer to the portal home page. If you would like to redirect the customer to a different URL, you can use this parameter to do so.\n\n**Note:**\nThis parameter is not applicable for [in-app](https://www.chargebee.com/docs/v3-self-serve-portal.html)\nportal.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the customer.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "portal_session" : {
                      "$ref" : "#/components/schemas/PortalSession",
                      "description" : "<p class=\"mb-2\">Resource object representing portal_session</p>"
                    }
                  },
                  "required" : [ "portal_session" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/portal_sessions/{portal-session-id}/activate" : {
      "post" : {
        "summary" : "Activate a portal session",
        "description" : "When an user is sent back to your return URL with session details, you should validate that information by calling this API. The details passed to the **return_url** should be sent as below:\n\n* **auth_session_id** - this should be sent as part of the endpoint.\n* **auth_session_token** - this should be sent as value for the input parameter **token**.\n\n**Note:** This API is not applicable for [in-app](https://www.chargebee.com/docs/v3-self-serve-portal.html) portal.\n",
        "operationId" : "activate_a_portal_session",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "portal-session-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/portal-session-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "token" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Unique pre-authenticated portal session token to access customer portal directly.\n",
                    "maxLength" : 70,
                    "example" : null
                  }
                },
                "required" : [ "token" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "portal_session" : {
                      "$ref" : "#/components/schemas/PortalSession",
                      "description" : "<p class=\"mb-2\">Resource object representing portal_session</p>"
                    }
                  },
                  "required" : [ "portal_session" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/portal_sessions/{portal-session-id}/logout" : {
      "post" : {
        "summary" : "Logout a portal session",
        "description" : "Logs out the portal session. Typically this should be called when customers logout of your application.\n\nIf this API is called for a Portal Session that currently is in :\n\n* \"created\" status, the session status will be marked as \"logged_out\" and the access URL will become invalid.\n* \"logged_in\" status, the session status will be marked as \"logged_out\" and customer will not be able to use that session.\n* \"logged_out\" status, this will return normally without changing any attribute of this resource.\n",
        "operationId" : "logout_a_portal_session",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "portal-session-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/portal-session-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "portal_session" : {
                      "$ref" : "#/components/schemas/PortalSession",
                      "description" : "<p class=\"mb-2\">Resource object representing portal_session</p>"
                    }
                  },
                  "required" : [ "portal_session" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/portal_sessions/{portal-session-id}" : {
      "get" : {
        "summary" : "Retrieve a portal session",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API retrieves a portal session using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">portal_session_id</code>\nas a path parameter.</p></div>",
        "operationId" : "retrieve_a_portal_session",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "portal-session-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/portal-session-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "portal_session" : {
                      "$ref" : "#/components/schemas/PortalSession",
                      "description" : "<p class=\"mb-2\">Resource object representing portal_session</p>"
                    }
                  },
                  "required" : [ "portal_session" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/site_migration_details" : {
      "get" : {
        "summary" : "List site migration details",
        "description" : "This endpoint lists the site migration details.\n",
        "operationId" : "list_site_migration_details",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "entity_id_at_other_site",
          "in" : "query",
          "description" : "optional, string filter\n\nEntity Id of the record in the other site.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*entity_id_at_other_site\\[is\\] = \"null\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "other_site_name",
          "in" : "query",
          "description" : "optional, string filter\n\nSite name to which the record is moved in/out.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*other_site_name\\[is\\] = \"acme-test\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "acme-test",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "entity_id",
          "in" : "query",
          "description" : "optional, string filter\n\nId of the entity in this site.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*entity_id\\[is\\] = \"8axqwer7as\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8axqwer7as",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "entity_type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nEntity Type of the record. Possible values are : customer, subscription, invoice, credit_note, transaction, order.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*entity_type\\[is\\] = \"customer\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "customer",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`customer\\` - Entity that represents a customer \\* \\`subscription\\` - Entity that represents a subscription of a customer \\* \\`invoice\\` - Invoice description \\* \\`credit_note\\` - Credit note description \\* \\`transaction\\` - Entity that represents a transaction. \\* \\`order\\` - Entity that represents an order\n",
                "enum" : [ "customer", "subscription", "invoice", "credit_note", "transaction", "order" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`customer\\` - Entity that represents a customer \\* \\`subscription\\` - Entity that represents a subscription of a customer \\* \\`invoice\\` - Invoice description \\* \\`credit_note\\` - Credit note description \\* \\`transaction\\` - Entity that represents a transaction. \\* \\`order\\` - Entity that represents an order\n",
                "enum" : [ "customer", "subscription", "invoice", "credit_note", "transaction", "order" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`customer\\` - Entity that represents a customer \\* \\`subscription\\` - Entity that represents a subscription of a customer \\* \\`invoice\\` - Invoice description \\* \\`credit_note\\` - Credit note description \\* \\`transaction\\` - Entity that represents a transaction. \\* \\`order\\` - Entity that represents an order\n",
                "enum" : [ "customer", "subscription", "invoice", "credit_note", "transaction", "order" ],
                "pattern" : "^\\[(customer|subscription|invoice|credit_note|transaction|order)(,(customer|subscription|invoice|credit_note|transaction|order))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`customer\\` - Entity that represents a customer \\* \\`subscription\\` - Entity that represents a subscription of a customer \\* \\`invoice\\` - Invoice description \\* \\`credit_note\\` - Credit note description \\* \\`transaction\\` - Entity that represents a transaction. \\* \\`order\\` - Entity that represents an order\n",
                "enum" : [ "customer", "subscription", "invoice", "credit_note", "transaction", "order" ],
                "pattern" : "^\\[(customer|subscription|invoice|credit_note|transaction|order)(,(customer|subscription|invoice|credit_note|transaction|order))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nStatus of the migration. Possible values are : moved_in, moved_out, moving_out.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"MOVED_OUT\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "MOVED_OUT",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`moved_in\\` - Moved in from another cb site \\* \\`moved_out\\` - Moved out from one cb site to another \\* \\`moving_out\\` - Moving out from one cb site to another\n",
                "enum" : [ "moved_in", "moved_out", "moving_out" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`moved_in\\` - Moved in from another cb site \\* \\`moved_out\\` - Moved out from one cb site to another \\* \\`moving_out\\` - Moving out from one cb site to another\n",
                "enum" : [ "moved_in", "moved_out", "moving_out" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`moved_in\\` - Moved in from another cb site \\* \\`moved_out\\` - Moved out from one cb site to another \\* \\`moving_out\\` - Moving out from one cb site to another\n",
                "enum" : [ "moved_in", "moved_out", "moving_out" ],
                "pattern" : "^\\[(moved_in|moved_out|moving_out)(,(moved_in|moved_out|moving_out))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`moved_in\\` - Moved in from another cb site \\* \\`moved_out\\` - Moved out from one cb site to another \\* \\`moving_out\\` - Moving out from one cb site to another\n",
                "enum" : [ "moved_in", "moved_out", "moving_out" ],
                "pattern" : "^\\[(moved_in|moved_out|moving_out)(,(moved_in|moved_out|moving_out))*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "site_migration_detail" : {
                            "$ref" : "#/components/schemas/SiteMigrationDetail",
                            "description" : "Resource object representing site_migration_detail"
                          }
                        },
                        "required" : [ "site_migration_detail" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/resource_migrations/retrieve_latest" : {
      "get" : {
        "summary" : "Retrieve latest migration details",
        "description" : "Gets the last migration details.\n",
        "operationId" : "retrieve_latest_migration_details",
        "parameters" : [ {
          "name" : "from_site",
          "in" : "query",
          "description" : "Domain name to which the item is moved.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "minLength" : 4,
            "example" : null
          }
        }, {
          "name" : "entity_type",
          "in" : "query",
          "description" : "Type of the entity this record is stored for.\n\\* customer -\n\nEntity that represents a customer\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "customer" ],
            "example" : null
          }
        }, {
          "name" : "entity_id",
          "in" : "query",
          "description" : "Handle of the customer in the current site.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "resource_migration" : {
                      "$ref" : "#/components/schemas/ResourceMigration",
                      "description" : "<p class=\"mb-2\">Resource object representing resource_migration</p>"
                    }
                  },
                  "required" : [ "resource_migration" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/time_machines/{time-machine-name}" : {
      "get" : {
        "summary" : "Retrieve a time machine",
        "description" : "Retrieves the time machine. Currently only one time machine is available per site and is named 'delorean'.\n",
        "operationId" : "retrieve_a_time_machine",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "time-machine-name",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/time-machine-name",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "time_machine" : {
                      "$ref" : "#/components/schemas/TimeMachine",
                      "description" : "<p class=\"mb-2\">Resource object representing time_machine</p>"
                    }
                  },
                  "required" : [ "time_machine" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/time_machines/{time-machine-name}/travel_forward" : {
      "post" : {
        "summary" : "Travel forward",
        "description" : "Travel forward in time. This operation is **asynchronous**\n.\nYou need to check if the \"start afresh\" operation has completed by checking if the time travel status is **successful**\nby retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests.\nUse method **waitForTimeTravelCompletion()** on the returned time_machine resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion()** on the returned time_machine resource which will block until the time travel completes.\n",
        "operationId" : "travel_forward",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "time-machine-name",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/time-machine-name",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "destination_time" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The **time**\nto travel to. Should be between the 'current' destination time of the time machine and present time.\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "time_machine" : {
                      "$ref" : "#/components/schemas/TimeMachine",
                      "description" : "<p class=\"mb-2\">Resource object representing time_machine</p>"
                    }
                  },
                  "required" : [ "time_machine" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/time_machines/{time-machine-name}/start_afresh" : {
      "post" : {
        "summary" : "Start Afresh",
        "description" : "Restart the time machine. This will clear the \"customer\" data like customer details, subscriptions, invoices, transactions. Also a time travel is initiated to travel back to specified genesis time.\n\n**Note:**\nThis API call is asynchronous.\nYou need to check if the \"start afresh\" operation has completed by checking if the time travel status is **successful**\nby retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for time travel completion**\nfunction provided as a instance method in the library.\nUse method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **WaitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes.\n",
        "operationId" : "start_afresh",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "time-machine-name",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/time-machine-name",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "genesis_time" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The genesis time to travel back as part of the reset operation. If not provided, then the travel is set to 6 months in the past.\n\n**Note:**\nCan only be in the past.\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "time_machine" : {
                      "$ref" : "#/components/schemas/TimeMachine",
                      "description" : "<p class=\"mb-2\">Resource object representing time_machine</p>"
                    }
                  },
                  "required" : [ "time_machine" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/customers" : {
      "post" : {
        "summary" : "Export Customers",
        "description" : "This API triggers export of customer data. The exported zip file contains CSV files with customer-related data.\n",
        "operationId" : "export_customers",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "export_type" : {
                    "type" : "string",
                    "default" : "data",
                    "deprecated" : false,
                    "description" : "Determines the format of the data. Returns the export type based on the selected value.\n\\* data -\n\nDownload your current data in CSV.\n\\* import_friendly_data -\n\nDownload import friendly data in CSV. This CSV can be used to perform [bulk operations](https://www.chargebee.com/docs/bulk-operations.html)\n.\n",
                    "enum" : [ "data", "import_friendly_data" ],
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The unique ID of the \\[business entity\\](/docs/api/getting-started) of this subscription. This is always the same as the \\[business entity\\](/docs/api/subscriptions/subscription-object#customer_id) of the customer. \\*\\*Supported operators :\\*\\* is, is_not, starts_with \\*\\*Example →\\*\\* \\*business_entity_id\\\\\\[is\\\\\\] = \"business_entity_id\"\\*\n",
                    "example" : "business_entity_id",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      }
                    }
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the customer.\n",
                        "example" : "9bsvnHgsvmsI",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "first_name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "First name of the customer\n",
                        "example" : "John",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "last_name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Last name of the customer\n",
                        "example" : "Clint",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "email" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                        "example" : "john@test.com",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "company" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Company name of the customer.\n",
                        "example" : "Globex Corp",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "phone" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Phone number of the customer\n",
                        "example" : "(541) 754-3010",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "auto_collection" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Whether payments needs to be collected automatically for this customer\n",
                        "example" : "on",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "taxability" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Specifies if the customer is liable for tax\n",
                        "example" : "taxable",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating when this customer resource is created.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "offline_payment_method" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the customer.\n",
                        "example" : "cash",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "auto_close_invoices" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Override for this customer, the \\[site-level setting\\](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing) for auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute is also available at the \\[subscription level\\](/docs/api/subscriptions/subscription-object#auto_close_invoices) which takes precedence.\n",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  },
                  "relationship" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for relationship\n",
                    "properties" : {
                      "parent_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Immediate parent with whom we will link our new customer(child)\n",
                        "example" : "future_billing",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "payment_owner_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Parent who is going to pay\n",
                        "example" : "active1",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "invoice_owner_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Parent who is going to handle invoices\n",
                        "example" : "future_billing",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "relationship" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/attached_items" : {
      "post" : {
        "summary" : "Export Attached Items",
        "description" : "This API triggers export of attached item data. The exported zip file contains CSV files with attached item-related data.\n",
        "operationId" : "export_attached_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "item_type" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">To filter based on the type of of the attached item. Possible values are : <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>.\nPossible values are : plan, addon, charge.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_type[is_not] = &quot;plan&quot;</em></p>",
                    "example" : "plan",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "attached_item" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for attached_item\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Filter attached items based on their id.\n",
                        "example" : "bec0c324-adb6-44d3-ad4f-694f449be97c",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "item_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter attached items based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\nof the item being attached.</p>",
                        "example" : "basic",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter attached items based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof attached item. Possible values are : <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recommended</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">optional</code>\n.</p>",
                        "example" : "mandatory",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                            "enum" : [ "recommended", "mandatory", "optional" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                            "enum" : [ "recommended", "mandatory", "optional" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                            "enum" : [ "recommended", "mandatory", "optional" ],
                            "pattern" : "^\\[(recommended|mandatory|optional)(,(recommended|mandatory|optional))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                            "enum" : [ "recommended", "mandatory", "optional" ],
                            "pattern" : "^\\[(recommended|mandatory|optional)(,(recommended|mandatory|optional))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "charge_on_event" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Indicates when the item is charged. This attribute only applies to charge-items.\n",
                        "example" : "subscription_creation",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                            "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                            "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                            "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                            "pattern" : "^\\[(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand)(,(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                            "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                            "pattern" : "^\\[(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand)(,(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Filter attached items based on when the attached items were last updated.\n",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "parent_item_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The id of the plan-item to which the item is attached.\n",
                        "example" : "silver",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "attached_item" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/transactions" : {
      "post" : {
        "summary" : "Export Transactions",
        "description" : "This API triggers export of transaction data. The exported zip file contains CSV files with transaction-related data.\n",
        "operationId" : "export_transactions",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "transaction" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for transaction\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Uniquely identifies the transaction.\n",
                        "example" : "txn_88ybdbsnvf2",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "customer_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the customer for which this transaction is made\n",
                        "example" : "5hjdk8nOpd",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "subscription_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the subscription for which this transaction is made.\n",
                        "example" : "5hjdk8nOpd",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "payment_source_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "To filter based on Transaction payment source id.\n",
                        "example" : "pm_3Nl8XXUQUXDVFa2",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "payment_method" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The payment method of this transaction\n",
                        "example" : "card",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                            "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                            "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                            "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                            "pattern" : "^\\[(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna)(,(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `card` - Card\n* `cash` - Cash\n* `check` - Check\n* `chargeback` - Only applicable for a transaction of <code><a href=\"transactions#transaction_type\">type</a></code> = <code>refund</code>. This value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" rel=\"noopener noreferrer\" target=\"_blank\">chargeback</a> occurs. You can also set this explicitly when <a href=\"transactions#record_an_offline_refund\">recording a refund</a>.\n* `bank_transfer` - Bank Transfer\n* `amazon_payments` - Amazon Payments\n* `paypal_express_checkout` - Paypal Express Checkout\n* `direct_debit` - Direct Debit\n* `alipay` - Alipay <span isMicro='true' featureId='cb-alipay'></span>\n* `unionpay` - Unionpay\n* `apple_pay` - Apple Pay\n* `wechat_pay` - WeChat Pay <span isMicro='true' featureId='cb-wechat-pay'></span>\n* `ach_credit` - ACH Credit\n* `sepa_credit` - SEPA Credit\n* `ideal` - IDEAL\n* `google_pay` - Google Pay\n* `sofort` - Sofort\n* `bancontact` - Bancontact\n* `giropay` - giropay\n* `dotpay` - Dotpay\n* `other` - Payment Methods other than the above types\n* `app_store` - **(Deprecated)** App Store\n* `upi` - upi\n* `netbanking_emandates` - netbanking_emandates\n* `play_store` - **(Deprecated)** Play Store\n* `custom` - Custom\n* `boleto` - boleto\n* `venmo` - Venmo <span isMicro='true' featureId='cb-venmo'></span>\n* `pay_to` - PayTo <span isMicro='true' featureId='cb-pay-to'></span>\n* `faster_payments` - Faster Payments <span isMicro='true' featureId='cb-faster-payments'></span>\n* `sepa_instant_transfer` - Sepa Instant Transfer <span isMicro='true' featureId='cb-sepa-instant-transfer'></span>\n* `automated_bank_transfer` - Automated Bank Transfer <span isMicro='true' featureId='cb-bank-transfer'></span>\n* `klarna_pay_now` - Klarna Pay Now <span isMicro='true' featureId='cb-klarna-pay-now'></span>\n* `online_banking_poland` - Online Banking Poland <span isMicro='true' featureId='cb-online-banking-poland'></span>\n* `payconiq_by_bancontact` - Payconiq by Bancontact <span isMicro='true' featureId='cb-payconiq-by-bancontact'></span>\n* `electronic_payment_standard` - Payments made via Electronic Payment Standard.\n* `kbc_payment_button` - Payments made via KBC Payment Button.\n* `pay_by_bank` - Payments made via Pay By Bank.\n* `trustly` - Payments made via Trustly.\n* `stablecoin` - Stablecoin <span isMicro='true' featureId='cb-stablecoin'></span>\n* `kakao_pay` - Kakao Pay <span isMicro='true' featureId='cb-kakao-pay'></span>\n* `naver_pay` - Naver Pay <span isMicro='true' featureId='cb-naver-pay'></span>\n* `revolut_pay` - Revolut Pay <span isMicro='true' featureId='cb-revolut-pay'></span>\n* `cash_app_pay` - Cash App Pay <span isMicro='true' featureId='cb-cash-app-pay'></span>\n* `pix` - Payments made via Pix <span isMicro='true' featureId='cb-pix'></span>\n* `twint` - Twint <span isMicro='true' featureId='cb-twint'></span>\n* `go_pay` - Go Pay <span isMicro='true' featureId='cb-go-pay'></span>\n* `grab_pay` - Grab Pay <span isMicro='true' featureId='cb-grab-pay'></span>\n* `pay_co` - Pay Co <span isMicro='true' featureId='cb-pay-co'></span>\n* `after_pay` - After Pay <span isMicro='true' featureId='cb-after-pay'></span>\n* `swish` - Swish <span isMicro='true' featureId='cb-swish'></span>\n* `payme` - PayMe <span isMicro='true' featureId='cb-payme'></span>\n* `klarna` - Payments made via Klarna <span isMicro='true' featureId='cb-klarna'></span>",
                            "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
                            "pattern" : "^\\[(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna)(,(card|cash|check|chargeback|bank_transfer|amazon_payments|paypal_express_checkout|direct_debit|alipay|unionpay|apple_pay|wechat_pay|ach_credit|sepa_credit|ideal|google_pay|sofort|bancontact|giropay|dotpay|other|app_store|upi|netbanking_emandates|play_store|custom|boleto|venmo|pay_to|faster_payments|sepa_instant_transfer|automated_bank_transfer|klarna_pay_now|online_banking_poland|payconiq_by_bancontact|electronic_payment_standard|kbc_payment_button|pay_by_bank|trustly|stablecoin|kakao_pay|naver_pay|revolut_pay|cash_app_pay|pix|twint|go_pay|grab_pay|pay_co|after_pay|swish|payme|klarna))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "gateway" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Gateway through which this transaction was done. Applicable only for 'Card' Payment Method\n",
                        "example" : "stripe",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                            "pattern" : "^\\[(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable)(,(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `chargebee` - Chargebee test gateway.\n* `chargebee_payments` - Chargebee Payments gateway\n* `adyen` - Adyen is a payment gateway.\n* `stripe` - Stripe is a payment gateway.\n* `wepay` - WePay is a payment gateway.\n* `braintree` - Braintree is a payment gateway.\n* `authorize_net` - Authorize.net is a payment gateway\n* `paypal_pro` - PayPal Pro Account is a payment gateway.\n* `pin` - Pin is a payment gateway\n* `eway` - eWAY Account is a payment gateway.\n* `eway_rapid` - eWAY Rapid is a payment gateway.\n* `worldpay` - WorldPay is a payment gateway\n* `balanced_payments` - Balanced is a payment gateway\n* `beanstream` - Bambora(formerly known as Beanstream) is a payment gateway.\n* `bluepay` - BluePay is a payment gateway.\n* `elavon` - Elavon Virtual Merchant is a payment solution.\n* `first_data_global` - First Data Global Gateway Virtual Terminal Account\n* `hdfc` - HDFC Account is a payment gateway.\n* `migs` - MasterCard Internet Gateway Service payment gateway.\n* `nmi` - NMI is a payment gateway.\n* `ogone` - Ingenico ePayments (formerly known as Ogone) is a payment gateway.\n* `paymill` - PAYMILL is a payment gateway.\n* `paypal_payflow_pro` - PayPal Payflow Pro is a payment gateway.\n* `sage_pay` - Sage Pay is a payment gateway.\n* `tco` - 2Checkout is a payment gateway.\n* `wirecard` - WireCard Account is a payment service provider.\n* `amazon_payments` - Amazon Payments is a payment service provider.\n* `paypal_express_checkout` - PayPal Express Checkout is a payment gateway.\n* `gocardless` - GoCardless is a payment service provider.\n* `orbital` - Chase Paymentech(Orbital) is a payment gateway.\n* `moneris_us` - Moneris USA is a payment gateway.\n* `moneris` - Moneris is a payment gateway.\n* `bluesnap` - BlueSnap is a payment gateway.\n* `cybersource` - CyberSource is a payment gateway.\n* `vantiv` - Vantiv is a payment gateway.\n* `checkout_com` - Checkout.com is a payment gateway.\n* `paypal` - PayPal Commerce is a payment gateway.\n* `ingenico_direct` - Worldline Online Payments is a payment gateway.\n* `exact` - Exact Payments is a payment gateway.\n* `mollie` - Mollie is a payment gateway.\n* `quickbooks` - Intuit QuickBooks Payments gateway\n* `razorpay` - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n* `global_payments` - Global Payments is a payment service provider.\n* `bank_of_america` - Bank of America Gateway\n* `ecentric` - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n* `metrics_global` - Metrics global is a leading payment service provider providing unified payment services in the US.\n* `windcave` - Windcave provides an end to end payment processing solution in ANZ and other leading global markets.\n* `pay_com` - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.<span isMicro='true' featureId='cb-pay-com'></span>\n* `ebanx` - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.<span isMicro='true' featureId='cb-ebanx'></span>\n* `dlocal` - Dlocal provides payment solutions for global commerce by accepting local payment methods.\n* `nuvei` - Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-nuvei'></span>\n* `solidgate` - Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses. <span isMicro='true' featureId='cb-solidgate'></span>\n* `paystack` - Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline. <span isMicro='true' featureId='cb-paystack'></span>\n* `jp_morgan` - J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a http='payment_sources?lang=curl#payment_source_type'><code>payment_source_type</code></a>. <span isMicro='true' featureId='cb-jp-morgan'></span>\n* `deutsche_bank` - Deutsche Bank is the leading German bank with strong European roots and a global network. <span isMicro='true' featureId='cb-deutsche-bank'></span>\n* `ezidebit` - Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.<div class='alert alert-info'> Ezidebit is in beta.</div>\n* `twikey` - Twikey is a payment gateway that provides automated payment collection and mandate management solutions.\n* `tempus` - Tempus Technologies is a payment gateway and payments technology provider offering secure payment processing with end-to-end encryption (P2PE) and tokenization.\n* `moyasar` - Moyasar is a fully integrated online payment services that makes accepting payments simple and secure\n* `payway` - Payway is a payment gateway that enables secure card and payment acceptance.\n* `not_applicable` - Indicates that payment gateway is not applicable for this resource.",
                            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                            "pattern" : "^\\[(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable)(,(chargebee|chargebee_payments|adyen|stripe|wepay|braintree|authorize_net|paypal_pro|pin|eway|eway_rapid|worldpay|balanced_payments|beanstream|bluepay|elavon|first_data_global|hdfc|migs|nmi|ogone|paymill|paypal_payflow_pro|sage_pay|tco|wirecard|amazon_payments|paypal_express_checkout|gocardless|orbital|moneris_us|moneris|bluesnap|cybersource|vantiv|checkout_com|paypal|ingenico_direct|exact|mollie|quickbooks|razorpay|global_payments|bank_of_america|ecentric|metrics_global|windcave|pay_com|ebanx|dlocal|nuvei|solidgate|paystack|jp_morgan|deutsche_bank|ezidebit|twikey|tempus|moyasar|payway|not_applicable))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "gateway_account_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The gateway account used for this transaction\n",
                        "example" : "gw_3Nl9BNeQ7438Ks1",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "id_at_gateway" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The id with which this transaction is referred in gateway.\n",
                        "example" : "txn_5678HJS89900",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "reference_number" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The reference number for this transaction. For example, the check number when <code><a href=\"/docs/api/transactions/transaction-object#payment_method\">payment_method</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">check</code>\n.</p>",
                        "example" : "cus_u239732",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Type of the transaction.\n",
                        "example" : "payment",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                            "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                            "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                            "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                            "pattern" : "^\\[(authorization|payment|refund|payment_reversal)(,(authorization|payment|refund|payment_reversal))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `authorization` - The transaction represents an authorization for capturing the <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment` - The transaction represents capture of <code><a href=\"transactions#transaction_amount\">amount</a></code> from the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `refund` - The transaction represents a refund of <code><a href=\"transactions#transaction_amount\">amount</a></code> to the customer’s <code><a href=\"payment_sources\">payment_source</a></code>.\n* `payment_reversal` - Indicates a reversal transaction.",
                            "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                            "pattern" : "^\\[(authorization|payment|refund|payment_reversal)(,(authorization|payment|refund|payment_reversal))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "date" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Indicates when this transaction occurred.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Amount for this transaction.\n",
                        "example" : "1200",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_capturable" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "To filter based on transaction's unused authorized/blocked amount.\n",
                        "example" : "1200",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The status of this transaction.\n",
                        "example" : "success",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                            "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                            "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                            "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                            "pattern" : "^\\[(in_progress|success|voided|failure|timeout|needs_attention|late_failure)(,(in_progress|success|voided|failure|timeout|needs_attention|late_failure))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Transaction is being processed by the gateway. This typically happens for [direct debit transactions](https://www.chargebee.com/docs/direct-debit-payments.html) or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method. \\* \\`success\\` - The transaction is successful. \\* \\`voided\\` - The transaction got voided or authorization expired at gateway. \\* \\`failure\\` - Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure \\* \\`timeout\\` - Transaction failed because of Gateway not accepting the connection. \\* \\`needs_attention\\` - Connection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually \\* \\`late_failure\\` - This status indicates that late failure has been recorded for the transaction that has encountered success state in the previous stage.\n",
                            "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                            "pattern" : "^\\[(in_progress|success|voided|failure|timeout|needs_attention|late_failure)(,(in_progress|success|voided|failure|timeout|needs_attention|late_failure))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "transaction" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/differential_prices" : {
      "post" : {
        "summary" : "Export Differential Price",
        "description" : "This API triggers export of differential price data. The exported zip file contains CSV files with differential price-related data.\n",
        "operationId" : "export_differential_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "item_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter Item Id of Addon / Charge item price for which differential pricing is applied to. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*item_id\\\\\\[is\\\\\\] = \"day-pass\"\\*\n",
                    "example" : "day-pass",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "differential_price" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for differential_price\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The id of the item price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>\n) whose price should change according to the plan-item it is applied to.</p>",
                        "example" : "day-pass-USD",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "A unique and immutable id for the differential price. It is auto-generated when the differential price is created.\n",
                        "example" : "defcc4f1-f21f-47f4-8019-beddb9beab5f",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "parent_item_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The id of the plan-item, in relation to which, the differential pricing for the addon or charge is defined. For example, this would be the id of the \\*Standard\\* or \\*Enterprise\\* plans-items mentioned in the \\[examples above\\](/docs/api/differential_prices) .\n",
                        "example" : "basic",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "differential_price" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/item_families" : {
      "post" : {
        "summary" : "Export Item Families",
        "description" : "This API triggers export of item family data. The exported zip file contains CSV files with item family-related data.\n",
        "operationId" : "export_item_families",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "business_entity_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
                    "example" : "business_entity_id",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_present" : {
                        "type" : "string",
                        "format" : "boolean",
                        "description" : "null\n",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    }
                  },
                  "include_site_level_resources" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "format" : "boolean",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_family" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_family\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The identifier for the item family. It is unique and immutable.\n",
                        "example" : "family-id",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "A unique display name for the item family. This is visible only in Chargebee and not to customers.\n",
                        "example" : "family-name",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "When the item family was last updated.\n",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "item_family" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/invoices" : {
      "post" : {
        "summary" : "Export Invoices",
        "description" : "This API triggers export of invoice data. The exported zip file contains CSV files with invoice-related data.\n\n### Invoice Export Best Practice\n\nFor a full export, Chargebee recommends exporting data in batches by using date filters. The table below provides examples of how to set the filters:  \n\n|                 **Scenario**                  |                        **Filter Example**                        |                **Description**                |\n|-----------------------------------------------|------------------------------------------------------------------|-----------------------------------------------|\n| Export invoices updated after January 1, 2024 | *invoice\\[updated_at\\]\\[after\\] = \"1704067200\"*                  | Export invoices from January 1, 2024 onwards. |\n| Export invoices for 2023                      | *invoice\\[updated_at\\]\\[between\\] = \"\\[1672531200,1704067199\\]\"* | Export all invoices for the year 2023.        |\n| Export invoices for 2022                      | *invoice\\[updated_at\\]\\[between\\] = \"\\[1640995200,1672531199\\]\"* | Export all invoices for the year 2022.        |\n\nIf the export still fails, further reduce the date range, for example:  \n\n|            **Scenario**            |                        **Filter Example**                        |                           **Description**                            |\n|------------------------------------|------------------------------------------------------------------|----------------------------------------------------------------------|\n| Export for the second half of 2024 | *invoice\\[updated_at\\]\\[after\\] = \"1717200000\"*                  | Export invoices are updated after June 1, 2024.                      |\n| Export for the first half of 2024  | *invoice\\[updated_at\\]\\[between\\] = \"\\[1704067200,1717199999\\]\"* | Export invoices updated between January 1, 2024, and May 31, 2024.   |\n| Export for the second half of 2023 | *invoice\\[updated_at\\]\\[between\\] = \"\\[1685577600,1704067199\\]\"* | Export invoices updated between June 1, 2023, and December 31, 2023. |\n| Export for the first half of 2023  | *invoice\\[updated_at\\]\\[between\\] = \"\\[1672531200,1685577599\\]\"* | Export invoices updated between January 1, 2023, and May 31, 2023.   |\n\n**Note**\n\nThe date ranges in the examples above are just suggestions; you can adjust the date window to fit your specific needs. If an export fails due to large data volume, reduce the date window further and retry the export.\n",
        "operationId" : "export_invoices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "payment_owner" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter Payment owner of an invoice. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*payment_owner\\\\\\[is\\\\\\] = \"payment_customer\"\\*\n",
                    "example" : "payment_customer",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "invoice" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The invoice number. Acts as a identifier for invoice and typically generated sequentially.\n",
                        "example" : "INVOICE_654",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "subscription_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "To filter based on subscription_id. NOTE: Not to be used if \\*consolidated invoicing\\* is enabled.\n",
                        "example" : "3bdjnDnsdQn",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "customer_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The identifier of the customer this invoice belongs to.\n",
                        "example" : "3bdjnDnsdQn",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "recurring" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Boolean indicating whether this invoice belongs to a subscription\n",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current status of this invoice.\n",
                        "example" : "paid",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "price_type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The price type of the invoice.\n",
                        "example" : "tax_exclusive",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "date" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The document date displayed on the invoice PDF.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "paid_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating the date \\\\\\& time this invoice got paid.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "total" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Invoiced amount displayed in cents; that is, a decimal point is not present between the whole number and the decimal part. For example, $499.99 is displayed as 49999, and so on.\n",
                        "example" : "1000",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_paid" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Payments collected successfully for the invoice. This is the sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_payments\">linked_payments[]</a>.txn_amount</code>\nfor all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[]</code>\nthat have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</p>",
                        "example" : "800",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_adjusted" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Total adjustments made against this invoice.\n",
                        "example" : "100",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "credits_applied" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Total credits applied against this invoice.\n",
                        "example" : "100",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_due" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unpaid amount that is due on the invoice. This is calculated as: <code><a href=\"/docs/api/invoices/invoice-object#total\">total</a></code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<code><a href=\"/docs/api/invoices/invoice-object#amount_paid\">amount_paid</a></code>\n</li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#applied_credits\">applied_credits</a>.applied_amount</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a>.cn_total</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">linked_taxes_withheld</a>.amount</code>.</li>\n</ul>",
                        "example" : "200",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "dunning_status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current dunning status of the invoice.\n",
                        "example" : "in_progress",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response. <a href=\"/docs/api/exports\">Learn more</a> about the best practice before performing full export.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "invoice" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/{export-id}" : {
      "get" : {
        "summary" : "Retrieve an export",
        "description" : "This API gets the status of the export job initiated by the Exports API. If the export job is completed, the downloads resource will also be obtained in the API response. The returned URL in the downloads resource is secure and can be downloaded. The URL expires after 4 hours. Please note that this is a public URL, and can be downloaded by anyone with whom it's shared.\n\n**Note:** In case the export is in Failed or In-process state, then the downloads resource will not be available.\n",
        "operationId" : "retrieve_an_export",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "export-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/export-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/price_variants" : {
      "post" : {
        "summary" : "Export Price Variants",
        "description" : "This API triggers export of price variant data. The exported zip file contains CSV files with price variant-related data.\n",
        "operationId" : "export_price_variants",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "business_entity_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price_variant</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
                    "example" : "business_entity_id",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_present" : {
                        "type" : "string",
                        "format" : "boolean",
                        "description" : "null\n",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    }
                  },
                  "include_site_level_resources" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "format" : "boolean",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "price_variant" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for price_variant\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Filter variant based on their \\[id\\](/docs/api/exports) .\n",
                        "example" : "basic",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter variant based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ns.</p>",
                        "example" : "basic",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter variant based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>",
                        "example" : "active",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                            "enum" : [ "active", "archived" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                            "enum" : [ "active", "archived" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                            "enum" : [ "active", "archived" ],
                            "pattern" : "^\\[(active|archived)(,(active|archived))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                            "enum" : [ "active", "archived" ],
                            "pattern" : "^\\[(active|archived)(,(active|archived))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter product based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated time</code>\n.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter product  based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">created time</code>\n.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "price_variant" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/items" : {
      "post" : {
        "summary" : "Export Items",
        "description" : "This API triggers export of item data. The exported zip file contains CSV files with item-related data.\n",
        "operationId" : "export_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "business_entity_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
                    "example" : "business_entity_id",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_present" : {
                        "type" : "string",
                        "format" : "boolean",
                        "description" : "null\n",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    }
                  },
                  "include_site_level_resources" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "format" : "boolean",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Filter items based on item id.\n",
                        "example" : "basic",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "item_family_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter items based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family_id</code>\n.</p>",
                        "example" : "acme",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter items based on item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n.</p>",
                        "example" : "plan",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                            "enum" : [ "plan", "addon", "charge" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                            "enum" : [ "plan", "addon", "charge" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                            "enum" : [ "plan", "addon", "charge" ],
                            "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                            "enum" : [ "plan", "addon", "charge" ],
                            "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter items based on item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\n.</p>",
                        "example" : "basic",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "item_applicability" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter items based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_applicability</code>\n.</p>",
                        "example" : "all",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                            "enum" : [ "all", "restricted" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                            "enum" : [ "all", "restricted" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                            "enum" : [ "all", "restricted" ],
                            "pattern" : "^\\[(all|restricted)(,(all|restricted))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                            "enum" : [ "all", "restricted" ],
                            "pattern" : "^\\[(all|restricted)(,(all|restricted))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter items based on item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>",
                        "example" : "active",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "is_giftable" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Specifies if gift subscriptions can be created for this item.\n",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Filter items based on when the items were last updated.\n",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "enabled_for_checkout" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Allow the plan to subscribed to via Checkout. Applies only for plan-items. \\*\\*Note:\\*\\* Only the in-app layout of Checkout is supported.\n",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        },
                        "example" : null
                      },
                      "enabled_in_portal" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Allow customers to change their subscription to this plan via the \\[Self-Serve Portal\\](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html). Applies only for plan-items. This requires the Portal configuration to \\[allow changing subscriptions\\](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription) .\n",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        },
                        "example" : null
                      },
                      "metered" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies whether the item undergoes metered billing. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the quantity is calculated from <a href=\"/docs/api/usages\">usage records</a>.\nWhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nis as determined while adding an item price to the subscription. Applicable only for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nand when <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html\" target=\"_blank\" rel=\"noopener noreferrer\">Metered Billing</a>\nis enabled. The value of this attribute cannot be changed.</p>",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "usage_calculation" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">How the quantity is calculated from usage data for the item prices belonging to this item. Only applicable when the item is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>.\nThis value overrides the one <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">set at the site level</a>\n.</p>",
                        "example" : "SUM_OF_USAGES",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                            "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                            "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                            "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                            "pattern" : "^\\[(sum_of_usages|last_usage|max_usage)(,(sum_of_usages|last_usage|max_usage))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                            "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                            "pattern" : "^\\[(sum_of_usages|last_usage|max_usage)(,(sum_of_usages|last_usage|max_usage))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "item" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/deferred_revenue" : {
      "post" : {
        "summary" : "Export Deferred Revenue Reports",
        "description" : "**Important:**\nThis report is deprecated. Therefore, the endpoint is also deprecated.\n\nThis API triggers export for the Deferred Revenue Report.\n\n**Note:**\nThis API call is asynchronous.\nYou need to check if this operation has completed by checking if the export status is **completed**\n. You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for export completion**\nfunction provided as an instance method in the library.\nYou need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **WaitForExportCompletion** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes.\n",
        "operationId" : "export_deferred_revenue_reports",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "report_by" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Determines the scope of the report. Returns the report based on the value specified.\n\\* subscription -\n\nSubscription\n\\* invoice -\n\nInvoice\n\\* product -\n\nProduct (Includes Plan, Addon and Adhoc)\n\\* customer -\n\nCustomer\n",
                    "enum" : [ "customer", "invoice", "product", "subscription" ],
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Value must be in ISO 4217 format. Generates the report based on the value specified. If no currency_code value is specified, then consolidated report based on base currency is returned.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "report_from_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data from the specified month, combined with the value specified for report_from_year.Values must be between 1 and 12, where 1 is January and 12 is December.\n",
                    "example" : null
                  },
                  "report_from_year" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data from the specified year, combined with the value specified for report_from_month.\n",
                    "example" : null
                  },
                  "report_to_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data from the specified month, combined with the value specified for report_to_year.Values must be between 1 and 12, where 1 is January and 12 is December.\n",
                    "example" : null
                  },
                  "report_to_year" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data until the specified year, combined with the value specified for report_to_month.\n",
                    "example" : null
                  },
                  "include_discounts" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Returns amount with discount in the report. If value specified is false, it returns amount without discount.\n",
                    "example" : null
                  },
                  "payment_owner" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter Payment owner of an invoice. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*payment_owner\\\\\\[is\\\\\\] = \"payment_customer\"\\*\n",
                    "example" : "payment_customer",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "item_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The plan item code. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*item_id\\\\\\[is\\\\\\] = \"silver\"\\*\n",
                    "example" : "silver",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "item_price_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The plan item price code. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*item_price_id\\\\\\[is\\\\\\] = \"silver-USD-monthly\"\\*\n",
                    "example" : "silver-USD-monthly",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "cancel_reason_code" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in \\*\\*Settings \\\\\\> Configure Chargebee \\\\\\> Reason Codes \\\\\\> Subscriptions \\\\\\> Subscription Cancellation\\*\\* . Must be passed if set as mandatory in the app. The codes are case-sensitive. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*cancel_reason_code\\\\\\[is\\\\\\] = \"Not Paid\"\\*\n",
                    "example" : "Not Paid",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "business_entity_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The unique ID of the \\[business entity\\](/docs/api/getting-started) of this subscription. This is always the same as the \\[business entity\\](/docs/api/subscriptions/subscription-object#customer_id) of the customer. \\*\\*Supported operators :\\*\\* is, is_not, starts_with \\*\\*Example →\\*\\* \\*business_entity_id\\\\\\[is_not\\\\\\] = \"business_entity_id\"\\*\n",
                    "example" : "business_entity_id",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      }
                    }
                  },
                  "invoice" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The invoice number. Acts as a identifier for invoice and typically generated sequentially.\n",
                        "example" : "INVOICE_654",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "recurring" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Boolean indicating whether this invoice belongs to a subscription\n",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current status of this invoice.\n",
                        "example" : "paid",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "price_type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The price type of the invoice.\n",
                        "example" : "tax_exclusive",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "date" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The document date displayed on the invoice PDF.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "paid_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating the date \\\\\\& time this invoice got paid.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "total" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Invoiced amount displayed in cents; that is, a decimal point is not present between the whole number and the decimal part. For example, $499.99 is displayed as 49999, and so on.\n",
                        "example" : "1000",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_paid" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Payments collected successfully for the invoice. This is the sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_payments\">linked_payments[]</a>.txn_amount</code>\nfor all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[]</code>\nthat have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</p>",
                        "example" : "800",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_adjusted" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Total adjustments made against this invoice.\n",
                        "example" : "100",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "credits_applied" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Total credits applied against this invoice.\n",
                        "example" : "100",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_due" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unpaid amount that is due on the invoice. This is calculated as: <code><a href=\"/docs/api/invoices/invoice-object#total\">total</a></code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<code><a href=\"/docs/api/invoices/invoice-object#amount_paid\">amount_paid</a></code>\n</li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#applied_credits\">applied_credits</a>.applied_amount</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a>.cn_total</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">linked_taxes_withheld</a>.amount</code>.</li>\n</ul>",
                        "example" : "200",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "dunning_status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current dunning status of the invoice.\n",
                        "example" : "in_progress",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "example" : "8gsnbYfsMLds",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "customer_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the customer with whom this subscription is associated.\n",
                        "example" : "8gsnbYfsMLds",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current state of the subscription\n",
                        "example" : "active",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "cancel_reason" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The reason for canceling the subscription. Set by Chargebee automatically.\n",
                        "example" : "not_paid",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "remaining_billing_cycles" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "\\* When the subscription is not on a contract term: this value is the number of billing cycles remaining after the current cycle, at the end of which, the subscription cancels. \\* When the subscription is on a \\[contract term\\](/docs/api/contract_terms): this value is the number of billing cycles remaining in the contract term after the current billing cycle.\n",
                        "example" : "3",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The time at which the subscription was created.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "activated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Time at which the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nlast changed to\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nFor example, this value is updated when an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\nor\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscription activates.</p>",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "next_billing_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the next billing for the subscription happens. This is usually right after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>\nunless multiple subscription terms were invoiced in advance using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nparameter.</p>",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "cancelled_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Time at which subscription was cancelled or is set to be cancelled.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "has_scheduled_changes" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, there are subscription changes scheduled on next renewal.</p>",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "offline_payment_method" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n",
                        "example" : "cash",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "auto_close_invoices" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto override for this subscription, the <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">site-level setting</a>\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute has a higher precedence than the same attribute at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>\n.</p>",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the customer.\n",
                        "example" : "9bsvnHgsvmsI",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "first_name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "First name of the customer\n",
                        "example" : "John",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "last_name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Last name of the customer\n",
                        "example" : "Clint",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "email" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                        "example" : "john@test.com",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "company" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Company name of the customer.\n",
                        "example" : "Globex Corp",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "phone" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Phone number of the customer\n",
                        "example" : "(541) 754-3010",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "auto_collection" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Whether payments needs to be collected automatically for this customer\n",
                        "example" : "on",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "taxability" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Specifies if the customer is liable for tax\n",
                        "example" : "taxable",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating when this customer resource is created.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "offline_payment_method" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the customer.\n",
                        "example" : "cash",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "auto_close_invoices" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Override for this customer, the \\[site-level setting\\](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing) for auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute is also available at the \\[subscription level\\](/docs/api/subscriptions/subscription-object#auto_close_invoices) which takes precedence.\n",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  },
                  "relationship" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for relationship\n",
                    "properties" : {
                      "parent_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Immediate parent with whom we will link our new customer(child)\n",
                        "example" : "future_billing",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "payment_owner_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Parent who is going to pay\n",
                        "example" : "active1",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "invoice_owner_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Parent who is going to handle invoices\n",
                        "example" : "future_billing",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "report_by", "report_from_month", "report_from_year", "report_to_month", "report_to_year" ],
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "invoice" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "relationship" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/revenue_recognition" : {
      "post" : {
        "summary" : "Export Revenue Recognition Reports",
        "description" : "**Important:**\nThis report is deprecated. Therefore, the endpoint is also deprecated.\n\nThis API triggers export for the revenue recognition report.\n\n**Note:**\nThis API call is asynchronous.\nYou need to check if this operation has completed by checking if the export status is **completed**\n. You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for export completion**\nfunction provided as an instance method in the library.\nYou need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **WaitForExportCompletion** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes.\n",
        "operationId" : "export_revenue_recognition_reports",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "report_by" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Determines the scope of the report. Returns the report based on the value specified.\n\\* subscription -\n\nSubscription\n\\* invoice -\n\nInvoice\n\\* product -\n\nProduct (Includes Plan, Addon and Adhoc)\n\\* customer -\n\nCustomer\n",
                    "enum" : [ "customer", "invoice", "product", "subscription" ],
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Value must be in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html)\nformat. Generates the report based on the value specified. If no currency_code value is specified, then consolidated report based on base currency is returned.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "report_from_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data from the specified month, combined with the value specified for report_from_year. Values must be between 1 and 12, where 1 is January and 12 is December.\n",
                    "example" : null
                  },
                  "report_from_year" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data from the specified year, combined with the value specified for report_from_month.\n",
                    "example" : null
                  },
                  "report_to_month" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data from the specified month, combined with the value specified for report_to_year. Values must be between 1 and 12, where 1 is January and 12 is December.\n",
                    "example" : null
                  },
                  "report_to_year" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Obtains report data until the specified year, combined with the value specified for report_to_month.\n",
                    "example" : null
                  },
                  "include_discounts" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Returns amount with discount in the report. If value specified is false, it returns amount without discount.\n",
                    "example" : null
                  },
                  "payment_owner" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter Payment owner of an invoice. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*payment_owner\\\\\\[is\\\\\\] = \"payment_customer\"\\*\n",
                    "example" : "payment_customer",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "item_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The plan item code. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*item_id\\\\\\[is\\\\\\] = \"silver\"\\*\n",
                    "example" : "silver",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "item_price_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The plan item price code. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*item_price_id\\\\\\[is\\\\\\] = \"silver-USD-monthly\"\\*\n",
                    "example" : "silver-USD-monthly",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "cancel_reason_code" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in \\*\\*Settings \\\\\\> Configure Chargebee \\\\\\> Reason Codes \\\\\\> Subscriptions \\\\\\> Subscription Cancellation\\*\\* . Must be passed if set as mandatory in the app. The codes are case-sensitive. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*cancel_reason_code\\\\\\[is\\\\\\] = \"Not Paid\"\\*\n",
                    "example" : "Not Paid",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "business_entity_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The unique ID of the \\[business entity\\](/docs/api/getting-started) of this subscription. This is always the same as the \\[business entity\\](/docs/api/subscriptions/subscription-object#customer_id) of the customer. \\*\\*Supported operators :\\*\\* is, is_not, starts_with \\*\\*Example →\\*\\* \\*business_entity_id\\\\\\[is_not\\\\\\] = \"business_entity_id\"\\*\n",
                    "example" : "business_entity_id",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      }
                    }
                  },
                  "invoice" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The invoice number. Acts as a identifier for invoice and typically generated sequentially.\n",
                        "example" : "INVOICE_654",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "recurring" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Boolean indicating whether this invoice belongs to a subscription\n",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current status of this invoice.\n",
                        "example" : "paid",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `paid` - Indicates a paid invoice.\n* `posted` - Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period\n* `payment_due` - Indicates the payment is not yet collected and is being retried as per retry settings.\n* `not_paid` - Indicates the payment is not made and all attempts to collect is failed.\n* `voided` - Indicates a voided invoice.\n* `pending` - <div prod_cat_ver=2>The <a href=\"/docs/api/invoices?prod_cat_ver=2#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code>status</code> when it has line items that belong to items that are <code>metered</code> or when the <code>subscription.create_pending_invoices</code>attribute is set to <code>true</code>.</div><div prod_cat_ver=1>The <a href=\"/docs/api/invoices?prod_cat_ver=1#invoice_status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code>status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\" rel=\"noreferrer noopener\">Metered Billing</a> is enabled for the site.</div>",
                            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                            "pattern" : "^\\[(paid|posted|payment_due|not_paid|voided|pending)(,(paid|posted|payment_due|not_paid|voided|pending))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "price_type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The price type of the invoice.\n",
                        "example" : "tax_exclusive",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "date" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The document date displayed on the invoice PDF.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "paid_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating the date \\\\\\& time this invoice got paid.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "total" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Invoiced amount displayed in cents; that is, a decimal point is not present between the whole number and the decimal part. For example, $499.99 is displayed as 49999, and so on.\n",
                        "example" : "1000",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_paid" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Payments collected successfully for the invoice. This is the sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_payments\">linked_payments[]</a>.txn_amount</code>\nfor all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[]</code>\nthat have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</p>",
                        "example" : "800",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_adjusted" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Total adjustments made against this invoice.\n",
                        "example" : "100",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "credits_applied" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Total credits applied against this invoice.\n",
                        "example" : "100",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_due" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unpaid amount that is due on the invoice. This is calculated as: <code><a href=\"/docs/api/invoices/invoice-object#total\">total</a></code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<code><a href=\"/docs/api/invoices/invoice-object#amount_paid\">amount_paid</a></code>\n</li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#applied_credits\">applied_credits</a>.applied_amount</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a>.cn_total</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">linked_taxes_withheld</a>.amount</code>.</li>\n</ul>",
                        "example" : "200",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "dunning_status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current dunning status of the invoice.\n",
                        "example" : "in_progress",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`in_progress\\` - Dunning is still in progress. \\* \\`exhausted\\` - Maximum number of attempts have been made. \\* \\`stopped\\` - Dunning has stopped for this invoice. \\* \\`success\\` - Payment successfully collected during dunning process.\n",
                            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
                            "pattern" : "^\\[(in_progress|exhausted|stopped|success)(,(in_progress|exhausted|stopped|success))*\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "example" : "8gsnbYfsMLds",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "customer_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the customer with whom this subscription is associated.\n",
                        "example" : "8gsnbYfsMLds",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current state of the subscription\n",
                        "example" : "active",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "cancel_reason" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The reason for canceling the subscription. Set by Chargebee automatically.\n",
                        "example" : "not_paid",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "remaining_billing_cycles" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "\\* When the subscription is not on a contract term: this value is the number of billing cycles remaining after the current cycle, at the end of which, the subscription cancels. \\* When the subscription is on a \\[contract term\\](/docs/api/contract_terms): this value is the number of billing cycles remaining in the contract term after the current billing cycle.\n",
                        "example" : "3",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The time at which the subscription was created.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "activated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Time at which the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nlast changed to\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nFor example, this value is updated when an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\nor\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscription activates.</p>",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "next_billing_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the next billing for the subscription happens. This is usually right after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>\nunless multiple subscription terms were invoiced in advance using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nparameter.</p>",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "cancelled_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Time at which subscription was cancelled or is set to be cancelled.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "has_scheduled_changes" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, there are subscription changes scheduled on next renewal.</p>",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "offline_payment_method" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n",
                        "example" : "cash",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "auto_close_invoices" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto override for this subscription, the <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">site-level setting</a>\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute has a higher precedence than the same attribute at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>\n.</p>",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the customer.\n",
                        "example" : "9bsvnHgsvmsI",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "first_name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "First name of the customer\n",
                        "example" : "John",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "last_name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Last name of the customer\n",
                        "example" : "Clint",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "email" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                        "example" : "john@test.com",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "company" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Company name of the customer.\n",
                        "example" : "Globex Corp",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "phone" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Phone number of the customer\n",
                        "example" : "(541) 754-3010",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "auto_collection" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Whether payments needs to be collected automatically for this customer\n",
                        "example" : "on",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`on\\` - Whenever an invoice is created, an automatic attempt to charge the customer's payment method is made. \\* \\`off\\` - Automatic collection of charges will not be made. All payments must be recorded offline.\n",
                            "enum" : [ "on", "off" ],
                            "pattern" : "^\\[(on|off)(,(on|off))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "taxability" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Specifies if the customer is liable for tax\n",
                        "example" : "taxable",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `taxable` - Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>. In some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that’s not available either, the tax is taken as zero.\n* `exempt` - <ul><li>Customer is exempted from tax. When using Chargebee’s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li><li>However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code>entity_code</code> or <code>exempt_number</code> attributes if you use Chargebee’s <a target=\"_blank\" href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\">AvaTax for Sales</a> or specify <code>exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee’s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code>entity_code</code>/<code>exempt_number</code>/<code>exemption_details</code> based on the state/region/province of the taxable address.</li></ul>",
                            "enum" : [ "taxable", "exempt" ],
                            "pattern" : "^\\[(taxable|exempt)(,(taxable|exempt))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating when this customer resource is created.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "offline_payment_method" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the customer.\n",
                        "example" : "cash",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "auto_close_invoices" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Override for this customer, the \\[site-level setting\\](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing) for auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute is also available at the \\[subscription level\\](/docs/api/subscriptions/subscription-object#auto_close_invoices) which takes precedence.\n",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  },
                  "relationship" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for relationship\n",
                    "properties" : {
                      "parent_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Immediate parent with whom we will link our new customer(child)\n",
                        "example" : "future_billing",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "payment_owner_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Parent who is going to pay\n",
                        "example" : "active1",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      },
                      "invoice_owner_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Parent who is going to handle invoices\n",
                        "example" : "future_billing",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "report_by", "report_from_month", "report_from_year", "report_to_month", "report_to_year" ],
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "invoice" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "relationship" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/credit_notes" : {
      "post" : {
        "summary" : "Export Credit Notes",
        "description" : "This API triggers export of credit note data. The exported zip file contains CSV files with credit note-related data.\n",
        "operationId" : "export_credit_notes",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "credit_note" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for credit_note\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Credit-note id.\n",
                        "example" : "CN_123",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "customer_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The identifier of the customer this Credit Note belongs to.\n",
                        "example" : "4gmiXbsjdm",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "subscription_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "To filter based on subscription_id. NOTE: Not to be used if \\*consolidated invoicing\\* feature is enabled.\n",
                        "example" : "4gmiXbsjdm",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "reference_invoice_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The identifier of the invoice against which this Credit Note is issued\n",
                        "example" : "INVOICE_876",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The credit note type. \\[Learn more\\](/docs/api/credit_notes/credit-note-object) about credit note types.\n",
                        "example" : "adjustment",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                            "enum" : [ "adjustment", "refundable", "store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                            "enum" : [ "adjustment", "refundable", "store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                            "enum" : [ "adjustment", "refundable", "store" ],
                            "pattern" : "^\\[(adjustment|refundable|store)(,(adjustment|refundable|store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`adjustment\\` - Adjustment Credit Note \\* \\`refundable\\` - Refundable Credit Note \\* \\`store\\` - Store Credit Note\n",
                            "enum" : [ "adjustment", "refundable", "store" ],
                            "pattern" : "^\\[(adjustment|refundable|store)(,(adjustment|refundable|store))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "reason_code" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The reason for issuing this Credit Note. The following reason codes are supported now\\\\\\[Deprecated; use the \\[create_reason_code\\](/docs/api/credit_notes/credit_note-object#create_reason_code) parameter instead\\\\\\]\n",
                        "example" : "waiver",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                            "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                            "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                            "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                            "pattern" : "^\\[(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent)(,(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`write_off\\` - This reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off) operation. \\* \\`subscription_change\\` - This reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html) is enabled \\* \\`subscription_cancellation\\` - This reason will be set automatically for Credit Notes created during cancel subscription operation \\* \\`subscription_pause\\` - This reason will be automatically set to credit notes created during pause/resume subscription operation. \\* \\`chargeback\\` - Can be set when you are recording your customer Chargebacks \\* \\`product_unsatisfactory\\` - Product Unsatisfactory \\* \\`service_unsatisfactory\\` - Service Unsatisfactory \\* \\`order_change\\` - Order Change \\* \\`order_cancellation\\` - Order Cancellation \\* \\`waiver\\` - Waiver \\* \\`other\\` - Can be set when none of the above reason codes are applicable \\* \\`fraudulent\\` - FRAUDULENT\n",
                            "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                            "pattern" : "^\\[(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent)(,(write_off|subscription_change|subscription_cancellation|subscription_pause|chargeback|product_unsatisfactory|service_unsatisfactory|order_change|order_cancellation|waiver|other|fraudulent))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "create_reason_code" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Reason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in \\*\\*Settings \\\\\\> Configure Chargebee \\\\\\> Reason Codes \\\\\\> Credit Notes \\\\\\> Create Credit Note\\*\\*. Must be passed if set as mandatory in the app. The codes are case-sensitive\n",
                        "example" : "Other",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The credit note status.\n",
                        "example" : "adjusted",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                            "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                            "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                            "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                            "pattern" : "^\\[(adjusted|refunded|refund_due|voided)(,(adjusted|refunded|refund_due|voided))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`adjusted\\` - When the Credit Note has been adjusted against an invoice. \\* \\`refunded\\` - When the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded). \\* \\`refund_due\\` - When the credits are yet to be used, or have been partially used. \\* \\`voided\\` - When the Credit Note has been cancelled.\n",
                            "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                            "pattern" : "^\\[(adjusted|refunded|refund_due|voided)(,(adjusted|refunded|refund_due|voided))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "date" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The date the Credit Note is issued.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "total" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Credit Note amount in cents.\n",
                        "example" : "1200",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "price_type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The price type of the Credit Note.\n",
                        "example" : "tax_exclusive",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_allocated" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The amount allocated to the invoices.\n",
                        "example" : "1200",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_refunded" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The refunds issued from this Credit Note.\n",
                        "example" : "130",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_available" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The yet to be used credits of this Credit Note.\n",
                        "example" : "1400",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "voided_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating the date and time this Credit Note gets voided.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "To filter based on updated at. This attribute will be present only if the resource has been updated after 2016-09-28.\n",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "credit_note" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/coupons" : {
      "post" : {
        "summary" : "Export Coupons",
        "description" : "This API triggers export of coupon data. The exported zip file contains CSV files with coupon-related data.\n",
        "operationId" : "export_coupons",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "currency_code" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The currency code (\\[ISO 4217 format\\](https://www.chargebee.com/docs/supported-currencies.html) ) of the coupon. Applicable for \\*fixed_amount\\* coupons alone. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*currency_code\\\\\\[is\\\\\\] = \"USD\"\\*\n",
                    "example" : "USD",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "applicable_item_price_ids" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter List of itemPrice ids for which these coupons are applicable. \\*\\*Supported operators :\\*\\* in, is \\*\\*Example →\\*\\* \\*applicable_item_price_ids\\\\\\[in\\\\\\] = \"day-pass-USD\"\\*\n",
                    "example" : "day-pass-USD",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "coupon" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for coupon\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>",
                        "example" : "OFF2008",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The display name used in web interface for identifying the coupon.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the name of the coupon set contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the name of the coupon set in the path parameter before making an API call.</p></div>",
                        "example" : "Offer 10",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "discount_type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The type of deduction\n",
                        "example" : "fixed_amount",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                            "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                            "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                            "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                            "pattern" : "^\\[(fixed_amount|percentage|offer_quantity)(,(fixed_amount|percentage|offer_quantity))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`fixed_amount\\` - The specified amount will be deducted. \\* \\`percentage\\` - The specified percentage will be deducted. \\* \\`offer_quantity\\` - The specified units will be offered without any deduction.\n",
                            "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                            "pattern" : "^\\[(fixed_amount|percentage|offer_quantity)(,(fixed_amount|percentage|offer_quantity))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "duration_type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Specifies the time duration for which this coupon is attached to the subscription.\n",
                        "example" : "forever",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                            "enum" : [ "one_time", "forever", "limited_period" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                            "enum" : [ "one_time", "forever", "limited_period" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                            "enum" : [ "one_time", "forever", "limited_period" ],
                            "pattern" : "^\\[(one_time|forever|limited_period)(,(one_time|forever|limited_period))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `one_time` - The coupon stays attached to the subscription till it is applied on an invoice <b>once</b>. It is removed after that from the subscription.\n* `forever` - The coupon is attached to the subscription and applied on the invoices until explicitly removed.\n* `limited_period` - The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code>period</code> and <code>period_unit</code>. ",
                            "enum" : [ "one_time", "forever", "limited_period" ],
                            "pattern" : "^\\[(one_time|forever|limited_period)(,(one_time|forever|limited_period))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Status of the coupon.\n",
                        "example" : "active",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                            "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                            "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                            "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                            "pattern" : "^\\[(active|expired|archived|deleted|future)(,(active|expired|archived|deleted|future))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `active` - Can be applied to a subscription.\n* `expired` - Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons?#coupon_max_redemptions\">max_redemptions</a></code> or <code><a href=\"/docs/api/coupons?#coupon_valid_till\">valid_till</a></code> date is past. Existing associations remain unaffected.\n* `archived` - Cannot be applied to a subscription. Existing associations remain unaffected.\n* `deleted` - Indicates the coupon has been deleted.\n* `future` - The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.",
                            "enum" : [ "active", "expired", "archived", "deleted", "future" ],
                            "pattern" : "^\\[(active|expired|archived|deleted|future)(,(active|expired|archived|deleted|future))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "apply_on" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The amount on the invoice to which the coupon is applied.\n",
                        "example" : "invoice_amount",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                            "enum" : [ "invoice_amount", "each_specified_item" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                            "enum" : [ "invoice_amount", "each_specified_item" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                            "enum" : [ "invoice_amount", "each_specified_item" ],
                            "pattern" : "^\\[(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items)(,(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `invoice_amount` - The coupon is applied to the invoice <code>sub_total</code>.\n* `specified_items_total` - **(Deprecated)** Discount will be applied to the total of plan and addon items specified.\n* `each_specified_item` - <div prod_cat_ver=\"2\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the item price specified by <code>item_price_id</code>.\n</div>\n<div prod_cat_ver=\"1\">\n    The coupon is applied to the <code>invoice.line_item.amount</code> that corresponds to the plan or addon specified by <code>plan_ids</code> and <code>addon_ids</code>.\n</div>\n* `each_unit_of_specified_items` - **(Deprecated)** Discount will be applied to each unit of plan and addon items specified.",
                            "enum" : [ "invoice_amount", "each_specified_item" ],
                            "pattern" : "^\\[(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items)(,(invoice_amount|specified_items_total|each_specified_item|each_unit_of_specified_items))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Timestamp indicating when this coupon is created.\n",
                        "example" : "145222875",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "To filter based on updated at. This attribute will be present only if the resource has been updated after 2016-11-09.\n",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "coupon" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/orders" : {
      "post" : {
        "summary" : "Export Orders",
        "description" : "This API triggers export of order data. The exported zip file contains CSV files with order-related data.\n",
        "operationId" : "export_orders",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "total" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, in cents filter Total amount charged for the order. \\*\\*Supported operators :\\*\\* is, is_not, lt, lte, gt, gte, between \\*\\*Example →\\*\\* \\*total\\\\\\[is\\\\\\] = \"1394532759\"\\*\n",
                    "example" : "1394532759",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "format" : "number",
                        "pattern" : "^-?\\d+$",
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "format" : "number",
                        "pattern" : "^-?\\d+$",
                        "example" : null
                      },
                      "lt" : {
                        "type" : "string",
                        "format" : "number",
                        "pattern" : "^-?\\d+$",
                        "example" : null
                      },
                      "lte" : {
                        "type" : "string",
                        "format" : "number",
                        "pattern" : "^-?\\d+$",
                        "example" : null
                      },
                      "gt" : {
                        "type" : "string",
                        "format" : "number",
                        "pattern" : "^-?\\d+$",
                        "example" : null
                      },
                      "gte" : {
                        "type" : "string",
                        "format" : "number",
                        "pattern" : "^-?\\d+$",
                        "example" : null
                      },
                      "between" : {
                        "type" : "string",
                        "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                        "example" : null
                      }
                    }
                  },
                  "order" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for order\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Uniquely identifies the order. It is the api identifier for the order\n",
                        "example" : "3",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "subscription_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "To filter based on subscription_id.\n",
                        "example" : "3bdjnDnsdQn",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "customer_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The customer for which the order is created\n",
                        "example" : "3bdjnDnsdQn",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The status of this order.\n",
                        "example" : "paid",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                            "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                            "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                            "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                            "pattern" : "^\\[(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned)(,(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`new\\` - Order has been created. Applicable only if you are using Chargebee's legacy order management system. \\* \\`processing\\` - Order is being processed. Applicable only if you are using Chargebee's legacy order management system \\* \\`complete\\` - Order has been processed successfully. Applicable only if you are using Chargebee's legacy order management system \\* \\`cancelled\\` - Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system \\* \\`voided\\` - Order has been voided. Applicable only if you are using Chargebee's legacy order management system \\* \\`queued\\` - Order is yet to be processed by any system, these are scheduled orders created by Chargebee \\* \\`awaiting_shipment\\` - The order has been picked up by an integration system, and synced to a shipping management platform \\* \\`on_hold\\` - The order is paused from being processed. \\* \\`delivered\\` - The order has been delivered to the customer. \\* \\`shipped\\` - The order has moved from order management system to a shipping system. \\* \\`partially_delivered\\` - The order has been partially delivered to the customer. \\* \\`returned\\` - The order has been returned after delivery.\n",
                            "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                            "pattern" : "^\\[(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned)(,(new|processing|complete|cancelled|voided|queued|awaiting_shipment|on_hold|delivered|shipped|partially_delivered|returned))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "price_type" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The price type of the order\n",
                        "example" : "tax_exclusive",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`tax_exclusive\\` - All amounts in the document are exclusive of tax. \\* \\`tax_inclusive\\` - All amounts in the document are inclusive of tax.\n",
                            "enum" : [ "tax_exclusive", "tax_inclusive" ],
                            "pattern" : "^\\[(tax_exclusive|tax_inclusive)(,(tax_exclusive|tax_inclusive))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "order_date" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The date on which the order will start getting processed.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "shipping_date" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "This is the date on which the order will be delivered to the customer.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "shipped_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The time at which the order was shipped.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "delivered_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The time at which the order was delivered\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "cancelled_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The time at which the order was cancelled.\n",
                        "example" : "1394532759",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "amount_paid" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Total amount paid for the order.\n",
                        "example" : "1000",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "refundable_credits" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The total amount that can be issued as credits for this order.\n",
                        "example" : "1000",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "refundable_credits_issued" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The total amount issued as credits on behalf of this order.\n",
                        "example" : "1000",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Filter based on the time at which order has been updated.\n",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "resent_status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Resent order status.\n",
                        "example" : "fully_resent",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                            "enum" : [ "fully_resent", "partially_resent" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                            "enum" : [ "fully_resent", "partially_resent" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                            "enum" : [ "fully_resent", "partially_resent" ],
                            "pattern" : "^\\[(fully_resent|partially_resent)(,(fully_resent|partially_resent))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`fully_resent\\` - Order is Fully resent \\* \\`partially_resent\\` - Order is Partially resent\n",
                            "enum" : [ "fully_resent", "partially_resent" ],
                            "pattern" : "^\\[(fully_resent|partially_resent)(,(fully_resent|partially_resent))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "is_resent" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Order is resent order or not.\n",
                        "example" : "false",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "original_order_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "If resent order what is the parent order id.\n",
                        "example" : "1243545465",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "order" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/item_prices" : {
      "post" : {
        "summary" : "Export Item Prices",
        "description" : "This API triggers export of item price data. The exported zip file contains CSV files with item price-related data.\n",
        "operationId" : "export_item_prices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "item_family_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family_id</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_family_id[is] = &quot;Acme&quot;</em></p>",
                    "example" : "Acme",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "item_type" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code>.\nPossible values are : plan, addon, charge.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_type[is_not] = &quot;plan&quot;</em></p>",
                    "example" : "plan",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                        "enum" : [ "plan", "addon", "charge" ],
                        "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "currency_code" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">currency_code[is] = &quot;USD&quot;</em></p>",
                    "example" : "USD",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "business_entity_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
                    "example" : "business_entity_id",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_present" : {
                        "type" : "string",
                        "format" : "boolean",
                        "description" : "null\n",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    }
                  },
                  "include_site_level_resources" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "format" : "boolean",
                        "enum" : [ "true", "false" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "item_price" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_price\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Filter item prices based on their \\[id\\](/docs/api/exports) .\n",
                        "example" : "basic_USD",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "name" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ns.</p>",
                        "example" : "basic USD",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "pricing_model" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\n.</p>",
                        "example" : "flat_fee",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                            "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                            "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                            "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                            "pattern" : "^\\[(flat_fee|per_unit|tiered|volume|stairstep)(,(flat_fee|per_unit|tiered|volume|stairstep))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                            "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                            "pattern" : "^\\[(flat_fee|per_unit|tiered|volume|stairstep)(,(flat_fee|per_unit|tiered|volume|stairstep))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "item_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\n.</p>",
                        "example" : "basic",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "price_variant_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code><a href=\"/docs/api/price_variants/price_variant-object#id\">price_variant_id</a></code>\n.</p>",
                        "example" : "tamilNadu-India",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "trial_period" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period</code>\n.</p>",
                        "example" : "14",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "trial_period_unit" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period_unit</code>\n.</p>",
                        "example" : "day",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                            "enum" : [ "day", "month" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                            "enum" : [ "day", "month" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                            "enum" : [ "day", "month" ],
                            "pattern" : "^\\[(day|month)(,(day|month))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                            "enum" : [ "day", "month" ],
                            "pattern" : "^\\[(day|month)(,(day|month))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>",
                        "example" : "active",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                            "enum" : [ "active", "archived", "deleted" ],
                            "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\n.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "period_unit" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
                        "example" : "month",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                            "enum" : [ "day", "week", "month", "year" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                            "enum" : [ "day", "week", "month", "year" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                            "enum" : [ "day", "week", "month", "year" ],
                            "pattern" : "^\\[(day|week|month|year)(,(day|week|month|year))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                            "enum" : [ "day", "week", "month", "year" ],
                            "pattern" : "^\\[(day|week|month|year)(,(day|week|month|year))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "period" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\n.</p>",
                        "example" : "3",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "item_price" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/exports/subscriptions" : {
      "post" : {
        "summary" : "Export Subscriptions",
        "description" : "This API triggers export of subscription data. The exported zip file contains CSV files with subscription-related data.\n",
        "operationId" : "export_subscriptions",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "export_type" : {
                    "type" : "string",
                    "default" : "data",
                    "deprecated" : false,
                    "description" : "Determines the format of the data. Returns the export type based on the selected value.\n\\* import_friendly_data -\n\nDownload import friendly data in CSV. This CSV can be used to perform [bulk operations](https://www.chargebee.com/docs/bulk-operations.html)\n.\n\\* data -\n\nDownload your current data in CSV.\n",
                    "enum" : [ "data", "import_friendly_data" ],
                    "example" : null
                  },
                  "item_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The plan item code. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*item_id\\\\\\[is\\\\\\] = \"silver\"\\*\n",
                    "example" : "silver",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "item_price_id" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter The plan item price code. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*item_price_id\\\\\\[is\\\\\\] = \"silver-USD-monthly\"\\*\n",
                    "example" : "silver-USD-monthly",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "cancel_reason_code" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "optional, string filter Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in \\*\\*Settings \\\\\\> Configure Chargebee \\\\\\> Reason Codes \\\\\\> Subscriptions \\\\\\> Subscription Cancellation\\*\\* . Must be passed if set as mandatory in the app. The codes are case-sensitive. \\*\\*Supported operators :\\*\\* is, is_not, starts_with, in, not_in \\*\\*Example →\\*\\* \\*cancel_reason_code\\\\\\[is\\\\\\] = \"Not Paid\"\\*\n",
                    "example" : "Not Paid",
                    "properties" : {
                      "is" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "is_not" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "starts_with" : {
                        "type" : "string",
                        "minLength" : 1,
                        "example" : null
                      },
                      "in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      },
                      "not_in" : {
                        "type" : "string",
                        "pattern" : "^\\[(.*)(,.*)*\\]$",
                        "example" : null
                      }
                    }
                  },
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "example" : "8gsnbYfsMLds",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "customer_id" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Identifier of the customer with whom this subscription is associated.\n",
                        "example" : "8gsnbYfsMLds",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "starts_with" : {
                            "type" : "string",
                            "minLength" : 1,
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "pattern" : "^\\[(.*)(,.*)*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "status" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Current state of the subscription\n",
                        "example" : "active",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`future\\` - The subscription is scheduled to start at a future date. \\* \\`in_trial\\` - The subscription is in trial. \\* \\`active\\` - The subscription is active and will be charged for automatically based on the items in it. \\* \\`non_renewing\\` - The subscription will be canceled at the end of the current term. \\* \\`paused\\` - The subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html). The subscription will not renew while in this state. \\* \\`cancelled\\` - The subscription has been canceled and is no longer in service. \\* \\`transferred\\` - The subscription has been transferred to another business entity within the organization.\n",
                            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                            "pattern" : "^\\[(future|in_trial|active|non_renewing|paused|cancelled|transferred)(,(future|in_trial|active|non_renewing|paused|cancelled|transferred))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "cancel_reason" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The reason for canceling the subscription. Set by Chargebee automatically.\n",
                        "example" : "not_paid",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`not_paid\\` - Not Paid \\* \\`no_card\\` - No Card \\* \\`fraud_review_failed\\` - Fraud Review Failed \\* \\`non_compliant_eu_customer\\` - Non Compliant EU Customer \\* \\`tax_calculation_failed\\` - Tax Calculation Failed \\* \\`currency_incompatible_with_gateway\\` - Currency incompatible with Gateway \\* \\`non_compliant_customer\\` - Non Compliant Customer\n",
                            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
                            "pattern" : "^\\[(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer)(,(not_paid|no_card|fraud_review_failed|non_compliant_eu_customer|tax_calculation_failed|currency_incompatible_with_gateway|non_compliant_customer))*\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "remaining_billing_cycles" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "\\* When the subscription is not on a contract term: this value is the number of billing cycles remaining after the current cycle, at the end of which, the subscription cancels. \\* When the subscription is on a \\[contract term\\](/docs/api/contract_terms): this value is the number of billing cycles remaining in the contract term after the current billing cycle.\n",
                        "example" : "3",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "lte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gt" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "gte" : {
                            "type" : "string",
                            "format" : "number",
                            "pattern" : "^-?\\d+$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "created_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The time at which the subscription was created.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "activated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Time at which the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nlast changed to\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nFor example, this value is updated when an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\nor\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscription activates.</p>",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          },
                          "is_present" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "next_billing_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The date/time at which the next billing for the subscription happens. This is usually right after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>\nunless multiple subscription terms were invoiced in advance using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nparameter.</p>",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "cancelled_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "Time at which subscription was cancelled or is set to be cancelled.\n",
                        "example" : "1435054328",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "has_scheduled_changes" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, there are subscription changes scheduled on next renewal.</p>",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "updated_at" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">To filter based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.\nThis attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code>\ninput parameter as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\nfor a faster response.</p>",
                        "example" : "1243545465",
                        "properties" : {
                          "after" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "before" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "on" : {
                            "type" : "string",
                            "format" : "unix-time",
                            "pattern" : "^\\d{10}$",
                            "example" : null
                          },
                          "between" : {
                            "type" : "string",
                            "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                            "example" : null
                          }
                        }
                      },
                      "offline_payment_method" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The preferred offline payment method for the subscription.\n",
                        "example" : "cash",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`no_preference\\` - No Preference \\* \\`cash\\` - Cash \\* \\`check\\` - Check \\* \\`bank_transfer\\` - Bank Transfer \\* \\`ach_credit\\` - ACH Credit \\* \\`sepa_credit\\` - SEPA Credit \\* \\`boleto\\` - Boleto \\* \\`us_automated_bank_transfer\\` - US Automated Bank Transfer \\* \\`eu_automated_bank_transfer\\` - EU Automated Bank Transfer \\* \\`uk_automated_bank_transfer\\` - UK Automated Bank Transfer \\* \\`jp_automated_bank_transfer\\` - JP Automated Bank Transfer \\* \\`mx_automated_bank_transfer\\` - MX Automated Bank Transfer \\* \\`custom\\` - Custom\n",
                            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                            "pattern" : "^\\[(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom)(,(no_preference|cash|check|bank_transfer|ach_credit|sepa_credit|boleto|us_automated_bank_transfer|eu_automated_bank_transfer|uk_automated_bank_transfer|jp_automated_bank_transfer|mx_automated_bank_transfer|custom))*\\]$",
                            "example" : null
                          }
                        }
                      },
                      "auto_close_invoices" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto override for this subscription, the <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">site-level setting</a>\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute has a higher precedence than the same attribute at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>\n.</p>",
                        "example" : "true",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "format" : "boolean",
                            "enum" : [ "true", "false" ],
                            "example" : null
                          }
                        }
                      },
                      "channel" : {
                        "type" : "object",
                        "deprecated" : false,
                        "description" : "The subscription channel this object originated from and is maintained in.\n",
                        "example" : "APP STORE",
                        "properties" : {
                          "is" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "is_not" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "example" : null
                          },
                          "in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          },
                          "not_in" : {
                            "type" : "string",
                            "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                            "enum" : [ "web", "app_store", "play_store" ],
                            "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                            "example" : null
                          }
                        }
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "export" : {
                      "$ref" : "#/components/schemas/Export",
                      "description" : "<p class=\"mb-2\">Resource object representing export</p>"
                    }
                  },
                  "required" : [ "export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/full_exports/status" : {
      "get" : {
        "summary" : "Retrieve full export status",
        "description" : "This endpoint retrieves the status of your data export request.\n",
        "operationId" : "retrieve_full_export_status",
        "parameters" : [ {
          "name" : "table",
          "in" : "query",
          "description" : "The name of the table for which the export status is to be retrieved. For example, invoices.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 200,
            "example" : null
          }
        }, {
          "name" : "date",
          "in" : "query",
          "description" : "The date for which the export status is required, formatted in YYYY-MM-DD format. For example, 2023-08-29.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "format" : "date",
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "full_export" : {
                      "$ref" : "#/components/schemas/FullExport",
                      "description" : "<p class=\"mb-2\">Resource object representing full_export</p>"
                    }
                  },
                  "required" : [ "full_export" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_intents/{payment-intent-id}" : {
      "get" : {
        "summary" : "Retrieve a payment intent",
        "description" : "Retrieves the PaymentIntent resource.\n",
        "operationId" : "retrieve_a_payment_intent",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "payment-intent-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/payment-intent-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_intent" : {
                      "$ref" : "#/components/schemas/PaymentIntent",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_intent</p>"
                    }
                  },
                  "required" : [ "payment_intent" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a payment intent",
        "description" : "Updating properties on a PaymentIntent object. All the subsequent 3DS transaction attempts will have the updated values.\n",
        "operationId" : "update_a_payment_intent",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "payment-intent-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/payment-intent-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Amount(in cents) to be authorized for 3DS flow.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the amount used in transaction.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account used for performing the 3DS flow.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "payment_method_type" : {
                    "type" : "string",
                    "default" : "card",
                    "deprecated" : false,
                    "description" : "The payment method of this intent.\n\\* google_pay -\n\ngoogle_pay\n\\* pay_co -\n\nPayments made via PayCo\n\\* boleto -\n\nboleto\n\\* apple_pay -\n\napple_pay\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* faster_payments -\n\nFaster Payments\n\\* pix -\n\nPix\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* ideal -\n\nideal\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* amazon_payments -\n\nAmazon Payments\n\\* bancontact -\n\nbancontact\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* pay_to -\n\nPayTo\n\\* trustly -\n\nTrustly\n\\* venmo -\n\nVenmo\n\\* after_pay -\n\nPayments made via Afterpay\n\\* alipay -\n\nPayments made via Alipay.\n\\* card -\n\ncard\n\\* dotpay -\n\ndotpay\n\\* giropay -\n\ngiropay\n\\* upi -\n\nupi\n\\* sofort -\n\nsofort\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* pay_by_bank -\n\nPay By Bank\n\\* go_pay -\n\nPayments made via GoPay\n\\* swish -\n\nPayments made via Swish\n\\* direct_debit -\n\ndirect_debit\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* twint -\n\nPayments made via Twint\n\\* payme -\n\nPayments made via PayMe\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* kbc_payment_button -\n\nKBC Payment Button\n",
                    "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                    "example" : null
                  },
                  "success_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The URL the customer will be directed to once 3DS verification is successful. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ideal</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sofort</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">dotpay</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">giropay</code>\n.</p>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "failure_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The URL the customer will be directed to when 3DS verification fails. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ideal</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sofort</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">dotpay</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">giropay</code>\n.</p>",
                    "maxLength" : 250,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_intent" : {
                      "$ref" : "#/components/schemas/PaymentIntent",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_intent</p>"
                    }
                  },
                  "required" : [ "payment_intent" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_intents" : {
      "post" : {
        "summary" : "Create a payment intent",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Creates a PaymentIntent object. This is to be used with Chargebee.js API to complete the 3DS flow for new or stored cards.</p><p class=\"mb-2\">While creating, specify the appropriate gateway account and amount. Exact amount can be estimated using our <a href=\"/docs/api/estimates\">Estimate API</a>.</p><h4>Customer resource lookup and creation</h4><p class=\"mb-2\">When <code><a href=\"/docs/api/payment_intents/create-a-payment-intent#customer_id\">customer[id]</a></code> is provided for this operation, it is looked up by Chargebee, and if found, the payment_intent is created for it. If not found, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> is created without any customer association and will be available for any customer.</p><h5>Multiple business entities</h5><p class=\"mb-2\">If multiple <a href=\"/docs/api/advanced-features\">business entities</a> are created for the site, the customer resource lookup and creation happen within the <a href=\"/docs/api/advanced-features\">context</a> of the business entity <a href=\"/docs/api/advanced-features#mbe-header-main\">specified</a> in this API call. If no business entity is specified, the customer resource lookup is performed within the <a href=\"/docs/api/advanced-features\">site context</a>, and if not found, the resource is created for the <a href=\"/docs/api/advanced-features\">default business entity</a> of the site.</p></div>",
        "operationId" : "create_a_payment_intent",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Sets the [context]() for this operation to the [business entity](/docs/api/advanced-features) specified. Applicable only when multiple business entities have been created for the site. When this parameter is provided, the operation is able to read/write data associated only to the business entity specified. When not provided, the operation can read/write data for the entire site.  \n**Note**\n\nAn alternative way of passing this parameter is by means of a [custom HTTP header](/docs/api/advanced-features).  \n**See also**\n[Customer resource lookup and creation.](/docs/api/payment_intents)\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique identifier of the customer for whom the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> will be created. If specified, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> will be used exclusively for that customer. If not specified, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> won&#x27;t be associated with any customer and will be available for any customer.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong></p><p class=\"mb-2\"><a href=\"/docs/api/payment_intents\">Customer resource lookup and creation</a>\n.</p></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "amount" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "Amount(in cents) to be authorized for 3DS flow.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code (ISO 4217 format) of the amount used in transaction.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "gateway_account_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The gateway account used for performing the 3DS flow.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "reference_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Reference for payment method at gateway. Only applicable when the PaymentIntent is created for cards stored in the gateway.\n",
                    "maxLength" : 200,
                    "example" : null
                  },
                  "defer_payment_method_type" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "payment_method_type" : {
                    "type" : "string",
                    "default" : "card",
                    "deprecated" : false,
                    "description" : "The payment method of this intent.\n\\* google_pay -\n\ngoogle_pay\n\\* pay_co -\n\nPayments made via PayCo\n\\* boleto -\n\nboleto\n\\* apple_pay -\n\napple_pay\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* faster_payments -\n\nFaster Payments\n\\* pix -\n\nPix\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* ideal -\n\nideal\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* amazon_payments -\n\nAmazon Payments\n\\* bancontact -\n\nbancontact\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* pay_to -\n\nPayTo\n\\* trustly -\n\nTrustly\n\\* venmo -\n\nVenmo\n\\* after_pay -\n\nPayments made via Afterpay\n\\* alipay -\n\nPayments made via Alipay.\n\\* card -\n\ncard\n\\* dotpay -\n\ndotpay\n\\* giropay -\n\ngiropay\n\\* upi -\n\nupi\n\\* sofort -\n\nsofort\n\\* sepa_instant_transfer -\n\nSepa Instant Transfer\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* pay_by_bank -\n\nPay By Bank\n\\* go_pay -\n\nPayments made via GoPay\n\\* swish -\n\nPayments made via Swish\n\\* direct_debit -\n\ndirect_debit\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* twint -\n\nPayments made via Twint\n\\* payme -\n\nPayments made via PayMe\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* kbc_payment_button -\n\nKBC Payment Button\n",
                    "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                    "example" : null
                  },
                  "success_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The URL the customer will be directed to once 3DS verification is successful. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ideal</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sofort</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">dotpay</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">giropay</code>\n.</p>",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "failure_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The URL the customer will be directed to when 3DS verification fails. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ideal</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sofort</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">dotpay</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">giropay</code>\n.</p>",
                    "maxLength" : 250,
                    "example" : null
                  }
                },
                "required" : [ "amount", "currency_code" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_intent" : {
                      "$ref" : "#/components/schemas/PaymentIntent",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_intent</p>"
                    }
                  },
                  "required" : [ "payment_intent" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/custom_field_configs/retrieve" : {
      "get" : {
        "summary" : "Retrieve a custom field configuration",
        "description" : "Retrieves the configuration for the [custom field](/docs/api/advanced-features#custom-fields) that matches the specified entity type and API name.\n",
        "operationId" : "retrieve_the_meta_data",
        "parameters" : [ {
          "name" : "entity_type",
          "in" : "query",
          "description" : "Allowed entity types for custom fields.\n\\* customer -\n\nEntity that represents a customer.\n\\* invoice -\n\nEntity that represents an invoice.\n\\* addon_item -\n\nEntity that represents item of type addon.\n\\* plan -\n\nEntity that represents a subscription plan.\n\\* subscription -\n\nEntity that represents a subscription of a customer.\n\\* coupon -\n\nEntity that represents a discount coupon.\n\\* charge_price -\n\nEntity that represents charge price.\n\\* item_family -\n\nEntity that represents item family.\n\\* addon -\n\nEntity that represents an addon.\n\\* addon_price -\n\nEntity that represents addon price.\n\\* credit_note -\n\nEntity that represents a credit note.\n\\* charge_item -\n\nEntity that represents item of type charge.\n\\* plan_item -\n\nEntity that represents item of type plan.\n\\* quote -\n\nEntity that represents a quote.\n\\* plan_price -\n\nEntity that represents plan price.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "customer", "subscription", "plan", "addon", "invoice", "credit_note", "item_family", "plan_item", "addon_item", "charge_item", "plan_price", "addon_price", "charge_price", "coupon", "quote" ],
            "example" : null
          }
        }, {
          "name" : "api_name",
          "in" : "query",
          "description" : "Custom field identifier.\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "custom_field_config" : {
                      "$ref" : "#/components/schemas/CustomFieldConfig",
                      "description" : "<p class=\"mb-2\">Resource object representing custom_field_config.</p>"
                    }
                  },
                  "required" : [ "custom_field_config" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/custom_field_configs" : {
      "get" : {
        "summary" : "List custom field configurations",
        "description" : "Lists the configurations for all [custom fields](/docs/api/advanced-features#custom-fields) defined for the specified entity type.\n",
        "operationId" : "list_custom_field_configs",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "entity_type",
          "in" : "query",
          "description" : "Allowed entity types for custom fields.\n\\* customer -\n\nEntity that represents a customer.\n\\* invoice -\n\nEntity that represents an invoice.\n\\* addon_item -\n\nEntity that represents item of type addon.\n\\* plan -\n\nEntity that represents a subscription plan.\n\\* subscription -\n\nEntity that represents a subscription of a customer.\n\\* coupon -\n\nEntity that represents a discount coupon.\n\\* charge_price -\n\nEntity that represents charge price.\n\\* item_family -\n\nEntity that represents item family.\n\\* addon -\n\nEntity that represents an addon.\n\\* addon_price -\n\nEntity that represents addon price.\n\\* credit_note -\n\nEntity that represents a credit note.\n\\* charge_item -\n\nEntity that represents item of type charge.\n\\* plan_item -\n\nEntity that represents item of type plan.\n\\* quote -\n\nEntity that represents a quote.\n\\* plan_price -\n\nEntity that represents plan price.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "customer", "subscription", "plan", "addon", "invoice", "credit_note", "item_family", "plan_item", "addon_item", "charge_item", "plan_price", "addon_price", "charge_price", "coupon", "quote" ],
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "custom_field_config" : {
                            "$ref" : "#/components/schemas/CustomFieldConfig",
                            "description" : "Resource object representing custom_field_config"
                          }
                        },
                        "required" : [ "custom_field_config" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_families/{item-family-id}/delete" : {
      "post" : {
        "summary" : "Delete an item family",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes an item family, marking its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deleted</code>\n. This is not allowed if there are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nitems under the item family. Once deleted, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the item family can be reused to create a new item family.</p></div>",
        "operationId" : "delete_an_item_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-family-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-family-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_family" : {
                      "$ref" : "#/components/schemas/ItemFamily",
                      "description" : "<p class=\"mb-2\">Resource object representing item_family</p>"
                    }
                  },
                  "required" : [ "item_family" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_families" : {
      "get" : {
        "summary" : "List item families",
        "description" : "Returns a list of item families satisfying **all**\nthe conditions specified in the filter parameters below. The list is sorted by date of creation, in descending order.\n",
        "operationId" : "list_item_families",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe identifier for the item family. It is unique and immutable.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"family-id\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "family-id",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "optional, string filter\n\nA unique display name for the item family. This is visible only in Chargebee and not to customers.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*name\\[is_not\\] = \"family-name\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "family-name",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nWhen the item family was last updated.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[before\\] = \"1243545465\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "business_entity_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "business_entity_id",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "include_site_level_resources",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item_family" : {
                            "$ref" : "#/components/schemas/ItemFamily",
                            "description" : "Resource object representing item_family"
                          }
                        },
                        "required" : [ "item_family" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create an item family",
        "description" : "This endpoint creates an item family for your product line or service.\n",
        "operationId" : "create_an_item_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The identifier for the item family. Must be unique and is immutable.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The display name for the item family. Must be unique. This is visible only in Chargebee and not to customers.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Description of the item family. This is visible only in Chargebee and not to customers.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/business_entities\">business entity</a>\nfor this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family</code>.\nThis is applicable only when multiple business entities have been created for the site. When provided, the operation will read or write data associated with the specified business entity. If not provided, the resource will be created at the site level, and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code>\nwill not be included in the API response.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nAn alternative way of passing this parameter is by means of a <a href=\"/docs/api/advanced-features#mbe-header-main\">custom HTTP header</a>.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "id", "name" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_family" : {
                      "$ref" : "#/components/schemas/ItemFamily",
                      "description" : "<p class=\"mb-2\">Resource object representing item_family</p>"
                    }
                  },
                  "required" : [ "item_family" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_families/{item-family-id}" : {
      "get" : {
        "summary" : "Retrieve an item family",
        "description" : "This endpoint retrieves an item family based on the item family id.\n",
        "operationId" : "retrieve_an_item_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-family-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-family-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_family" : {
                      "$ref" : "#/components/schemas/ItemFamily",
                      "description" : "<p class=\"mb-2\">Resource object representing item_family</p>"
                    }
                  },
                  "required" : [ "item_family" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update an item family",
        "description" : "This endpoint updates the name and/or description of the item family.\n",
        "operationId" : "update_an_item_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-family-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-family-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The display name for the item family. Must be unique. This is visible only in Chargebee and not to customers.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Description of the item family. This is visible only in Chargebee and not to customers.\n",
                    "maxLength" : 500,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_family" : {
                      "$ref" : "#/components/schemas/ItemFamily",
                      "description" : "<p class=\"mb-2\">Resource object representing item_family</p>"
                    }
                  },
                  "required" : [ "item_family" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/products/{product-id}" : {
      "get" : {
        "summary" : "Retrieve a product",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Retrieve a product using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product_id</code>\n.</p></div>",
        "operationId" : "retrieve_a_product",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "product" : {
                      "$ref" : "#/components/schemas/Product",
                      "description" : "<p class=\"mb-2\">Resource object representing product</p>"
                    }
                  },
                  "required" : [ "product" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a product",
        "description" : "This API allows you to update specific product details.\n\nThe following table will help you to understand the status of the mapped [item](/docs/api/items/item-object#status) and [item_price](/docs/api/item_prices/item_price-object#status) after passing product [status](/docs/api/products/update-a-product#status) value during product updation.  \n\n|-------------------------------------|--------------------------------|\n| **Product Status**(Input parameter) | **Item and Item Price Status** |\n| **active**                          | **active**                     |\n| **inactive**                        | **archived**                   |\n\n",
        "operationId" : "update_a_product",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique internal name for the product. This is only visible in Chargebee.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique name that appears for each product to the end user.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Description of the product.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "default" : "active",
                    "deprecated" : false,
                    "description" : "Status of the product. Refer to the [table](/docs/api/products/update-a-product)\nfor more information.\n\\* active -\n\nThe active products are visible on the storefront, subscription, or checkout.\n\\* inactive -\n\nThe inactive products are not visible on the storefront, subscription, or checkout.\n",
                    "enum" : [ "active", "inactive" ],
                    "example" : null
                  },
                  "sku" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique identifier code a seller assigns to each product or item. Retailers and merchants use SKUs to keep track of inventory and sales data and help organize products within a store or warehouse. SKUs can include a combination of letters, numbers, and symbols and can vary in length depending on the seller's needs.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "shippable" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Whether a product is shippable or not. Pass the value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nif it is a shippable physical product, else pass the value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the product. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "product" : {
                      "$ref" : "#/components/schemas/Product",
                      "description" : "<p class=\"mb-2\">Resource object representing product</p>"
                    }
                  },
                  "required" : [ "product" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/products/{product-id}/delete" : {
      "post" : {
        "summary" : "Delete a product",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API deletes a product and changes the delete attribute value to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n. Deletion of a product is not allowed if there are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\nvariants under the product or if there are items mapped to the product. Once deleted, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the product can be reused.</p></div>",
        "operationId" : "delete_a_product",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "product" : {
                      "$ref" : "#/components/schemas/Product",
                      "description" : "<p class=\"mb-2\">Resource object representing product</p>"
                    }
                  },
                  "required" : [ "product" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/products/{product-id}/update_options" : {
      "post" : {
        "summary" : "Add remove or update options for the product",
        "description" : "This API allows you to add, remove, or update product options.\n",
        "operationId" : "add_remove_or_update_options_for_the_product",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "remove_options" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of options that you want to remove from the product. You can provide option names.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "options" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of options that you want to add when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">options[name]</code>\nare absent in a product, you can use this parameter to update the option values that already exist in a product.</p>",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "Unique name of the option.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "values" : {
                        "type" : "array",
                        "description" : "List of possible values for the option. For example. if the option name is Size(options\\[name\\]\\[1\\]=\"Size\"), then the values can be Small, Medium, and Large(options\\[values\\]\\[1\\]=\\[\"Small\", \"Medium\", \"Large\"\\]).\n",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      },
                      "default_value" : {
                        "type" : "array",
                        "description" : "Set the default value of an option.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "options" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "product" : {
                      "$ref" : "#/components/schemas/Product",
                      "description" : "<p class=\"mb-2\">Resource object representing product</p>"
                    }
                  },
                  "required" : [ "product" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/products" : {
      "get" : {
        "summary" : "List products",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API retrieves the list of products that are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">inactive</code>\n. Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">include_deleted</code>\nparameter to include deleted products with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">inactive</code>\nproducts.</p></div>",
        "operationId" : "list_products",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*deleted\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ' attribute will be '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* '.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter product based on their [id](/docs/api/products)\n.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"basic\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter product based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ns.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">name[is] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter product based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nPossible values are : active, inactive.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">status[is] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "pattern" : "^\\[(active|inactive)(,(active|inactive))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "pattern" : "^\\[(active|inactive)(,(active|inactive))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "shippable",
          "in" : "query",
          "description" : "optional, boolean filter\n\nFilter product based on whether it is shippable or not. Possible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*shippable\\[is\\] = \"true\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "has_variant",
          "in" : "query",
          "description" : "optional, boolean filter\n\nFilter product based on whether it has variants or not. Possible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*has_variant\\[is\\] = \"true\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter product  based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">created time</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">created_at[after] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter product  based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated time</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[after] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nname, id, created_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"name\"*\n\nThis will sort the result based on the 'name' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "name", "id", "created_at", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "name", "id", "created_at", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "product" : {
                            "$ref" : "#/components/schemas/Product",
                            "description" : "Resource object representing product"
                          }
                        },
                        "required" : [ "product" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a product",
        "description" : "This API creates a new product.\n",
        "operationId" : "create_a_product",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique internal name for the product. This is only visible in Chargebee.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique name that appears to the end user for each product.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "default" : "active",
                    "deprecated" : false,
                    "description" : "Status of the product.\n\\* active -\n\nThe active products are visible on the storefront, subscription, or checkout.\n\\* inactive -\n\nThe inactive products are not visible on the storefront, subscription, or checkout.\n",
                    "enum" : [ "active", "inactive" ],
                    "example" : null
                  },
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The immutable unique identifier of the product. If not passed, it will get autogenerated.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Description of the product.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "sku" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique identifier code a seller assigns to each product or item. Retailers and merchants use SKUs to keep track of inventory and sales data and help organize products within a store or warehouse. SKUs can include a combination of letters, numbers, and symbols and can vary in length depending on the seller's needs.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the product. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  },
                  "shippable" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Whether a product is shippable or not. Pass the value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nif it is a shippable physical product, else pass the value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                    "example" : null
                  }
                },
                "required" : [ "external_name", "name", "status" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "product" : {
                      "$ref" : "#/components/schemas/Product",
                      "description" : "<p class=\"mb-2\">Resource object representing product</p>"
                    }
                  },
                  "required" : [ "product" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/products/{product-id}/variants" : {
      "get" : {
        "summary" : "List product variants",
        "description" : "This API retrieves the list of product variants.\n",
        "operationId" : "list_product_variants",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*deleted\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ' attribute will be '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* '.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter variant based on their [id](/docs/api/variants)\n.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is_not\\] = \"basic\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter variant based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ns.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">name[is] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sku",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter variant based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sku</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">sku[is] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter variant based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nPossible values are : active, inactive.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">status[is] = &quot;active&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "pattern" : "^\\[(active|inactive)(,(active|inactive))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - active \\* \\`inactive\\` - inactive\n",
                "enum" : [ "active", "inactive" ],
                "pattern" : "^\\[(active|inactive)(,(active|inactive))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter product  based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated time</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[before] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter product  based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">created time</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">created_at[before] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nname, id, status, created_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"name\"*\n\nThis will sort the result based on the 'name' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "name", "id", "status", "created_at", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "name", "id", "status", "created_at", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "variant" : {
                            "$ref" : "#/components/schemas/Variant",
                            "description" : "Resource object representing variant"
                          }
                        },
                        "required" : [ "variant" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a product variant",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API is used for creating a new product variant.\nThe following table will help you to understand the state of the variant <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> after passing <a href=\"/docs/api/variants/create-a-product-variant#status\">status</a> value during variant creation.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Parameter Value</strong> column holds possible inputs to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant.status</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Product Status</strong> column states the status of the associated product.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Variant Status</strong> column states the value of the variant status once the variant is created.</p>\n</li>\n</ul><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"1\"><tbody><tr><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">Parameter Value</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">Product Status</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">Variant Status</strong></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">No value passed</td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">active</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">active</strong></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">No value passed</td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">inactive</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">inactive</strong></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">Value passed as <strong class=\"font-semibold\">active</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">active</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">active</strong></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">Value passed as <strong class=\"font-semibold\">inactive</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">active</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">inactive</strong></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">Value passed as <strong class=\"font-semibold\">active</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">inactive</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">not allowed</strong></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">Value passed as <strong class=\"font-semibold\">inactive</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">inactive</strong></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center\"><strong class=\"font-semibold\">inactive</strong></td></tr></tbody></table></div></div>",
        "operationId" : "create_a_product_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The immutable unique identifier of a product variant. If not passed, it will get autogenerated.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This is a unique name that appears for each product variant to the end user.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique name that appears for each product variant to the end user.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A detailed description of this product variant.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "sku" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique identifier code a seller assigns to each product variant. Retailers and merchants use SKUs to keep track of inventory and sales data and help organize products within a store or warehouse. SKUs can include a combination of letters, numbers, and symbols and can vary in length depending on the seller's needs.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the product. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Status of the product variant. Refer to the [table](/docs/api/variants/create-a-product-variant)\nfor more information.\n\\* active -\n\nThe active product variants are visible on the storefront, subscription, or checkout.\n\\* inactive -\n\nThe inactive product variants are not visible on the storefront, subscription, or checkout.\n",
                    "enum" : [ "active", "inactive" ],
                    "example" : null
                  },
                  "option_values" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "List of product variants option values.\n",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "Name of the option values.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Pass values of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">option_values</code></p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name", "value" ],
                    "example" : null
                  }
                },
                "required" : [ "name" ],
                "example" : null
              },
              "encoding" : {
                "option_values" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "variant" : {
                      "$ref" : "#/components/schemas/Variant",
                      "description" : "<p class=\"mb-2\">Resource object representing variant</p>"
                    }
                  },
                  "required" : [ "variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/variants/{product-variant-id}" : {
      "get" : {
        "summary" : "Retrieve a product variant",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API is used to retrieve a product variant using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant_id</code>\n.</p></div>",
        "operationId" : "retrieve_a_product_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-variant-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-variant-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "variant" : {
                      "$ref" : "#/components/schemas/Variant",
                      "description" : "<p class=\"mb-2\">Resource object representing variant</p>"
                    }
                  },
                  "required" : [ "variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a product variant",
        "description" : "This API is used to modify a product variant.\n",
        "operationId" : "update_a_product_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-variant-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-variant-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This is a unique name that appears for each product variant to the end user.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A detailed description of this product variant.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Status of the product variant.\n\\* active -\n\nThe active product variants are visible on the storefront, subscription, or checkout.\n\\* inactive -\n\nThe inactive product variants are not visible on the storefront, subscription, or checkout.\n",
                    "enum" : [ "active", "inactive" ],
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique name that appears for each product variant to the end user.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "sku" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique identifier code a seller assigns to each product variant. Retailers and merchants use SKUs to keep track of inventory and sales data and help organize products within a store or warehouse. SKUs can include a combination of letters, numbers, and symbols and can vary in length depending on the seller's needs.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the variant. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "variant" : {
                      "$ref" : "#/components/schemas/Variant",
                      "description" : "<p class=\"mb-2\">Resource object representing variant</p>"
                    }
                  },
                  "required" : [ "variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/variants/{product-variant-id}/delete" : {
      "post" : {
        "summary" : "Delete a product variant",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API deletes a product variant and returns the delete attribute value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n. Deletion of a product variant is not allowed if there are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\nunder the variant. Once the variant is deleted, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the product variant can be reused.</p></div>",
        "operationId" : "delete_a_product_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "product-variant-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/product-variant-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "variant" : {
                      "$ref" : "#/components/schemas/Variant",
                      "description" : "<p class=\"mb-2\">Resource object representing variant</p>"
                    }
                  },
                  "required" : [ "variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/items" : {
      "get" : {
        "summary" : "List items",
        "description" : "Returns a list of items satisfying **all**\nthe conditions specified in the filter parameters below. The list is sorted by date of creation, in descending order.\n",
        "operationId" : "list_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter items based on item id.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"basic\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_family_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter items based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family_id</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_family_id[is] = &quot;acme&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "acme",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter items based on item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>.\nPossible values are : plan, addon, charge.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">type[is] = &quot;plan&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "plan",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter items based on item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">name[is_not] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_applicability",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter items based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_applicability</code>.\nPossible values are : all, restricted.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_applicability[is_not] = &quot;all&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "all",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                "enum" : [ "all", "restricted" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                "enum" : [ "all", "restricted" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                "enum" : [ "all", "restricted" ],
                "pattern" : "^\\[(all|restricted)(,(all|restricted))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `all` - all addon-items and charge-items are applicable to this plan-item.\n* `restricted` - only the addon-items or charge-items provided in <code>applicable_items</code> can be applied to this plan-item.",
                "enum" : [ "all", "restricted" ],
                "pattern" : "^\\[(all|restricted)(,(all|restricted))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter items based on item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nPossible values are : active, archived.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">status[is] = &quot;active&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                "enum" : [ "active", "archived", "deleted" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                "enum" : [ "active", "archived", "deleted" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                "enum" : [ "active", "archived", "deleted" ],
                "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `active` - The item can be used to create new item prices.\n* `archived` - The item is no longer active and no new item prices can be created\n* `deleted` - Indicates that the item has been <a href=\"./items?prod_cat_ver=2#delete_an_item\">deleted</a>.  The <code>id</code> and <code>name</code> can be reused. Deleted items can be retrieved using <a href=\"./items?prod_cat_ver=2#list_items\">List items</a>.",
                "enum" : [ "active", "archived", "deleted" ],
                "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "is_giftable",
          "in" : "query",
          "description" : "optional, boolean filter\n\nSpecifies if gift subscriptions can be created for this item. Possible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*is_giftable\\[is\\] = \"true\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nFilter items based on when the items were last updated.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[after\\] = \"1243545465\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "enabled_for_checkout",
          "in" : "query",
          "description" : "optional, boolean filter\n\nAllow the plan to subscribed to via Checkout. Applies only for plan-items.\n**Note:**\nOnly the in-app layout of Checkout is supported. Possible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*enabled_for_checkout\\[is\\] = \"null\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "enabled_in_portal",
          "in" : "query",
          "description" : "optional, boolean filter\n\nAllow customers to change their subscription to this plan via the [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html).\nApplies only for plan-items. This requires the Portal configuration to [allow changing subscriptions](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription).\nPossible values are : *true, false*\n\n**Supported operators :**\nis\n\n**Example →**\n*enabled_in_portal\\[is\\] = \"null\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "metered",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Specifies whether the item undergoes metered billing. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the quantity is calculated from <a href=\"/docs/api/usages\">usage records</a>.\nWhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nis as determined while adding an item price to the subscription. Applicable only for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nand when <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html\" target=\"_blank\" rel=\"noopener noreferrer\">Metered Billing</a>\nis enabled. The value of this attribute cannot be changed. Possible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">metered[is] = &quot;true&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "true",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "usage_calculation",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">How the quantity is calculated from usage data for the item prices belonging to this item. Only applicable when the item is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>.\nThis value overrides the one <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">set at the site level</a>.\nPossible values are : sum_of_usages, last_usage, max_usage.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">usage_calculation[is_not] = &quot;SUM_OF_USAGES&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "SUM_OF_USAGES",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                "pattern" : "^\\[(sum_of_usages|last_usage|max_usage)(,(sum_of_usages|last_usage|max_usage))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `sum_of_usages` - the net quantity is the sum of the <code>quantity</code> of all usages for the current term.\n* `last_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the most recent <code>usage_date</code> is taken as the net quantity consumed.\n* `max_usage` - from among the usage records for the <a href=\"/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id\">item price</a> with <code>usage_date</code> within the relevant billing period, the <code>quantity</code> of the usage record with the maximum value is taken as the net quantity consumed.",
                "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                "pattern" : "^\\[(sum_of_usages|last_usage|max_usage)(,(sum_of_usages|last_usage|max_usage))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "channel",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe subscription channel this object originated from and is maintained in. Possible values are : web, app_store, play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*channel\\[is\\] = \"APP STORE\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "APP STORE",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "business_entity_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "business_entity_id",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "include_site_level_resources",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nname, id, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"name\"*\n\nThis will sort the result based on the 'name' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "bundle_configuration",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Parameters of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_configuration</code></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "type" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Type of the bundle\n",
                "example" : "fixed",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "description" : "* `fixed` - Fixed <code>bundle_configurations.type</code> appears when you create a bundle plan that cannot be updated during checkout or subscription creation.",
                    "enum" : [ "fixed" ],
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "description" : "* `fixed` - Fixed <code>bundle_configurations.type</code> appears when you create a bundle plan that cannot be updated during checkout or subscription creation.",
                    "enum" : [ "fixed" ],
                    "example" : null
                  },
                  "in" : {
                    "type" : "string",
                    "description" : "* `fixed` - Fixed <code>bundle_configurations.type</code> appears when you create a bundle plan that cannot be updated during checkout or subscription creation.",
                    "enum" : [ "fixed" ],
                    "pattern" : "^\\[(fixed)(,(fixed))*\\]$",
                    "example" : null
                  },
                  "not_in" : {
                    "type" : "string",
                    "description" : "* `fixed` - Fixed <code>bundle_configurations.type</code> appears when you create a bundle plan that cannot be updated during checkout or subscription creation.",
                    "enum" : [ "fixed" ],
                    "pattern" : "^\\[(fixed)(,(fixed))*\\]$",
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item" : {
                            "$ref" : "#/components/schemas/Item",
                            "description" : "Resource object representing item"
                          }
                        },
                        "required" : [ "item" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create an item",
        "description" : "Creates a new item.\n",
        "operationId" : "create_an_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The identifier for the item. Must be unique and is immutable once set.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique display name for the item. Must be unique. This is visible only in Chargebee and not to customers.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of the item.\n\\* plan -\n\nAn essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription.\n\\* charge -\n\nA non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](/docs/api/v2/pcv-1/invoices/create-invoice-for-a-one-time-charge)\nwithout being applied to a subscription.\n\\* addon -\n\nA recurring component that can be added to a subscription in addition to its plan.\n",
                    "enum" : [ "plan", "addon", "charge" ],
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Description of the item. This is visible only in Chargebee and not to customers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The description field supports up to 2000 characters, including HTML tags. The inner text (excluding HTML tags) must not exceed 500 characters.\nFor example:\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-   testing -   desc  </code>.\nTotal with tags: 38 characters,\ninner text: &#x27;testing desc&#x27; (12 characters).</li>\n<li class=\"text-base leading-relaxed\">If your input includes characters requiring sanitization, such as incomplete HTML tags, the sanitization process may alter the input and increase its length. If the sanitized content exceeds the allowed limit, the request will be rejected.</li>\n</ul></div>",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "item_family_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/item_families\">Item family</a>\nthat the item belongs to. Is mandatory when <a href=\"https://www.chargebee.com/docs/2.0/product-families.html\" target=\"_blank\">Product Families</a>\nhave been enabled.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "is_giftable" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Specifies if gift subscriptions can be created for this item.\n",
                    "example" : null
                  },
                  "is_shippable" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates that the item is a physical product. If Orders are enabled in Chargebee, subscriptions created for this item will have orders associated with them.\n",
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique display name for the item.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "enabled_in_portal" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Allow customers to change their subscription to this plan via the [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html).\nApplies only for plan-items. This requires the Portal configuration to [allow changing subscriptions](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription).\nOnly the in-app version of the Portal is supported for Product Catalog v2.\n",
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">enabled_for_checkout</code>\n, then the URL to be redirected to once the checkout is complete. This attribute is only available for plan-items.</p>",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "enabled_for_checkout" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Allow the plan to subscribed to via Checkout. Applies only for plan-items.\n**Note:**\nOnly the in-app layout of Checkout is supported.\n",
                    "example" : null
                  },
                  "item_applicability" : {
                    "type" : "string",
                    "default" : "all",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates which addon-items and charge-items can be applied to the item. Only possible for plan-items. Other details of attaching items such as whether to attach as a mandatory item or to attach on a certain event, can be specified using the <a href=\"/docs/api/attached_items/create-an-attached-item\">Create</a>\nor <a href=\"/docs/api/attached_items/update-an-attached-item\">Update an attached item</a>\nAPI.</p>\n* all - <p class=\"mb-2\">all addon-items and charge-items are applicable to this plan-item.</p>\n* restricted - <p class=\"mb-2\">only the addon-items or charge-items provided in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applicable_items</code>\ncan be applied to this plan-item.</p>",
                    "enum" : [ "all", "restricted" ],
                    "example" : null
                  },
                  "applicable_items" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "The list of ids of addon-items and charge-items that can be applied to the plan-item. This parameter can be provided only for plan-items and that too when item_applicability is restricted. Other details of attaching items can be specified using the [Create](/docs/api/attached_items/create-an-attached-item)\nor [Update an attached item](/docs/api/attached_items/update-an-attached-item)\nAPI.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unit of measure for a quantity-based item. This is displayed on the Chargebee UI and on customer facing documents/pages. The latter includes [hosted pages](/docs/api/hosted_pages)\n, [invoices](/docs/api/invoices)\nand [quotes](/docs/api/quotes).\nExamples follow:\n\n* \"user\" for a cloud-collaboration platform.\n* \"GB\" for a data service.\n* \"issue\" for a magazine.\n",
                    "maxLength" : 30,
                    "example" : null
                  },
                  "gift_claim_redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The URL to redirect to once the gift has been claimed by the receiver.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "included_in_mrr" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The item is included in MRR calculations for your site. This attribute is only applicable for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type = charge</code>\nand when the feature is enabled in Chargebee. Note: If the site-level setting is to exclude charge-items from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                    "example" : null
                  },
                  "metered" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies whether the item undergoes metered billing. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the quantity is calculated from <a href=\"/docs/api/usages\">usage records</a>.\nWhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nis as determined while adding an item price to the subscription. Applicable only for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nand when <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html\" target=\"_blank\" rel=\"noopener noreferrer\">Metered Billing</a>\nis enabled. The value of this attribute cannot be changed.</p>",
                    "example" : null
                  },
                  "usage_calculation" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">How the quantity is calculated from usage data for the item prices belonging to this item. Only applicable when the item is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>.\nThis value overrides the one <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">set at the site level</a>.\n.</p>\n* sum_of_usages - <p class=\"mb-2\">the net quantity is the sum of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nof all usages for the current term.</p>\n* last_usage - <p class=\"mb-2\">from among the usage records for the <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">item price</a>\nwith <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nwithin the relevant billing period, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nof the usage record with the most recent <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nis taken as the net quantity consumed.</p>\n* max_usage - <p class=\"mb-2\">from among the usage records for the <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">item price</a>\nwith <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nwithin the relevant billing period, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nof the usage record with the maximum value is taken as the net quantity consumed.</p>",
                    "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
                    "example" : null
                  },
                  "is_percentage_pricing" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the item. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/business_entities\">business entity</a>\nfor this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>.\nThis is applicable only when multiple business entities have been created for the site. When provided, the operation will read or write data associated with the specified business entity. If not provided, the resource will be created at the site level, and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code>\nwill not be included in the API response.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nAn alternative way of passing this parameter is by means of a <a href=\"/docs/api/advanced-features#mbe-header-main\">custom HTTP header</a>.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "bundle_configuration" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_configuration</code></p>",
                    "properties" : {
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Type of the bundle</p>\n* fixed - <p class=\"mb-2\">Fixed <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_configuration.type</code>\nappears when you create a <a href=\"https://www.chargebee.com/docs/2.0/product-bundling-overview.html\">bundle plan</a>\nthat cannot be updated during checkout or subscription creation.</p>",
                        "enum" : [ "fixed" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "bundle_items_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_items_to_add</code></p>",
                    "properties" : {
                      "item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#id\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code></a>\nthat needs to be added to the bundle.\n<strong class=\"font-semibold\">Note:</strong>\nThis parameter is only applicable when the <a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nthat can be added to the bundle.</p>\n* charge - <p class=\"mb-2\">A non-recurring component that can be added to a bundle plan.</p>\n* addon - <p class=\"mb-2\">A recurring component that can be added to a bundle plan.</p>\n* plan - <p class=\"mb-2\">An essential component of the bundle plan.\n<strong class=\"font-semibold\">Note:</strong>\nAt least one <a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></a>\nitem must be associated with the bundle.</p>",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Quantity of the item(plan, addon, and charge) associated with the bundle.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_allocation" : {
                        "type" : "array",
                        "description" : "Price allocation of the item(plan, addon, and charge) associated with the bundle.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "decimal",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "id", "item_family_id", "name", "type" ],
                "example" : null
              },
              "encoding" : {
                "bundle_configuration" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "bundle_items_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item" : {
                      "$ref" : "#/components/schemas/Item",
                      "description" : "<p class=\"mb-2\">Resource object representing item</p>"
                    }
                  },
                  "required" : [ "item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/items/{item-id}/delete" : {
      "post" : {
        "summary" : "Delete an item",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes an item, marking its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nas deleted. This is not allowed if there are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\nitem prices under the item. Once deleted, the id and name of the item can be reused.</p></div>",
        "operationId" : "delete_an_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item" : {
                      "$ref" : "#/components/schemas/Item",
                      "description" : "<p class=\"mb-2\">Resource object representing item</p>"
                    }
                  },
                  "required" : [ "item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/items/{item-id}" : {
      "get" : {
        "summary" : "Retrieve an item",
        "description" : "Retrieve an item resource.\n",
        "operationId" : "retrieve_an_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item" : {
                      "$ref" : "#/components/schemas/Item",
                      "description" : "<p class=\"mb-2\">Resource object representing item</p>"
                    }
                  },
                  "required" : [ "item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update an item",
        "description" : "Updates an item with the changes specified. Unspecified item parameters are not modified.\n",
        "operationId" : "update_an_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The display name for the item. Must be unique. This is visible only in Chargebee and not to customers.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Description of the item. This is visible only in Chargebee and not to customers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The description field supports up to 2000 characters, including HTML tags. The inner text (excluding HTML tags) must not exceed 500 characters.\nFor example:\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-   testing -   desc  </code>.\nTotal with tags: 38 characters,\ninner text: &#x27;testing desc&#x27; (12 characters).</li>\n<li class=\"text-base leading-relaxed\">If your input includes characters requiring sanitization, such as incomplete HTML tags, the sanitization process may alter the input and increase its length. If the sanitized content exceeds the allowed limit, the request will be rejected.</li>\n</ul></div>",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "is_shippable" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates that the item is a physical product. If Orders are enabled in Chargebee, subscriptions created for this item will have orders associated with them.\n",
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique display name for the item.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "item_family_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/item_families\">Item family</a>\nthat the item belongs to. Is mandatory when <a href=\"https://www.chargebee.com/docs/2.0/product-families.html\" target=\"_blank\">Product Families</a>\nhave been enabled.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "enabled_in_portal" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Allow customers to change their subscription to this plan via the [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html).\nApplies only for plan-items. This requires the Portal configuration to [allow changing subscriptions](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription)\n.\n",
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">enabled_for_checkout</code>\n, then the URL to be redirected to once the checkout is complete. This parameter is only meant for plan-items.</p>",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "enabled_for_checkout" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Allow the plan to subscribed to via Checkout. Applies only for plan-items.\n**Note:**\nOnly the in-app layout of Checkout is supported.\n",
                    "example" : null
                  },
                  "item_applicability" : {
                    "type" : "string",
                    "default" : "all",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates which addon-items and charge-items can be applied to the item. Only possible for plan-items. Other details of attaching items such as whether to attach as a mandatory item or to attach on a certain event, can be specified using the <a href=\"/docs/api/attached_items/create-an-attached-item\">Create</a>\nor <a href=\"/docs/api/attached_items/update-an-attached-item\">Update an attached item</a>\nAPI.</p>\n* all - <p class=\"mb-2\">all addon-items and charge-items are applicable to this plan-item.</p>\n* restricted - <p class=\"mb-2\">only the addon-items or charge-items provided in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applicable_items</code>\ncan be applied to this plan-item.</p>",
                    "enum" : [ "all", "restricted" ],
                    "example" : null
                  },
                  "applicable_items" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "The list of ids of addon-items and charge-items that can be applied to the plan-item. This parameter can be provided only for plan-items and that too when item_applicability is restricted. Other details of attaching items can be specified using the [Create](/docs/api/attached_items/create-an-attached-item)\nor [Update an attached item](/docs/api/attached_items/update-an-attached-item)\nAPI.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unit of measure for a quantity-based item. This is displayed on the Chargebee UI and on customer facing documents/pages. The latter includes [hosted pages](/docs/api/hosted_pages)\n, [invoices](/docs/api/invoices)\nand [quotes](/docs/api/quotes).\nExamples follow:\n\n* \"user\" for a cloud-collaboration platform.\n* \"GB\" for a data service.\n* \"issue\" for a magazine.\n",
                    "maxLength" : 30,
                    "example" : null
                  },
                  "gift_claim_redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The URL to redirect to once the gift has been claimed by the receiver.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the item. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  },
                  "included_in_mrr" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The item is included in MRR calculations for your site. This attribute is only applicable for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type = charge</code>\nand when the feature is enabled in Chargebee. Note: If the site-level setting is to exclude charge-items from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The status of the item.</p>\n* active - <p class=\"mb-2\">The item can be used to create new item prices.</p>\n* deleted - <p class=\"mb-2\">Indicates that the item has been <a href=\"/docs/api/items/delete-an-item\">deleted</a>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ncan be reused. Deleted items can be retrieved using <a href=\"/docs/api/items/list-items\">List items</a>\n.</p>\n* archived - <p class=\"mb-2\">The item is no longer active and no new item prices can be created</p>",
                    "enum" : [ "active", "archived" ],
                    "example" : null
                  },
                  "is_percentage_pricing" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "bundle_configuration" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_configuration</code></p>",
                    "properties" : {
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Type of the bundle</p>\n* fixed - <p class=\"mb-2\">Fixed <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_configuration.type</code>\nshould be provided when you create a bundle plan that cannot be updated during checkout or subscription creation.</p>",
                        "enum" : [ "fixed" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "bundle_items_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_items_to_add</code></p>",
                    "properties" : {
                      "item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#id\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code></a>\nthat needs to be added to the bundle.\n<strong class=\"font-semibold\">Note:</strong>\nThis parameter is only applicable when the <a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nthat can be added to the bundle.</p>\n* charge - <p class=\"mb-2\">A non-recurring component that can be added to a bundle plan.</p>\n* addon - <p class=\"mb-2\">A recurring component that can be added to a bundle plan.</p>\n* plan - <p class=\"mb-2\">An essential component of the bundle plan.\n<strong class=\"font-semibold\">Note:</strong>\nAt least one plan item must be associated with the bundle.</p>",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Quantity of the item(plan, addon, and charge) associated with the bundle.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_allocation" : {
                        "type" : "array",
                        "description" : "Price allocation of the item(plan, addon, and charge) associated with the bundle.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "decimal",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "bundle_items_to_update" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for bundle_items_to_update\n",
                    "properties" : {
                      "item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#id\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code></a>\nthat needs to be updated from the bundle plan. This attribute is only applicable when the <a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nthat you want to update from the bundle.</p>\n* charge - <p class=\"mb-2\">A non-recurring component that can be added to a bundle plan.</p>\n* addon - <p class=\"mb-2\">A recurring component that can be added to a bundle plan.</p>\n* plan - <p class=\"mb-2\">An essential component of the bundle plan.\n<strong class=\"font-semibold\">Note:</strong>\nAt least one plan item must be associated with the bundle.</p>",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Quantity of the item(plan, addon, and charge) associated with the bundle.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_allocation" : {
                        "type" : "array",
                        "description" : "Price allocation of the item(plan, addon, and charge) associated with the bundle.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "decimal",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "bundle_items_to_remove" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for bundle_items_to_remove\n",
                    "properties" : {
                      "item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#id\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code></a>\nthat needs to be removed from the bundle plan.\n<strong class=\"font-semibold\">Note:</strong>\nThis attribute is only applicable when the <a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\"><a href=\"/docs/api/items/item-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a>\nthat you want to remove from the bundle.</p>\n* charge - <p class=\"mb-2\">A non-recurring component that can be added to a bundle plan.</p>\n* plan - <p class=\"mb-2\">An essential component of the bundle plan.\n<strong class=\"font-semibold\">Note:</strong>\nAt least one plan item must be associated with the bundle.</p>\n* addon - <p class=\"mb-2\">A recurring component that can be added to a bundle plan.</p>",
                          "enum" : [ "plan", "addon", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "bundle_configuration" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "bundle_items_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "bundle_items_to_remove" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "bundle_items_to_update" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item" : {
                      "$ref" : "#/components/schemas/Item",
                      "description" : "<p class=\"mb-2\">Resource object representing item</p>"
                    }
                  },
                  "required" : [ "item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/price_variants/{price-variant-id}/delete" : {
      "post" : {
        "summary" : "Delete a price variant",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes the price variant. This is not allowed if price variant is attached to any <a href=\"/docs/api/item_prices\">item price</a>. Once deleted, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> of the price variant can be reused.</p></div>",
        "operationId" : "delete_a_price_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "price-variant-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/price-variant-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "price_variant" : {
                      "$ref" : "#/components/schemas/PriceVariant",
                      "description" : "<p class=\"mb-2\">Resource object representing price_variant</p>"
                    }
                  },
                  "required" : [ "price_variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/price_variants" : {
      "get" : {
        "summary" : "List price variants",
        "description" : "This endpoint is used to retrieve a list of price variants.\n",
        "operationId" : "list_price_variants",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter variant based on their [id](/docs/api/price_variants)\n.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"basic\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter variant based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ns.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">name[is] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter variant based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nPossible values are : active, archived.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">status[is] = &quot;active&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                "enum" : [ "active", "archived" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                "enum" : [ "active", "archived" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                "enum" : [ "active", "archived" ],
                "pattern" : "^\\[(active|archived)(,(active|archived))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active \\* \\`archived\\` - Archived\n",
                "enum" : [ "active", "archived" ],
                "pattern" : "^\\[(active|archived)(,(active|archived))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter product  based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated time</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[on] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter product  based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">created time</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">created_at[before] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "business_entity_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price_variant</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "business_entity_id",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "include_site_level_resources",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nname, id, status, created_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"name\"*\n\nThis will sort the result based on the 'name' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "name", "id", "status", "created_at", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "name", "id", "status", "created_at", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "price_variant" : {
                            "$ref" : "#/components/schemas/PriceVariant",
                            "description" : "Resource object representing price_variant"
                          }
                        },
                        "required" : [ "price_variant" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a price variant",
        "description" : "This endpoint allows the creation of a new price variant that can be attached to [item prices](/docs/api/item_prices).\n",
        "operationId" : "create_a_price_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique and immutable identifier of the price variant.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique name of the price variant.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique display name for the price variant.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Description of the price variant.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "variant_group" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant_group</code>\norganizes similar <code><a href=\"/docs/api/price_variants\">price_variants</a></code>\nto optimize strategies such as bundling, geo-based pricing experiments, and campaign-specific pricing like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cb-atomic-pricing-</code>\nfor effective grouping. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant_group</code>\nprovides greater flexibility and precision in your pricing models.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/business_entities\">business entity</a>\nfor this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price_variant</code>.\nThis is applicable only when multiple business entities have been created for the site. When provided, the operation will read or write data associated with the specified business entity. If not provided, the resource will be created at the site level, and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code>\nwill not be included in the API response.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nAn alternative way of passing this parameter is by means of a <a href=\"/docs/api/advanced-features#mbe-header-main\">custom HTTP header</a>.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "attributes" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "The list of price variant attribute values. Attributes can be used to store additional information about the price variant. For example, for a price variant called 'Germany', the attributes can be 'Country':'Germany', 'City':'Berlin' and so on.\n",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "Attribute name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "Attribute value\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name", "value" ],
                    "example" : null
                  }
                },
                "required" : [ "id", "name" ],
                "example" : null
              },
              "encoding" : {
                "attributes" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "price_variant" : {
                      "$ref" : "#/components/schemas/PriceVariant",
                      "description" : "<p class=\"mb-2\">Resource object representing price_variant</p>"
                    }
                  },
                  "required" : [ "price_variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/price_variants/{price-variant-id}" : {
      "get" : {
        "summary" : "Retrieve a price variant",
        "description" : "This endpoint retrieves the details of a specific price variant using its unique identifier.\n",
        "operationId" : "retrieve_a_price_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "price-variant-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/price-variant-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "price_variant" : {
                      "$ref" : "#/components/schemas/PriceVariant",
                      "description" : "<p class=\"mb-2\">Resource object representing price_variant</p>"
                    }
                  },
                  "required" : [ "price_variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a price variant",
        "description" : "This endpoint modifies the details of an existing price variant.\n",
        "operationId" : "update_a_price_variant",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "price-variant-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/price-variant-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique name of the price variant.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A unique display name for the price variant.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Description of the price variant.\n",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "variant_group" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant_group</code>\norganizes similar <code><a href=\"/docs/api/price_variants\">price_variants</a></code>\nto optimize strategies such as bundling, geo-based pricing experiments, and campaign-specific pricing like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cb-atomic-pricing-</code>\nfor effective grouping. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant_group</code>\nprovides greater flexibility and precision in your pricing models.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Status of a price variant.</p>\n* active - <p class=\"mb-2\">Active price variant. This price variant can be attached to <a href=\"/docs/api/item_prices\">item prices</a>\n.</p>\n* deleted - <p class=\"mb-2\">Deleted price variant. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the deleted price variant can be reused.</p>\n* archived - <p class=\"mb-2\">Archived price variant. This price variant is no longer <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nand cannot be attached to new <a href=\"/docs/api/item_prices\">item prices</a>.\nExisting item prices that already have this price variant attached will continue to remain as is.</p>",
                    "enum" : [ "active", "archived" ],
                    "example" : null
                  },
                  "attributes" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "The list of price variant attribute values. Attributes can be used to store additional information about the price variant. For example, for a price variant called 'Germany', the attributes can be 'Country':'Germany', 'City':'Berlin' and so on.\n",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "Attribute name\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "Attribute value\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name", "value" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "attributes" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "price_variant" : {
                      "$ref" : "#/components/schemas/PriceVariant",
                      "description" : "<p class=\"mb-2\">Resource object representing price_variant</p>"
                    }
                  },
                  "required" : [ "price_variant" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_prices/{item-price-id}" : {
      "get" : {
        "summary" : "Retrieve an item price",
        "description" : "This API retrieves a specific item price using the id.\n",
        "operationId" : "retrieve_an_item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_price" : {
                      "$ref" : "#/components/schemas/ItemPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing item_price</p>"
                    }
                  },
                  "required" : [ "item_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update an item price",
        "description" : "Updates an item price with the changes specified. Unspecified item price attributes are not modified.\n",
        "operationId" : "update_an_item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A unique display name for the item price in the Chargebee UI. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">external_name</code>\nis not provided, this is also used in customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>\n.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Description of the item price.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The description field supports up to 2000 characters, including HTML tags. The inner text (excluding HTML tags) must not exceed 500 characters.\nFor example:\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-   testing -   desc  </code>.\nTotal with tags: 38 characters,\ninner text: &#x27;testing desc&#x27; (12 characters).</li>\n<li class=\"text-base leading-relaxed\">If your input includes characters requiring sanitization, such as incomplete HTML tags, the sanitization process may alter the input and increase its length. If the sanitized content exceeds the allowed limit, the request will be rejected.</li>\n</ul></div>",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "proration_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only for item prices with:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n</ul></div>\n<p class=\"mb-2\">Specifies how to manage charges or credits for the addon item price during a <a href=\"/docs/api/subscriptions/update-subscription-for-items\">subscription update</a>\nor <a href=\"/docs/api/estimates/estimate-for-updating-a-subscription\">estimating</a>\na subscription update.</p>\n* full_term - <p class=\"mb-2\">Charge the full price of the addon item price or give the full credit. Don&#x27;t apply any proration.</p>\n* site_default - <p class=\"mb-2\">Use the <a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-for-subscription-change\" target=\"_blank\">site-wide proration setting</a>\n.</p>\n* partial_term - <p class=\"mb-2\">Prorate the charges or credits for the rest of the current term.</p>",
                    "enum" : [ "site_default", "partial_term", "full_term" ],
                    "example" : null
                  },
                  "price_variant_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An immutable unique identifier of a [price variant](/docs/api/price_variants).\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The status of the item price.</p>\n* archived - <p class=\"mb-2\">The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.</p>\n* active - <p class=\"mb-2\">The item price can be used in subscriptions.</p>\n* deleted - <p class=\"mb-2\">Indicates that the item price has been deleted. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ncan be reused.</p>",
                    "enum" : [ "active", "archived" ],
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The name of the item price used in customer-facing pages and documents. These include <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nIf not provided, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nis used.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "usage_accumulation_reset_frequency" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the frequency at which the usage counter needs to be reset.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nChanges to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_accumulation_reset_frequency</code>\nparameter for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis not allowed if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nis already linked to a subscription.</p></div>\n<p class=\"mb-2\">.</p>\n* never - <p class=\"mb-2\">Accumulates usage without ever resetting it.</p>\n* subscription_billing_frequency - <p class=\"mb-2\">Accumulates usage until the subscription&#x27;s billing frequency ends.</p>",
                    "enum" : [ "never", "subscription_billing_frequency" ],
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The currency code (<a href=\"https://www.chargebee.com/docs/2.0/supported-currencies.html\" target=\"_blank\">ISO 4217 format</a>\n) for the item price. If subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a>\nexist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\ncannot be changed.</p>",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "is_taxable" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Specifies whether taxes apply to this item price. This value is set and returned even if [Taxes](https://www.chargebee.com/docs/tax.html)\nhave been disabled in Chargebee. However, the value is effective only while Taxes are enabled.\n",
                    "example" : null
                  },
                  "free_quantity" : {
                    "type" : "integer",
                    "format" : "int32",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Free quantity the subscriptions of this <strong class=\"font-semibold\">plan</strong> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> will have. Only the quantity exceeding this value will be charged in the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code> is currently supported only for <a href=\"/docs/api/items/item-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\">plan</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\nis not supported for the <a href=\"https://www.chargebee.com/docs/2.0/understanding-usages.html\">Usage-Based Billing</a>\n(UBB). All included or free quantities should be configured exclusively through <a href=\"/docs/api/entitlements\">entitlements</a>\n.</li>\n</ul></div>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "free_quantity_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                    "maxLength" : 33,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the item price. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  },
                  "pricing_model" : {
                    "type" : "string",
                    "default" : "flat_fee",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <a href=\"https://www.chargebee.com/docs/2.0/plans.html#pricing-models\" target=\"_blank\">pricing scheme</a> for this item price. If subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a> exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> cannot be changed.</p>\n* tiered - <p class=\"mb-2\">There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.</p>\n* per_unit - <p class=\"mb-2\">A fixed price per unit quantity.</p>\n* flat_fee - <p class=\"mb-2\">A fixed price that is not quantity-based.</p>\n* volume - <p class=\"mb-2\">The per unit price is based on the tier that the total quantity falls in.</p>\n* stairstep - <p class=\"mb-2\">A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.</p>",
                    "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                    "example" : null
                  },
                  "price" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The cost of the item price when the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the <a href=\"/docs/api/currencies\">minor unit of the currency</a>\n.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "price_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The price of the item when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                    "maxLength" : 39,
                    "example" : null
                  },
                  "period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nIf subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important:</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> + <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> pair must match a <em class=\"italic\">configured billing frequency</em> on your site. The API does not create new frequencies. To use a new frequency (for example, 3 months or 2 weeks), add it in the site settings first. Requests with non-configured combinations fail validation.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Monthly: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period=1</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit=month</code> (available by default)</li>\n<li class=\"text-base leading-relaxed\">Quarterly: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period=3</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit=month</code> (<em class=\"italic\">enable 3-month frequency in settings</em>)</li>\n<li class=\"text-base leading-relaxed\">Weekly: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period=1</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit=week</code> (available by default)\nSee <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/addons-billingcycle\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">how billing periods apply</a>\n.</li>\n</ul></div>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>: The billing period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create a 6 month plan by providing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> as 6 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as month.</li>\n<li class=\"text-base leading-relaxed\">When item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>: The period of the addon in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create an addon with a 2 month <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> by providing period as 2 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>. The period of an addon is the duration for which its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price</code> applies. When attached to a plan, the addon is billed for the billing period of the plan. <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">Learn more.</a></li>\n</ul>\n<p class=\"mb-2\">If subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important:</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> value, together with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>, must equal one of your site&#x27;s <em class=\"italic\">configured billing frequencies</em>. If the combination does not exist, the request fails with an invalid billing period configuration error. Configure the frequency in site settings and retry. See <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/addons-billingcycle\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Addons and billing cycle</a>.</p></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "trial_period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period</code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
                    "enum" : [ "day", "month" ],
                    "example" : null
                  },
                  "trial_period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The trial period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period_unit</code>\ns. You can also set <a href=\"https://www.chargebee.com/docs/2.0/addons-trial.html\">trial periods for addons</a>\n; contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Support</a>\nto enable that feature.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "shipping_period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Defines the shipping frequency. Example: to bill customer every 2 weeks, provide \"2\" here.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "shipping_period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Defines the shipping frequency in association with shipping period.\n\\* day -\n\nA period of 24 hours.\n\\* week -\n\nA period of 7 days.\n\\* year -\n\nA period of 1 calendar year.\n\\* month -\n\nA period of 1 calendar month.\n",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The default number of billing cycles a subscription to the plan must run. Can be <a href=\"/docs/api/subscriptions\">overridden</a> for a subscription.\nAddons can also <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">have billing cycles</a>. Also, for addons, you can <a href=\"/docs/api/attached_items\">override this</a> while attaching it to a plan. However, if you provide the value while <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_type\">applying the addon to a subscription</a>, then that value takes still higher precedence.\nIf subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a>\nexist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\ncannot be changed.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf you want to change the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nto unlimited renewals, enter an empty string. This value can only be updated if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis not attached to a subscription or invoice. If no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nvalue is entered, then by default the value will be set as unlimited <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nrenewals.</p></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "trial_end_action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Applicable only when <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">End-of-trial Action</a>\nhas been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nand a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the <a href=\"/docs/api/subscriptions/subscription-object#trial_end_action\">subscription-level</a>\n.</p>\n* cancel_subscription - <p class=\"mb-2\">The subscription cancels.</p>\n* activate_subscription - <p class=\"mb-2\">The subscription activates and charges are raised for non-metered items.</p>\n* site_default - <p class=\"mb-2\">The action <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">configured for the site</a>\nat the time when the trial ends, takes effect.</p>",
                    "enum" : [ "site_default", "activate_subscription", "cancel_subscription" ],
                    "example" : null
                  },
                  "show_description_in_invoices" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Whether the item price's description should be shown on [invoice PDFs](/docs/api/invoices/retrieve-invoice-as-pdf).\nIf this Boolean is changed, only invoices generated (or [regenerated](https://www.chargebee.com/docs/invoice-operations.html#actions-for-payment-due-not-paid-invoices_regenerate-invoice)\n) after the change are affected; past invoices are not.\n",
                    "example" : null
                  },
                  "show_description_in_quotes" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "Whether the item price's description should be shown on [quote PDFs](/docs/api/quotes/retrieve-quote-as-pdf).\nIf this Boolean is changed, only quotes created after the change are affected; past quotes are not.\n",
                    "example" : null
                  },
                  "tax_detail" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_detail\n",
                    "properties" : {
                      "tax_profile_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The tax profile of the item price.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "avalara_tax_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [Avalara tax codes](https://taxcode.avatax.avalara.com)\nfor the item price. Applicable only if you use [AvaTax for Sales integration](https://www.chargebee.com/docs/2.0/avatax-for-sales.html)\n.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "hsn_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates the [Avalara sale type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n",
                        "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Indicates the [Avalara transaction type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Indicates the [Avalara service type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
                        "example" : null
                      },
                      "taxjar_product_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [TaxJar product code](https://developers.taxjar.com/api/reference/#get-list-tax-categories)\nfor the item price. Applicable only if you use [TaxJar integration](https://www.chargebee.com/docs/2.0/taxjar.html)\n.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "accounting_detail" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for accounting_detail\n",
                    "properties" : {
                      "sku" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "This maps to the sku or product name in the accounting integration.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The identifier of the chart of accounts under which the item price falls in the accounting system.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, provide the category name and option. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">:</code> . For example:<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: Singapore.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::...</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Services: Plan.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Locations, provide the name of the Location here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, then provide the second category name and option here. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: ....</code> For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Region: South</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Location, provide the Location name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: North America: Canada</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Locations, provide the location name here. Use the following format <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">NA:US:CA</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Dimensions, provide the value of the Dimension here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Departments, pass the department name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Production: Assembly.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under multiple Dimensions, provide the value of the second Dimension here.</li>\n</ul>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category4" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/1.0/finance-integration-index.html )\n\n* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html ) Provide the \"Revenue Recognition Rule Id\" for the product from NetSuite.\n* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html ) If you have configured \"Revenue Recognition Templates\" for products in Intacct, provide the template ID for the product.\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tiers\n",
                    "properties" : {
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lower limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The upper limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n; the total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the <a href=\"/docs/api/currencies\">minor unit of the currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the addon. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20, consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider currently supported.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with us.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the corresponding tax field.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "field_id", "field_value", "provider_name" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "accounting_detail" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_detail" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_price" : {
                      "$ref" : "#/components/schemas/ItemPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing item_price</p>"
                    }
                  },
                  "required" : [ "item_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_prices/{item-price-id}/delete" : {
      "post" : {
        "summary" : "Delete an item price",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes an item price, marking its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deleted</code>. If it is part of a subscription or invoice, the item price <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is marked <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code> instead. Once deleted, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> of the item price can be reused to create a new item price.</p></div>",
        "operationId" : "delete_an_item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_price" : {
                      "$ref" : "#/components/schemas/ItemPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing item_price</p>"
                    }
                  },
                  "required" : [ "item_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_prices/{item-price-id}/applicable_item_prices" : {
      "get" : {
        "summary" : "List applicable item prices for a plan-item price",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Returns the set of all applicable <a href=\"/docs/api/item_prices\">addon-item</a>\nprices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price. When determining this set, Chargebee considers the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">the <code><a href=\"/docs/api/items/item-object#item_applicability\">item_applicability</a></code> and <code><a href=\"/docs/api/items/item-object#applicable_items\">applicable_items</a></code> defined for the parent item of the plan-item price</li>\n<li class=\"text-base leading-relaxed\">the <a href=\"/docs/api/subscriptions\">compatibility</a> of the addon-item prices to the plan-item price</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">If an addon-item price has <a href=\"/docs/api/differential_prices\">differential pricing</a> defined against the parent item of the plan-item price, then the pricing information in the addon-item price object returned, reflects the differential pricing.</p></div></div>",
        "operationId" : "list_applicable_item_prices_for_a_plan-item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "item_id",
          "in" : "query",
          "description" : "The id of the item that the item price belongs to.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nname, id, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"name\"*\n\nThis will sort the result based on the 'name' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item_price" : {
                            "$ref" : "#/components/schemas/ItemPrice",
                            "description" : "Resource object representing item_price"
                          }
                        },
                        "required" : [ "item_price" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_prices/{item-price-id}/applicable_items" : {
      "get" : {
        "summary" : "List applicable items for a plan-item price",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Returns the set of all applicable <a href=\"/docs/api/items\">addon-items</a>\nfor a specific <a href=\"/docs/api/item_prices\">plan-item price</a>\n. This set consists of all addon-items whose item prices can be applied to a subscription having the plan-item price in it. When determining this set, Chargebee considers the <code><a href=\"/docs/api/items/item-object#item_applicability\">item_applicability</a></code>\nand <code><a href=\"/docs/api/items/item-object#applicable_items\">applicable_items</a></code>\ndefined for the parent item of the plan-item price.</p></div>",
        "operationId" : "list_applicable_items_for_a_plan-item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nname, id, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"name\"*\n\nThis will sort the result based on the 'name' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item" : {
                            "$ref" : "#/components/schemas/Item",
                            "description" : "Resource object representing item"
                          }
                        },
                        "required" : [ "item" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_prices" : {
      "get" : {
        "summary" : "List item prices",
        "description" : "Returns a list of item prices satisfying **all** the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order.\n",
        "operationId" : "list_item_prices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter item prices based on their [id](/docs/api/item_prices)\n.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"basic_USD\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic_USD",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ns.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">name[is] = &quot;basic USD&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic USD",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "pricing_model",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>.\nPossible values are : flat_fee, per_unit, tiered, volume, stairstep.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">pricing_model[is] = &quot;flat_fee&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "flat_fee",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                "pattern" : "^\\[(flat_fee|per_unit|tiered|volume|stairstep)(,(flat_fee|per_unit|tiered|volume|stairstep))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`flat_fee\\` - A fixed price that is not quantity-based. \\* \\`per_unit\\` - A fixed price per unit quantity. \\* \\`tiered\\` - The per unit price is based on the tier that the total quantity falls in. \\* \\`volume\\` - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers. \\* \\`stairstep\\` - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
                "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                "pattern" : "^\\[(flat_fee|per_unit|tiered|volume|stairstep)(,(flat_fee|per_unit|tiered|volume|stairstep))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_id[is] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_family_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family_id</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_family_id[is] = &quot;Acme&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "Acme",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_type",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code>.\nPossible values are : plan, addon, charge.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_type[is_not] = &quot;plan&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "plan",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "currency_code",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">currency_code[is_not] = &quot;USD&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "USD",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "price_variant_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price_variant_id</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">price_variant_id[is] = &quot;tamilNadu-India&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "tamilNadu-India",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "trial_period",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, integer filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, lt, lte, gt, gte, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">trial_period[is] = &quot;14&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "14",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "trial_period_unit",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period_unit</code>.\nPossible values are : day, month.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">trial_period_unit[is] = &quot;day&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "day",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                "enum" : [ "day", "month" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                "enum" : [ "day", "month" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                "enum" : [ "day", "month" ],
                "pattern" : "^\\[(day|month)(,(day|month))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`month\\` - A period of 1 calendar month.\n",
                "enum" : [ "day", "month" ],
                "pattern" : "^\\[(day|month)(,(day|month))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.\nPossible values are : active, archived.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">status[is] = &quot;active&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                "enum" : [ "active", "archived", "deleted" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                "enum" : [ "active", "archived", "deleted" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                "enum" : [ "active", "archived", "deleted" ],
                "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `active` - The item price can be used in subscriptions.\n* `archived` - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.\n* `deleted` - Indicates that the item price has been deleted. The <code>id</code> and <code>name</code> can be reused.",
                "enum" : [ "active", "archived", "deleted" ],
                "pattern" : "^\\[(active|archived|deleted)(,(active|archived|deleted))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[after] = &quot;1243545465&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "business_entity_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\n<a href=\"/docs/api/using_business_entity_filters_in_product_catalog_list_apis\">Learn more</a>\nabout all the scenarios before using this filter.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_present</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">business_entity_id[is_present] = &quot;true&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "business_entity_id",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_present" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            }
          }
        }, {
          "name" : "include_site_level_resources",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, boolean filter</p></dfn>\n<p class=\"mb-2\">Default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> . To exclude site-level resources in <a href=\"\" target=\"_blank\">specific cases</a>, set this parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.\nPossible values are : <em class=\"italic\">true, false</em></p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">include_site_level_resources[is] = &quot;null&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "period_unit",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>.\nPossible values are : day, week, month, year.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">period_unit[is] = &quot;month&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "month",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                "enum" : [ "day", "week", "month", "year" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                "enum" : [ "day", "week", "month", "year" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                "enum" : [ "day", "week", "month", "year" ],
                "pattern" : "^\\[(day|week|month|year)(,(day|week|month|year))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`day\\` - A period of 24 hours. \\* \\`week\\` - A period of 7 days. \\* \\`month\\` - A period of 1 calendar month. \\* \\`year\\` - A period of 1 calendar year.\n",
                "enum" : [ "day", "week", "month", "year" ],
                "pattern" : "^\\[(day|week|month|year)(,(day|week|month|year))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "period",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, integer filter</p></dfn>\n<p class=\"mb-2\">Filter item prices based on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, lt, lte, gt, gte, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">period[is] = &quot;3&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "3",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "lte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gt" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "gte" : {
                "type" : "string",
                "format" : "number",
                "pattern" : "^-?\\d+$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[-?\\d+,-?\\d+\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "channel",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe subscription channel this object originated from and is maintained in. Possible values are : web, app_store, play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*channel\\[is\\] = \"APP STORE\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "APP STORE",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`web\\` - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \\* \\`app_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \\* \\`play_store\\` - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.\n",
                "enum" : [ "web", "app_store", "play_store" ],
                "pattern" : "^\\[(web|app_store|play_store)(,(web|app_store|play_store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\nname, id, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"name\"*\n\nThis will sort the result based on the 'name' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "name", "id", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item_price" : {
                            "$ref" : "#/components/schemas/ItemPrice",
                            "description" : "Resource object representing item_price"
                          }
                        },
                        "required" : [ "item_price" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create an item price",
        "description" : "This API creates an item price (a price point) for an [item](/docs/api/items).\n",
        "operationId" : "create_an_item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The identifier for the item price. It is unique and immutable.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A unique display name for the item price in the Chargebee UI. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">external_name</code>\nis not provided, this is also used in customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>\n.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Description of the item price.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The description field supports up to 2000 characters, including HTML tags. The inner text (excluding HTML tags) must not exceed 500 characters.\nFor example:\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-   testing -   desc  </code>.\nTotal with tags: 38 characters,\ninner text: &#x27;testing desc&#x27; (12 characters).</li>\n<li class=\"text-base leading-relaxed\">If your input includes characters requiring sanitization, such as incomplete HTML tags, the sanitization process may alter the input and increase its length. If the sanitized content exceeds the allowed limit, the request will be rejected.</li>\n</ul></div>",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "item_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The id of the item that the item price belongs to.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "invoice_notes" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
                    "maxLength" : 2000,
                    "example" : null
                  },
                  "proration_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only for item prices with:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n</ul></div>\n<p class=\"mb-2\">Specifies how to manage charges or credits for the addon item price during a <a href=\"/docs/api/subscriptions/update-subscription-for-items\">subscription update</a>\nor <a href=\"/docs/api/estimates/estimate-for-updating-a-subscription\">estimating</a>\na subscription update.</p>\n* full_term - <p class=\"mb-2\">Charge the full price of the addon item price or give the full credit. Don&#x27;t apply any proration.</p>\n* site_default - <p class=\"mb-2\">Use the <a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-for-subscription-change\" target=\"_blank\">site-wide proration setting</a>\n.</p>\n* partial_term - <p class=\"mb-2\">Prorate the charges or credits for the rest of the current term.</p>",
                    "enum" : [ "site_default", "partial_term", "full_term" ],
                    "example" : null
                  },
                  "external_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The name of the item price used in customer-facing pages and documents. These include <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nIf not provided, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nis used.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) for the item price. Is required when multiple currencies have been enabled.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "price_variant_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An immutable unique identifier of a [price variant](/docs/api/price_variants).\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "is_taxable" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "Specifies whether taxes apply to this item price. This value is set and returned even if [Taxes](https://www.chargebee.com/docs/tax.html)\nhave been disabled in Chargebee. However, the value is effective only while Taxes are enabled.\n",
                    "example" : null
                  },
                  "free_quantity" : {
                    "type" : "integer",
                    "format" : "int32",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Free quantity the subscriptions of this <strong class=\"font-semibold\">plan</strong> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> will have. Only the quantity exceeding this value will be charged in the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code> is currently supported only for <a href=\"/docs/api/items/item-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\">plan</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\nis not supported for the <a href=\"https://www.chargebee.com/docs/2.0/understanding-usages.html\">Usage-Based Billing</a>\n(UBB). All included or free quantities should be configured exclusively through <a href=\"/docs/api/entitlements\">entitlements</a>\n.</li>\n</ul></div>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "free_quantity_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                    "maxLength" : 33,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "A collection of key-value pairs that provides extra information about the item price. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
                    "example" : null
                  },
                  "show_description_in_invoices" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Whether the item price's description should be shown on [invoice PDFs](/docs/api/invoices/retrieve-invoice-as-pdf).\nIf this Boolean is changed, only invoices generated (or [regenerated](https://www.chargebee.com/docs/invoice-operations.html#actions-for-payment-due-not-paid-invoices_regenerate-invoice)\n) after the change are affected; past invoices are not.\n",
                    "example" : null
                  },
                  "show_description_in_quotes" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Whether the item price's description should be shown on [quote PDFs](/docs/api/quotes/retrieve-quote-as-pdf).\nIf this Boolean is changed, only quotes created after the change are affected; past quotes are not.\n",
                    "example" : null
                  },
                  "usage_accumulation_reset_frequency" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the frequency at which the usage counter needs to be reset.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nChanges to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_accumulation_reset_frequency</code>\nparameter for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis not allowed if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nis already linked to a subscription.</p></div>\n<p class=\"mb-2\">.</p>\n* never - <p class=\"mb-2\">Accumulates usage without ever resetting it.</p>\n* subscription_billing_frequency - <p class=\"mb-2\">Accumulates usage until the subscription&#x27;s billing frequency ends.</p>",
                    "enum" : [ "never", "subscription_billing_frequency" ],
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/business_entities\">business entity</a>\nfor this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is applicable only when multiple business entities have been created for the site. When provided, the operation will read or write data associated with the specified business entity. If not provided, the resource will be created at the site level, and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code>\nwill not be included in the API response.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nAn alternative way of passing this parameter is by means of a <a href=\"/docs/api/advanced-features#mbe-header-main\">custom HTTP header</a>.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "pricing_model" : {
                    "type" : "string",
                    "default" : "flat_fee",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <a href=\"https://www.chargebee.com/docs/2.0/plans.html#pricing-models\" target=\"_blank\">pricing scheme</a> for this item price. If subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a> exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> cannot be changed.</p>\n* tiered - <p class=\"mb-2\">There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.</p>\n* per_unit - <p class=\"mb-2\">A fixed price per unit quantity.</p>\n* flat_fee - <p class=\"mb-2\">A fixed price that is not quantity-based.</p>\n* volume - <p class=\"mb-2\">The per unit price is based on the tier that the total quantity falls in.</p>\n* stairstep - <p class=\"mb-2\">A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.</p>",
                    "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                    "example" : null
                  },
                  "price" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The cost of the item price when the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the <a href=\"/docs/api/getting-started\">minor unit of the currency</a>\n.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "price_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The price of the item when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when <a href=\"/docs/api/getting-started\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                    "maxLength" : 39,
                    "example" : null
                  },
                  "period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nIf subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important:</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> + <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> pair must match a <em class=\"italic\">configured billing frequency</em> on your site. The API does not create new frequencies. To use a new frequency (for example, 3 months or 2 weeks), add it in the site settings first. Requests with non-configured combinations fail validation.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Monthly: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period=1</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit=month</code> (available by default)</li>\n<li class=\"text-base leading-relaxed\">Quarterly: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period=3</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit=month</code> (<em class=\"italic\">enable 3-month frequency in settings</em>)</li>\n<li class=\"text-base leading-relaxed\">Weekly: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period=1</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit=week</code> (available by default)\nSee <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/addons-billingcycle\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">how billing periods apply</a>\n.</li>\n</ul></div>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>: The billing period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create a 6 month plan by providing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> as 6 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as month.</li>\n<li class=\"text-base leading-relaxed\">When item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>: The period of the addon in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create an addon with a 2 month <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> by providing period as 2 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>. The period of an addon is the duration for which its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price</code> applies. When attached to a plan, the addon is billed for the billing period of the plan. <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">Learn more.</a></li>\n</ul>\n<p class=\"mb-2\">If subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important:</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> value, together with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>, must equal one of your site&#x27;s <em class=\"italic\">configured billing frequencies</em>. If the combination does not exist, the request fails with an invalid billing period configuration error. Configure the frequency in site settings and retry. See <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/addons-billingcycle\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Addons and billing cycle</a>.</p></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "trial_period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period</code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
                    "enum" : [ "day", "month" ],
                    "example" : null
                  },
                  "trial_period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The trial period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period_unit</code>\ns. You can also set <a href=\"https://www.chargebee.com/docs/2.0/addons-trial.html\">trial periods for addons</a>\n; contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Support</a>\nto enable that feature.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "shipping_period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "Defines the shipping frequency. Example: to bill customer every 2 weeks, provide \"2\" here.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "shipping_period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Defines the shipping frequency in association with shipping period.\n\\* day -\n\nA period of 24 hours.\n\\* week -\n\nA period of 7 days.\n\\* year -\n\nA period of 1 calendar year.\n\\* month -\n\nA period of 1 calendar month.\n",
                    "enum" : [ "day", "week", "month", "year" ],
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The default number of billing cycles a subscription to the plan must run. Can be <a href=\"/docs/api/subscriptions\">overridden</a> for a subscription.\nAddons can also <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">have billing cycles</a>. Also, for addons, you can <a href=\"/docs/api/attached_items\">override this</a> while attaching it to a plan. However, if you provide the value while <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_type\">applying the addon to a subscription</a>, then that value takes still higher precedence.\nIf subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a>\nexist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\ncannot be changed.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf you want to change the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nto unlimited renewals, enter an empty string. This value can only be updated if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis not attached to a subscription or invoice. If no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nvalue is entered, then by default the value will be set as unlimited <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nrenewals.</p></div>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "trial_end_action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Applicable only when <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">End-of-trial Action</a>\nhas been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nand a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the <a href=\"/docs/api/subscriptions/subscription-object#trial_end_action\">subscription-level</a>\n.</p>\n* cancel_subscription - <p class=\"mb-2\">The subscription cancels.</p>\n* activate_subscription - <p class=\"mb-2\">The subscription activates and charges are raised for non-metered items.</p>\n* site_default - <p class=\"mb-2\">The action <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">configured for the site</a>\nat the time when the trial ends, takes effect.</p>",
                    "enum" : [ "site_default", "activate_subscription", "cancel_subscription" ],
                    "example" : null
                  },
                  "tax_detail" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_detail\n",
                    "properties" : {
                      "tax_profile_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The tax profile of the item price.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "avalara_tax_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [Avalara tax codes](https://taxcode.avatax.avalara.com)\nfor the item price. Applicable only if you use [AvaTax for Sales integration](https://www.chargebee.com/docs/2.0/avatax-for-sales.html)\n.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "hsn_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "avalara_sale_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates the [Avalara sale type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n",
                        "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                        "example" : null
                      },
                      "avalara_transaction_type" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Indicates the [Avalara transaction type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
                        "example" : null
                      },
                      "avalara_service_type" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "Indicates the [Avalara service type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
                        "example" : null
                      },
                      "taxjar_product_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [TaxJar product code](https://developers.taxjar.com/api/reference/#get-list-tax-categories)\nfor the item price. Applicable only if you use [TaxJar integration](https://www.chargebee.com/docs/2.0/taxjar.html)\n.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "accounting_detail" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for accounting_detail\n",
                    "properties" : {
                      "sku" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "This maps to the sku or product name in the accounting integration.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The identifier of the chart of accounts under which the item price falls in the accounting system.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, provide the category name and option. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">:</code> . For example:<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: Singapore.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::...</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Services: Plan.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Locations, provide the name of the Location here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, then provide the second category name and option here. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: ....</code> For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Region: South</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Location, provide the Location name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: North America: Canada</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Locations, provide the location name here. Use the following format <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">NA:US:CA</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Dimensions, provide the value of the Dimension here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Departments, pass the department name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Production: Assembly.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under multiple Dimensions, provide the value of the second Dimension here.</li>\n</ul>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "accounting_category4" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/1.0/finance-integration-index.html )\n\n* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html ) Provide the \"Revenue Recognition Rule Id\" for the product from NetSuite.\n* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html ) If you have configured \"Revenue Recognition Templates\" for products in Intacct, provide the template ID for the product.\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tiers\n",
                    "properties" : {
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lower limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The upper limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n; the total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the <a href=\"/docs/api/getting-started\">minor unit of the currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the addon. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20, consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "tax_providers_fields" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tax_providers_fields\n",
                    "properties" : {
                      "provider_name" : {
                        "type" : "array",
                        "description" : "Name of the tax provider currently supported.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_id" : {
                        "type" : "array",
                        "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with us.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "field_value" : {
                        "type" : "array",
                        "description" : "The value of the corresponding tax field.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "field_id", "field_value", "provider_name" ],
                    "example" : null
                  }
                },
                "required" : [ "id", "item_id", "name" ],
                "example" : null
              },
              "encoding" : {
                "accounting_detail" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_detail" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tax_providers_fields" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "item_price" : {
                      "$ref" : "#/components/schemas/ItemPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing item_price</p>"
                    }
                  },
                  "required" : [ "item_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/attached_items/{attached-item-id}" : {
      "get" : {
        "summary" : "Retrieve an attached item",
        "description" : "Retrieves details of an attached addon or a charge item.\n",
        "operationId" : "retrieve_an_attached_item_",
        "parameters" : [ {
          "name" : "parent_item_id",
          "in" : "query",
          "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the plan-item to which the item is attached.</p>",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "attached-item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/attached-item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "attached_item" : {
                      "$ref" : "#/components/schemas/AttachedItem",
                      "description" : "<p class=\"mb-2\">Resource object representing attached_item</p>"
                    }
                  },
                  "required" : [ "attached_item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update an attached item",
        "description" : "Updates an attached addon or a charge item for a plan.\n",
        "operationId" : "update_an_attached_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "attached-item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/attached-item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parent_item_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The id of the parent item in the attachment relationship.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The type of attachment for the addon. Only applicable for addon-items and is a required parameter as well for addon-items.</p>\n* recommended - <p class=\"mb-2\">The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a>\nor <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>\n.</p>\n* optional - <p class=\"mb-2\">The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nfor the addon, for when it is applied to subscriptions with the plan.</p>\n* mandatory - <p class=\"mb-2\">The addon is attached automatically to the subscription for the plan-item unless <a href=\"/docs/api/subscriptions\">explicitly removed</a>\nvia API.</p>",
                    "enum" : [ "recommended", "mandatory", "optional" ],
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles for which this item is attached when applied to a subscription. Applicable only for items of type addon. Requires <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">addon billing cycles</a>\nto be enabled for the site.</p>\n<p class=\"mb-2\">The value set explicitly for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nwhile <a href=\"/docs/api/subscriptions/subscription-object#subscription_items\">applying the addon to a subscription</a>\ntakes precedence over this parameter. This parameter, in turn, has a higher precedence than <a href=\"/docs/api/item_prices\">the value set for the addon-item price</a>\n.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "quantity" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The default quantity of the addon to be attached when the quantity is not specified while [creating](/docs/api/subscriptions/create-subscription-for-items)\n/[updating](/docs/api/subscriptions/update-subscription-for-items)\nthe subscription.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "quantity_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The decimal representation of the quantity of the addon. Returned for quantity-based addons when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                    "maxLength" : 33,
                    "example" : null
                  },
                  "charge_on_event" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates when the item is charged. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* on_demand - <p class=\"mb-2\">Item can be charged on demand</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>",
                    "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                    "example" : null
                  },
                  "charge_once" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                    "example" : null
                  }
                },
                "required" : [ "parent_item_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "attached_item" : {
                      "$ref" : "#/components/schemas/AttachedItem",
                      "description" : "<p class=\"mb-2\">Resource object representing attached_item</p>"
                    }
                  },
                  "required" : [ "attached_item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/items/{item-id}/attached_items" : {
      "get" : {
        "summary" : "List attached items",
        "description" : "Returns a list of attached items satisfying **all**\nthe conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order (latest first).\n",
        "operationId" : "list_attached_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter attached items based on their id.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"bec0c324-adb6-44d3-ad4f-694f449be97c\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "bec0c324-adb6-44d3-ad4f-694f449be97c",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter attached items based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\nof the item being attached.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_id[is] = &quot;basic&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter attached items based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof attached item. Possible values are : <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recommended</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">optional</code>.\nPossible values are : recommended, mandatory, optional.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">type[is] = &quot;mandatory&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "mandatory",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                "enum" : [ "recommended", "mandatory", "optional" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                "enum" : [ "recommended", "mandatory", "optional" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                "enum" : [ "recommended", "mandatory", "optional" ],
                "pattern" : "^\\[(recommended|mandatory|optional)(,(recommended|mandatory|optional))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `recommended` - The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> or <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>.\n* `mandatory` - The addon is attached automatically to the subscription for the plan-item unless <a href=\"./subscriptions?prod_cat_ver=2\">explicitly removed</a> via API.\n* `optional` - The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code>quantity</code> and <code>billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.",
                "enum" : [ "recommended", "mandatory", "optional" ],
                "pattern" : "^\\[(recommended|mandatory|optional)(,(recommended|mandatory|optional))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_type",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">To filter based on the type of of the attached item. Possible values are : <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>.\nPossible values are : plan, addon, charge.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_type[is_not] = &quot;plan&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "plan",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription. \\* \\`addon\\` - A recurring component that can be added to a subscription in addition to its plan. \\* \\`charge\\` - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription.\n",
                "enum" : [ "plan", "addon", "charge" ],
                "pattern" : "^\\[(plan|addon|charge)(,(plan|addon|charge))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "charge_on_event",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nIndicates when the item is charged. This attribute only applies to charge-items. Possible values are : subscription_creation, subscription_trial_start, plan_activation, subscription_activation, contract_termination, on_demand.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*charge_on_event\\[is\\] = \"subscription_creation\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "subscription_creation",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                "pattern" : "^\\[(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand)(,(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `subscription_creation` - the time of creation of the subscription.\n* `subscription_trial_start` - the time when the trial period of the subscription begins.\n* `plan_activation` - same as subscription activation, but also includes the case when the plan-item of the subscription is changed.\n* `subscription_activation` - the moment a subscription enters an <code>active</code> or <code>non-renewing</code> state. Also includes reactivations of canceled subscriptions.\n* `contract_termination` - when a contract term is <a href=\"./subscriptions?prod_cat_ver=2#cancel_subscription_for_items_contract_term_cancel_option\">terminated</a>.\n* `on_demand` - Item can be charged on demand",
                "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                "pattern" : "^\\[(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand)(,(subscription_creation|subscription_trial_start|plan_activation|subscription_activation|contract_termination|on_demand))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nFilter attached items based on when the attached items were last updated.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*updated_at\\[after\\] = \"1243545465\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1243545465",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "attached_item" : {
                            "$ref" : "#/components/schemas/AttachedItem",
                            "description" : "Resource object representing attached_item"
                          }
                        },
                        "required" : [ "attached_item" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create an attached item",
        "description" : "Creates an attached addon or a charge item for a plan.\n",
        "operationId" : "create_an_attached_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "item_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The id of the addon or charge that is being attached to the plan-item.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The type of attachment for the addon. Only applicable for addon-items and is a required parameter as well for addon-items.</p>\n* recommended - <p class=\"mb-2\">The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a>\nor <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>\n.</p>\n* optional - <p class=\"mb-2\">The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nfor the addon, for when it is applied to subscriptions with the plan.</p>\n* mandatory - <p class=\"mb-2\">The addon is attached automatically to the subscription for the plan-item unless <a href=\"/docs/api/subscriptions\">explicitly removed</a>\nvia API.</p>",
                    "enum" : [ "recommended", "mandatory", "optional" ],
                    "example" : null
                  },
                  "billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles for which this item is attached when applied to a subscription. Applicable only for items of type addon. Requires <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">addon billing cycles</a>\nto be enabled for the site.</p>\n<p class=\"mb-2\">The value set explicitly for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nwhile <a href=\"/docs/api/subscriptions/subscription-object#subscription_items\">applying the addon to a subscription</a>\ntakes precedence over this parameter. This parameter, in turn, has a higher precedence than <a href=\"/docs/api/item_prices\">the value set for the addon-item price</a>\n.</p>",
                    "minimum" : 1,
                    "example" : null
                  },
                  "quantity" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The default quantity of the addon to be attached when the quantity is not specified while [creating](/docs/api/subscriptions/create-subscription-for-items)\n/[updating](/docs/api/subscriptions/update-subscription-for-items)\nthe subscription.\n",
                    "minimum" : 1,
                    "example" : null
                  },
                  "quantity_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The decimal representation of the quantity of the addon. Returned for quantity-based addons when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                    "maxLength" : 33,
                    "example" : null
                  },
                  "charge_on_event" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates when the item is charged. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* on_demand - <p class=\"mb-2\">Item can be charged on demand</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>",
                    "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
                    "example" : null
                  },
                  "charge_once" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/business_entities\">business entity</a> for this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">attached_item</code>. This is applicable only when multiple business entities have been created for the site. When provided, the operation will read or write data associated with the specified business entity. If not provided, the resource will be created at the site level, and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> will not be included in the API response.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: An alternative way of passing this parameter is by using a <a href=\"/docs/api/advanced-features\">custom HTTP header</a> or <a href=\"/docs/api/advanced-features#mbe-alternative\">query string parameter</a>.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "item_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "attached_item" : {
                      "$ref" : "#/components/schemas/AttachedItem",
                      "description" : "<p class=\"mb-2\">Resource object representing attached_item</p>"
                    }
                  },
                  "required" : [ "attached_item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/attached_items/{attached-item-id}/delete" : {
      "post" : {
        "summary" : "Delete an attached item",
        "description" : "Deletes an attached addon or a charge item.\n",
        "operationId" : "delete_an_attached_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "attached-item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/attached-item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parent_item_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The id of the addon or charge that is being attached to the plan-item.\n",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "required" : [ "parent_item_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "attached_item" : {
                      "$ref" : "#/components/schemas/AttachedItem",
                      "description" : "<p class=\"mb-2\">Resource object representing attached_item</p>"
                    }
                  },
                  "required" : [ "attached_item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/differential_prices/{differential-price-id}/delete" : {
      "post" : {
        "summary" : "Delete a differential price",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Delete a differential price using a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">differential_price_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p></div>",
        "operationId" : "delete_a_differential_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "differential-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/differential-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "item_price_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The id of the item price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>\n) whose price should change according to the plan-item it is applied to.</p>",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "required" : [ "item_price_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "differential_price" : {
                      "$ref" : "#/components/schemas/DifferentialPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing differential_price</p>"
                    }
                  },
                  "required" : [ "differential_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/item_prices/{item-price-id}/differential_prices" : {
      "post" : {
        "summary" : "Create a differential price",
        "description" : "Create a differential price for addon item price, addon item price with tiered pricing, or charge item price.\n",
        "operationId" : "create_a_differential_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parent_item_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The id of the plan-item, in relation to which, the differential pricing for the addon or charge is defined. For example, this would be the id of the *Standard*\nor *Enterprise*\nplans-items mentioned in the [examples above](/docs/api/differential_prices)\n.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "price" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The differential price. If the pricing model of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiers</code>\ninstead of this.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "price_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The price of the item when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                    "maxLength" : 39,
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/business_entities\">business entity</a> for this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">differential_price</code>. This is applicable only when multiple business entities have been created for the site. When provided, the operation will read or write data associated with the specified business entity. If not provided, the resource will be created at the site level, and the business_entity_id will not be included in the API response.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: An alternative way of passing this parameter is by using a <a href=\"/docs/api/advanced-features\">custom HTTP header</a> or <a href=\"/docs/api/advanced-features#mbe-alternative\">query string parameter</a>.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "parent_periods" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for parent_periods\n",
                    "properties" : {
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The billing period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ns. For example, a 6 month plan has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nas 6 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nFor a <a href=\"/docs/api/item_prices\">charge-item price</a>,</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period_unit]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period]</code> values are <strong class=\"font-semibold\">passed</strong>, then the <a href=\"/docs/api/differential_prices/create-a-differential-price#price\">price</a> is applied to a <strong class=\"font-semibold\">specific</strong> billing frequency of the plan-item.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period_unit]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period]</code> values are <strong class=\"font-semibold\">not passed</strong>, then the <a href=\"/docs/api/differential_prices/create-a-differential-price#price\">price</a> is applied to <strong class=\"font-semibold\">all</strong> billing frequencies of the plan-item.</li>\n<li class=\"text-base leading-relaxed\">When parent_periods[period_unit] is <strong class=\"font-semibold\">passed</strong> (eg. month) and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period]</code> value is <strong class=\"font-semibold\">not passed</strong>, then the price is applied to all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period_unit]</code> (eg. monthly) frequencies of the plan-item. Updating or deleting the <a href=\"/docs/api/differential_prices/create-a-differential-price#price\">price</a> after creation will impact all of its related plan-item frequencies.</li>\n</ul></div>",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "period_unit" ],
                    "example" : null
                  },
                  "tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tiers\n",
                    "properties" : {
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lower limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The upper limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n; the total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the <a href=\"/docs/api/currencies\">minor unit of the currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the addon. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "parent_item_id" ],
                "example" : null
              },
              "encoding" : {
                "parent_periods" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "differential_price" : {
                      "$ref" : "#/components/schemas/DifferentialPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing differential_price</p>"
                    }
                  },
                  "required" : [ "differential_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/differential_prices" : {
      "get" : {
        "summary" : "List differential prices",
        "description" : "Returns a list of differential prices satisfying **all** the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order (latest first).\n",
        "operationId" : "list_differential_prices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "item_price_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The id of the item price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>\n) whose price should change according to the plan-item it is applied to.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">item_price_id[is] = &quot;day-pass-USD&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "day-pass-USD",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "item_id",
          "in" : "query",
          "description" : "optional, string filter\n\nItem Id of Addon / Charge item price for which differential pricing is applied to.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*item_id\\[is\\] = \"day-pass\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "day-pass",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nA unique and immutable id for the differential price. It is auto-generated when the differential price is created.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*id\\[is\\] = \"defcc4f1-f21f-47f4-8019-beddb9beab5f\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "defcc4f1-f21f-47f4-8019-beddb9beab5f",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "parent_item_id",
          "in" : "query",
          "description" : "optional, string filter\n\nThe id of the plan-item, in relation to which, the differential pricing for the addon or charge is defined. For example, this would be the id of the *Standard*\nor *Enterprise*\nplans-items mentioned in the [examples above](/docs/api/differential_prices)\n.\n**Supported operators :**\nis, is_not, starts_with, in, not_in\n\n**Example →**\n*parent_item_id\\[is_not\\] = \"basic\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "basic",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "differential_price" : {
                            "$ref" : "#/components/schemas/DifferentialPrice",
                            "description" : "Resource object representing differential_price"
                          }
                        },
                        "required" : [ "differential_price" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/differential_prices/{differential-price-id}" : {
      "get" : {
        "summary" : "Retrieve a differential price",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Retrieve a differential price using a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">differential_price_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p></div>",
        "operationId" : "retrieve_a_differential_price",
        "parameters" : [ {
          "name" : "item_price_id",
          "in" : "query",
          "description" : "<p class=\"mb-2\">The id of the item price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>\n) whose price should change according to the plan-item it is applied to.</p>",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        }, {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "differential-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/differential-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "differential_price" : {
                      "$ref" : "#/components/schemas/DifferentialPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing differential_price</p>"
                    }
                  },
                  "required" : [ "differential_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a differential price",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Update a differential price using a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">differential_price_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p></div>",
        "operationId" : "update_a_differential_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "differential-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/differential-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "item_price_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The id of the item price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>\n) whose price should change according to the plan-item it is applied to.</p>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "price" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The differential price. If the pricing model of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiers</code>\ninstead of this.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "price_in_decimal" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The price of the item when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                    "maxLength" : 39,
                    "example" : null
                  },
                  "parent_periods" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for parent_periods\n",
                    "properties" : {
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The billing period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ns. For example, a 6 month plan has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nas 6 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nFor a <a href=\"/docs/api/item_prices\">charge-item price</a>,</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period_unit]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period]</code> values are <strong class=\"font-semibold\">passed</strong>, then the <a href=\"/docs/api/differential_prices/create-a-differential-price#price\">price</a> is applied to a <strong class=\"font-semibold\">specific</strong> billing frequency of the plan-item.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period_unit]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period]</code> values are <strong class=\"font-semibold\">not passed</strong>, then the <a href=\"/docs/api/differential_prices/create-a-differential-price#price\">price</a> is applied to <strong class=\"font-semibold\">all</strong> billing frequencies of the plan-item.</li>\n<li class=\"text-base leading-relaxed\">When parent_periods[period_unit] is <strong class=\"font-semibold\">passed</strong> (eg. month) and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period]</code> value is <strong class=\"font-semibold\">not passed</strong>, then the price is applied to all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">parent_periods[period_unit]</code> (eg. monthly) frequencies of the plan-item. Updating or deleting the <a href=\"/docs/api/differential_prices/create-a-differential-price#price\">price</a> after creation will impact all of its related plan-item frequencies.</li>\n</ul></div>",
                        "items" : {
                          "type" : "array",
                          "deprecated" : false,
                          "items" : {
                            "example" : null
                          },
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "period_unit" ],
                    "example" : null
                  },
                  "tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for tiers\n",
                    "properties" : {
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lower limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The upper limit of a range of units for the tier\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n; the total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the <a href=\"/docs/api/currencies\">minor unit of the currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the addon. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "item_price_id" ],
                "example" : null
              },
              "encoding" : {
                "parent_periods" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "differential_price" : {
                      "$ref" : "#/components/schemas/DifferentialPrice",
                      "description" : "<p class=\"mb-2\">Resource object representing differential_price</p>"
                    }
                  },
                  "required" : [ "differential_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/configurations" : {
      "get" : {
        "summary" : "List site configurations",
        "description" : "Returns a list of your domain and product catalog version details.\n",
        "operationId" : "list_site_configurations",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "configurations" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Resource object representing configuration</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/Configuration",
                        "description" : "Resource object representing configuration"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "configurations" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/features" : {
      "get" : {
        "summary" : "List features",
        "description" : "Retrieves a list of features meeting **all**\nthe conditions specified in the filter parameters.\n",
        "operationId" : "list_features",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "name",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">A case-sensitive unique name for the feature. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user license</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">data storage</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Salesforce Integration</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">devices</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">UHD Streaming</code>\n, and so on.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis name is not displayed on any customer-facing documents or pages such as <a href=\"/docs/api/invoices/retrieve-invoice-as-pdf\">invoice PDFs</a>\nor <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nHowever, in the future, it is likely to be introduced on the <a href=\"/docs/api/portal_sessions\">Self-Serve Portal</a>\n.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">name[is] = &quot;User licenses&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "User licenses",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">A unique and immutable identifier for the feature. You can set it yourself, in which case it is recommended that a human-readable format (or slug) be used. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number-of-users-ccjht01</code>.\nWhen not provided, a random value is automatically set.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">id[is] = &quot;fea-user-licenses&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "fea-user-licenses",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe current status of the feature. Possible values are : active, archived, draft.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*status\\[is\\] = \"active\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `active` - A <code>draft</code> or an <code>archived</code> feature can be changed to <code>active</code>. Any <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> defined for the feature take effect immediately.\n* `archived` - An <code>active</code> feature can be changed to <code>archived</code>. Once <code>archived</code>, no <strong>new</strong> <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for the feature. However, any pre-existing item or subscription entitlements from the time that the feature was <code>active</code>, remain effective.\n* `draft` - The feature is in an unpublished state. <a href=\"item_entitlements\">Item</a> and <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for a draft feature but they are not effective until the feature is active. A feature <code>status</code> cannot be changed back to <code>draft</code> once it is in <code>active</code> or <code>archived</code> <code>status</code>.",
                "enum" : [ "active", "archived", "draft" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `active` - A <code>draft</code> or an <code>archived</code> feature can be changed to <code>active</code>. Any <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> defined for the feature take effect immediately.\n* `archived` - An <code>active</code> feature can be changed to <code>archived</code>. Once <code>archived</code>, no <strong>new</strong> <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for the feature. However, any pre-existing item or subscription entitlements from the time that the feature was <code>active</code>, remain effective.\n* `draft` - The feature is in an unpublished state. <a href=\"item_entitlements\">Item</a> and <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for a draft feature but they are not effective until the feature is active. A feature <code>status</code> cannot be changed back to <code>draft</code> once it is in <code>active</code> or <code>archived</code> <code>status</code>.",
                "enum" : [ "active", "archived", "draft" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `active` - A <code>draft</code> or an <code>archived</code> feature can be changed to <code>active</code>. Any <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> defined for the feature take effect immediately.\n* `archived` - An <code>active</code> feature can be changed to <code>archived</code>. Once <code>archived</code>, no <strong>new</strong> <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for the feature. However, any pre-existing item or subscription entitlements from the time that the feature was <code>active</code>, remain effective.\n* `draft` - The feature is in an unpublished state. <a href=\"item_entitlements\">Item</a> and <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for a draft feature but they are not effective until the feature is active. A feature <code>status</code> cannot be changed back to <code>draft</code> once it is in <code>active</code> or <code>archived</code> <code>status</code>.",
                "enum" : [ "active", "archived", "draft" ],
                "pattern" : "^\\[(active|archived|draft)(,(active|archived|draft))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `active` - A <code>draft</code> or an <code>archived</code> feature can be changed to <code>active</code>. Any <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> defined for the feature take effect immediately.\n* `archived` - An <code>active</code> feature can be changed to <code>archived</code>. Once <code>archived</code>, no <strong>new</strong> <a href=\"item_entitlements\">item</a> or <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for the feature. However, any pre-existing item or subscription entitlements from the time that the feature was <code>active</code>, remain effective.\n* `draft` - The feature is in an unpublished state. <a href=\"item_entitlements\">Item</a> and <a href=\"subscription_entitlements\">subscription entitlements</a> can be created for a draft feature but they are not effective until the feature is active. A feature <code>status</code> cannot be changed back to <code>draft</code> once it is in <code>active</code> or <code>archived</code> <code>status</code>.",
                "enum" : [ "active", "archived", "draft" ],
                "pattern" : "^\\[(active|archived|draft)(,(active|archived|draft))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nThe type of feature. Possible values are : switch, custom, quantity, range.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*type\\[is\\] = \"boolean\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "boolean",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "* `switch` - A switch or toggle is a feature that an item or subscription can be either fully entitled to or not entitled to at all.\n* `custom` - The entitlement levels available for this feature are defined as a set of custom values. For example, a feature <code>Email Support</code> can have entitlement levels as <code>24×7</code> and <code>24×5</code>.\n* `quantity` - The feature is quantity-based and entitlement levels available for it are a set of predefined number of quantity units. For example, a feature with <code>name</code> such as <code>number of users</code> can have entitlement levels of say, <code>5</code>, <code>20</code>, <code>50</code>, and <code>100</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.\n* `range` - The feature is quantity-based and the entitlement levels available for it are the set of whole numbers within a range. The range is defined by a minimum and a maximum value. For example, a feature such as <code>number of users</code> can have entitlement levels starting at <code>5</code> users and go up to <code>50000</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.",
                "enum" : [ "switch", "custom", "quantity", "range" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "* `switch` - A switch or toggle is a feature that an item or subscription can be either fully entitled to or not entitled to at all.\n* `custom` - The entitlement levels available for this feature are defined as a set of custom values. For example, a feature <code>Email Support</code> can have entitlement levels as <code>24×7</code> and <code>24×5</code>.\n* `quantity` - The feature is quantity-based and entitlement levels available for it are a set of predefined number of quantity units. For example, a feature with <code>name</code> such as <code>number of users</code> can have entitlement levels of say, <code>5</code>, <code>20</code>, <code>50</code>, and <code>100</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.\n* `range` - The feature is quantity-based and the entitlement levels available for it are the set of whole numbers within a range. The range is defined by a minimum and a maximum value. For example, a feature such as <code>number of users</code> can have entitlement levels starting at <code>5</code> users and go up to <code>50000</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.",
                "enum" : [ "switch", "custom", "quantity", "range" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "* `switch` - A switch or toggle is a feature that an item or subscription can be either fully entitled to or not entitled to at all.\n* `custom` - The entitlement levels available for this feature are defined as a set of custom values. For example, a feature <code>Email Support</code> can have entitlement levels as <code>24×7</code> and <code>24×5</code>.\n* `quantity` - The feature is quantity-based and entitlement levels available for it are a set of predefined number of quantity units. For example, a feature with <code>name</code> such as <code>number of users</code> can have entitlement levels of say, <code>5</code>, <code>20</code>, <code>50</code>, and <code>100</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.\n* `range` - The feature is quantity-based and the entitlement levels available for it are the set of whole numbers within a range. The range is defined by a minimum and a maximum value. For example, a feature such as <code>number of users</code> can have entitlement levels starting at <code>5</code> users and go up to <code>50000</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.",
                "enum" : [ "switch", "custom", "quantity", "range" ],
                "pattern" : "^\\[(switch|custom|quantity|range)(,(switch|custom|quantity|range))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "* `switch` - A switch or toggle is a feature that an item or subscription can be either fully entitled to or not entitled to at all.\n* `custom` - The entitlement levels available for this feature are defined as a set of custom values. For example, a feature <code>Email Support</code> can have entitlement levels as <code>24×7</code> and <code>24×5</code>.\n* `quantity` - The feature is quantity-based and entitlement levels available for it are a set of predefined number of quantity units. For example, a feature with <code>name</code> such as <code>number of users</code> can have entitlement levels of say, <code>5</code>, <code>20</code>, <code>50</code>, and <code>100</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.\n* `range` - The feature is quantity-based and the entitlement levels available for it are the set of whole numbers within a range. The range is defined by a minimum and a maximum value. For example, a feature such as <code>number of users</code> can have entitlement levels starting at <code>5</code> users and go up to <code>50000</code>. <code>levels[is_unlimited]</code> is used for specifying the “unlimited” entitlement level.",
                "enum" : [ "switch", "custom", "quantity", "range" ],
                "pattern" : "^\\[(switch|custom|quantity|range)(,(switch|custom|quantity|range))*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "feature" : {
                            "$ref" : "#/components/schemas/Feature",
                            "description" : "Resource object representing feature"
                          }
                        },
                        "required" : [ "feature" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a feature",
        "description" : "Creates a new feature.\n",
        "operationId" : "create_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A unique and immutable identifier for the feature. You can set it yourself, in which case it is recommended that a human-readable format (or slug) be used. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number-of-users-ccjht01</code>.\nWhen not provided, a random value is automatically set.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A case-sensitive unique name for the feature. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user license</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">data storage</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Salesforce Integration</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">devices</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">UHD Streaming</code>\n, and so on.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis name is not displayed on any customer-facing documents or pages such as <a href=\"/docs/api/invoices/retrieve-invoice-as-pdf\">invoice PDFs</a>\nor <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nHowever, in the future, it is likely to be introduced on the <a href=\"/docs/api/portal_sessions\">Self-Serve Portal</a>\n.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A brief description of the feature. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Access to 10TB cloud storage</code>\n.</p>",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The type of feature.</p>\n* quantity - <p class=\"mb-2\">The feature is quantity-based and entitlement levels available for it are a set of predefined number of quantity units. For example, a feature with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nsuch as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code>\ncan have entitlement levels of say, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[is_unlimited]</code>\nis used for specifying the &quot;unlimited&quot; entitlement level.</p>\n* range - <p class=\"mb-2\">The feature is quantity-based and the entitlement levels available for it are the set of whole numbers within a range. The range is defined by a minimum and a maximum value. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code>\ncan have entitlement levels starting at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>\nusers and go up to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50000</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[is_unlimited]</code>\nis used for specifying the &quot;unlimited&quot; entitlement level.</p>\n* switch - <p class=\"mb-2\">A switch or toggle is a feature that an item or subscription can be either fully entitled to or not entitled to at all.</p>\n* custom - <p class=\"mb-2\">The entitlement levels available for this feature are defined as a set of custom values. For example, a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code>\ncan have entitlement levels as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×7</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×5</code>\n.</p>",
                    "enum" : [ "switch", "custom", "quantity", "range" ],
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The current status of the feature.</p>\n* active - <p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nor an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\nfeature can be changed to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nAny <a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ndefined for the feature take effect immediately.</p>\n* draft - <p class=\"mb-2\">The feature is in an unpublished state. <a href=\"/docs/api/entitlements\">Entitlements</a>\nand <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created for a draft feature but they are not effective until the feature is active. A feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\ncannot be changed back to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nonce it is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>\n* archived - <p class=\"mb-2\">An <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nfeature can be changed to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>.\nOnce <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n, no <strong class=\"font-semibold\">new</strong>\n<a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created for the feature. However, any pre-existing item or subscription entitlements from the time that the feature was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n, remain effective.</p>",
                    "enum" : [ "active", "draft" ],
                    "example" : null
                  },
                  "unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">For features of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this specifies the unit of measure. The value is expected in the singular form and when used by the system, it is pluralized automatically as needed. For example, for a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user licenses</code>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>\ncan be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">license</code>\n.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "levels" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for levels\n",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">A case-sensitive display name for the entitlement level. Provide a name that helps you clearly identify the entitlement level. For example: a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code>\ncan have entitlement levels named as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All weekdays</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All days</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">40 hours per week</code>\nand so on.</p>\n<p class=\"mb-2\">When not provided for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this name is auto-generated as the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nand the pluralized version of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>\n, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].name</code>\nbecomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value denoting the entitlement level granted.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>:</strong> this attribute denotes the quantity of units of the feature for this entitlement level. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code>. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is used to set the entitlement level to &quot;unlimited&quot;.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>:</strong> there can be be only two elements in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> array; one corresponding to the minimum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0]</code>) and the other to the maximum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1]</code>) of the range of possible entitlement levels. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> may have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50000</code>. When the upper limit is &quot;unlimited&quot;, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> is not set and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>:</strong> this attribute denotes the value of this custom entitlement level. For example, a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as one of say, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×7</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×5</code>.</li>\n</ul>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "is_unlimited" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>, this attribute indicates whether the entitlement level corresponds to unlimited units of the feature. Possible values are:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The entitlement level corresponds to unlimited units of the feature. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> is ignored for this level. This can only be set for the level that has the highest value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].level.</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The entitlement level does not correspond to unlimited units of the feature.</li>\n</ul>\n<p class=\"mb-2\">Either this or levels[value] should be passed.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "level" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Represents the order of the entitlement levels from lowest to highest.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>:</strong> Provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code> for the lowest entitlement level as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>, the next higher level as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>, followed by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, and so on.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>:</strong> Provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> for the minimum value and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> for the maximum value in the range.</li>\n</ul>\n<p class=\"mb-2\">When not defined, it is assumed as the index of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> array.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "name" ],
                "example" : null
              },
              "encoding" : {
                "levels" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "feature" : {
                      "$ref" : "#/components/schemas/Feature",
                      "description" : "<p class=\"mb-2\">Resource object representing feature</p>"
                    }
                  },
                  "required" : [ "feature" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/features/{feature-id}/delete" : {
      "post" : {
        "summary" : "Delete a feature",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Deletes a feature. Any entitlements and subscription entitlements defined for the feature are also removed. This action is not permissible when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nof the feature is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n.</p></div>",
        "operationId" : "delete_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "feature" : {
                      "$ref" : "#/components/schemas/Feature",
                      "description" : "<p class=\"mb-2\">Resource object representing feature</p>"
                    }
                  },
                  "required" : [ "feature" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/features/{feature-id}" : {
      "get" : {
        "summary" : "Retrieve a feature",
        "description" : "Retrieve a specific feature using its ID.\n",
        "operationId" : "retrieve_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "feature" : {
                      "$ref" : "#/components/schemas/Feature",
                      "description" : "<p class=\"mb-2\">Resource object representing feature</p>"
                    }
                  },
                  "required" : [ "feature" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a feature",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Updates a specific feature.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The list of objects <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> provided as part of this operation fully replaces the existing list of objects <code><a href=\"/docs/api/features/feature-object#levels\">levels[]</a></code> of the feature.</p></div><h3>Considerations when modifying <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels</code></h3><p class=\"mb-2\">This section describes validations that are performed by Chargebee when modifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels</code> list of objects for the feature, using this operation.</p><h4>Adding <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels</code></h4><p class=\"mb-2\">Adding a new object to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> list is allowed if and only if the feature <code><a href=\"/docs/api/features/feature-object#type\">type</a></code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code></p><h4>Removing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels</code></h4><p class=\"mb-2\">Removing an existing object in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> list is not allowed if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> for that object is currently mapped to one or more <code><a href=\"/docs/api/item_entitlements\">item_entitlement</a></code>s or <code><a href=\"/docs/api/subscription_entitlements\">subscription_entitlement</a></code>s.</p><h4>Reordering <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels</code></h4><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">The validation described in this section is only applicable for features of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code></p></div><p class=\"mb-2\">If any of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> are currently mapped to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>s or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement</code>s, then the relative order of the corresponding <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].level</code> must be preserved when invoking this operation.</p><p class=\"mb-2\">For example, consider that the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> list is currently in the state shown below. (For brevity, only the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code> key are shown here and the JSONs have been compacted.)</p><pre><code class=\"language-js\">\n{\n    &quot;levels&quot;:[{\n        &quot;value&quot;:&quot;email-basic&quot;,\n        &quot;level&quot;:0\n    },{\n        &quot;value&quot;:&quot;email-rise&quot;,\n        &quot;level&quot;:1\n    },{\n        &quot;value&quot;:&quot;email-advanced&quot;,\n        &quot;level&quot;:2\n    },{\n        &quot;value&quot;:&quot;email-pro&quot;,\n        &quot;level&quot;:3\n    },{\n        &quot;value&quot;:&quot;email-scale&quot;,\n        &quot;level&quot;:4\n    }]\n}\n\n</code></pre><p class=\"mb-2\">Now consider that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-rise</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-advanced</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-pro</code> have already been mapped to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>s or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement</code>s. As seen in the above object, the relative order of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].level</code> is such that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-rise</code> &lt; <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-advanced</code> &lt; <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-pro</code>.</p><p class=\"mb-2\">Invoking this API to change <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> to the state below is allowed since the relative order of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code> corresponding to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-rise</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-advanced</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-pro</code> has been preserved.</p><pre><code class=\"language-js\">\n{\n    &quot;levels&quot;:[{\n        &quot;value&quot;:&quot;email-basic&quot;,\n        &quot;level&quot;:0\n    },{\n        &quot;value&quot;:&quot;email-rise&quot;,\n        &quot;level&quot;:1\n    },{\n        &quot;value&quot;:&quot;email-scale&quot;,\n        &quot;level&quot;:2\n    },{\n        &quot;value&quot;:&quot;email-advanced&quot;,\n        &quot;level&quot;:3\n    },{\n        &quot;value&quot;:&quot;email-pro&quot;,\n        &quot;level&quot;:4\n    }]\n}\n\n</code></pre><p class=\"mb-2\">However, changing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> to the state shown below is not permissible because the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-advanced</code> is provided as greater than the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email-pro</code>, thereby disrupting the original order.</p><pre><code class=\"language-js\">\n{\n    &quot;levels&quot;:[{\n        &quot;value&quot;:&quot;email-basic&quot;,\n        &quot;level&quot;:0\n    },{\n        &quot;value&quot;:&quot;email-rise&quot;,\n        &quot;level&quot;:1\n    },{\n        &quot;value&quot;:&quot;email-pro&quot;,\n        &quot;level&quot;:2\n    },{\n        &quot;value&quot;:&quot;email-advanced&quot;,\n        &quot;level&quot;:3\n    },{\n        &quot;value&quot;:&quot;email-scale&quot;,\n        &quot;level&quot;:4\n    }]\n}\n\n</code></pre></div>",
        "operationId" : "update_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : true,
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A case-sensitive unique name for the feature. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user license</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">data storage</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Salesforce Integration</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">devices</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">UHD Streaming</code>\n, and so on.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis name is not displayed on any customer-facing documents or pages such as <a href=\"/docs/api/invoices/retrieve-invoice-as-pdf\">invoice PDFs</a>\nor <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nHowever, in the future, it is likely to be introduced on the <a href=\"/docs/api/portal_sessions\">Self-Serve Portal</a>\n.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A brief description of the feature. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Access to 10TB cloud storage</code>\n.</p>",
                    "maxLength" : 500,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The current status of the feature.</p>\n* active - <p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nor an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\nfeature can be changed to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nAny <a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ndefined for the feature take effect immediately.</p>\n* draft - <p class=\"mb-2\">The feature is in an unpublished state. <a href=\"/docs/api/entitlements\">Entitlements</a>\nand <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created for a draft feature but they are not effective until the feature is active. A feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\ncannot be changed back to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nonce it is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>\n* archived - <p class=\"mb-2\">An <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nfeature can be changed to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>.\nOnce <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n, no <strong class=\"font-semibold\">new</strong>\n<a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created for the feature. However, any pre-existing item or subscription entitlements from the time that the feature was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n, remain effective.</p>",
                    "enum" : [ "active", "archived", "draft" ],
                    "example" : null
                  },
                  "unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">For features of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this specifies the unit of measure. The value is expected in the singular form and when used by the system, it is pluralized automatically as needed. For example, for a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user licenses</code>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>\ncan be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">license</code>\n.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "levels" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for levels\n",
                    "properties" : {
                      "name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">A case-sensitive display name for the entitlement level. Provide a name that helps you clearly identify the entitlement level. For example: a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code>\ncan have entitlement levels named as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All weekdays</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All days</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">40 hours per week</code>\nand so on.</p>\n<p class=\"mb-2\">When not provided for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this name is auto-generated as the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nand the pluralized version of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>\n, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].name</code>\nbecomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value denoting the entitlement level granted.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>:</strong> this attribute denotes the quantity of units of the feature for this entitlement level. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code>. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is used to set the entitlement level to &quot;unlimited&quot;.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>:</strong> there can be only two elements in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> array; one corresponding to the minimum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0]</code>) and the other to the maximum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1]</code>) of the range of possible entitlement levels. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> may have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50000</code>. When the upper limit is &quot;unlimited&quot;, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> is not set and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>:</strong> this attribute denotes the value of this custom entitlement level. For example, a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as one of say, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×7</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×5</code>.</li>\n</ul>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">This must be provided exactly as it already exists for the feature if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is currently mapped to an <code><a href=\"/docs/api/entitlements\">entitlement</a></code>s or <code><a href=\"/docs/api/subscription_entitlements\">subscription_entitlement</a></code>s.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "is_unlimited" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>, this attribute indicates whether the entitlement level corresponds to unlimited units of the feature. Possible values are:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The entitlement level corresponds to unlimited units of the feature. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> is ignored for this level. This can only be set for the level that has the highest value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].level.</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The entitlement level does not correspond to unlimited units of the feature.</li>\n</ul>\n<p class=\"mb-2\">Either this or levels[value] should be passed.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "level" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Represents the order of the entitlement levels from lowest to highest.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>:</strong> Provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code> for the lowest entitlement level as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>, the next higher level as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>, followed by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, and so on.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>:</strong> Provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code> for the lowest entitlement level as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>, the next higher level as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>, followed by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, and so on. <strong class=\"font-semibold\">Note:</strong> There are some validations to be considered.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>:</strong> Provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> for the minimum value and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> for the maximum value in the range.</li>\n</ul>\n<p class=\"mb-2\">When not defined, it is assumed as the index of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> array.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "levels" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "feature" : {
                      "$ref" : "#/components/schemas/Feature",
                      "description" : "<p class=\"mb-2\">Resource object representing feature</p>"
                    }
                  },
                  "required" : [ "feature" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/features/{feature-id}/archive_command" : {
      "post" : {
        "summary" : "Archive a feature",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Archives an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nfeature so that no <strong class=\"font-semibold\">new</strong>\n<a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created towards the feature. Any pre-existing item or subscription entitlements from the time that the feature was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nremain effective. This operation changes the <code><a href=\"/docs/api/features/feature-object#status\">status</a></code>\nof the feature to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n. The feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nmust be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nwhen calling this endpoint.</p></div>",
        "operationId" : "archive_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "feature" : {
                      "$ref" : "#/components/schemas/Feature",
                      "description" : "<p class=\"mb-2\">Resource object representing feature</p>"
                    }
                  },
                  "required" : [ "feature" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/features/{feature-id}/activate_command" : {
      "post" : {
        "summary" : "Activate a feature",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Activates a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nfeature so that any <a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ndefined towards it take effect immediately. This operation changes the <code><a href=\"/docs/api/features/feature-object#status\">status</a></code>\nof the feature to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n. The feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nmust be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nwhen calling this endpoint.</p></div>",
        "operationId" : "activate_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "feature" : {
                      "$ref" : "#/components/schemas/Feature",
                      "description" : "<p class=\"mb-2\">Resource object representing feature</p>"
                    }
                  },
                  "required" : [ "feature" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/features/{feature-id}/reactivate_command" : {
      "post" : {
        "summary" : "Reactivate a feature",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Reactivates an archived feature so that <strong class=\"font-semibold\">new</strong>\n<a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created towards the feature. This operation changes the <code><a href=\"/docs/api/features/feature-object#status\">status</a></code>\nof the feature to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n. The feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nmust be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\nwhen calling this endpoint.</p></div>",
        "operationId" : "reactivate_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "feature" : {
                      "$ref" : "#/components/schemas/Feature",
                      "description" : "<p class=\"mb-2\">Resource object representing feature</p>"
                    }
                  },
                  "required" : [ "feature" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/subscription_entitlements/set_availability" : {
      "post" : {
        "summary" : "Enable or disable subscription entitlements",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Enables or disables specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlements</code> for a subscription.</p></div>",
        "operationId" : "enable_or_disable_subscription_entitlements",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "is_enabled" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies whether the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlements</code>\nare to be enabled or disabled.</p>",
                    "example" : null
                  },
                  "subscription_entitlements" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_entitlements\n",
                    "properties" : {
                      "feature_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the feature towards which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement</code>\nis to be enabled or disabled. An error is returned if a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement</code>\ndoes not exist for the feature.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "feature_id" ],
                    "example" : null
                  }
                },
                "required" : [ "is_enabled" ],
                "example" : null
              },
              "encoding" : {
                "subscription_entitlements" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "subscription_entitlement" : {
                            "$ref" : "#/components/schemas/SubscriptionEntitlement",
                            "description" : "Resource object representing subscription_entitlement"
                          }
                        },
                        "required" : [ "subscription_entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/subscription_entitlements" : {
      "get" : {
        "summary" : "List subscription entitlements",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Retrieves the list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlements</code> for the <a href=\"/docs/api/subscriptions\">subscription</a>.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">components</code> attribute is not returned for any of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlements</code>. Use the retrieve operation(coming soon) to obtain the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">components</code>.</p></div></div>",
        "operationId" : "list_subscription_entitlements",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "subscription_entitlement" : {
                            "$ref" : "#/components/schemas/SubscriptionEntitlement",
                            "description" : "Resource object representing subscription_entitlement"
                          }
                        },
                        "required" : [ "subscription_entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/customer_entitlements" : {
      "get" : {
        "summary" : "List customer entitlements",
        "description" : "<div class=\"api-description\"><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Disabled by default</strong></p><p class=\"mb-2\">This endpoint is disabled by default. To enable it, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong></p><p class=\"mb-2\">To retrieve subscription entitlements for a specific subscription, use the <a href=\"/docs/api/subscription_entitlements/list-subscription-entitlements\">List subscription entitlements API</a>.</p></div><p class=\"mb-2\">Returns a list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> objects for the specified customer. The entitlements returned are for <em class=\"italic\">active</em> subscriptions only. Specifically, these are subscriptions with a <a href=\"/docs/api/subscriptions/subscription-object#status\">status</a> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</p><div id=\"pagination\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#pagination-content\" aria-expanded=\"false\" aria-controls=\"pagination-content\">Pagination<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"pagination-content\"><p class=\"mb-2\"><a href=\"/docs/api/list-ops#pagination\">Pagination</a> works differently for this endpoint than other List endpoints in the Billing API. In other list endpoints, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limit</code> parameter sets the limit on the total number of objects returned in the response. However, in this endpoint, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limit</code> parameter defines the number of features for which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> objects are returned. For example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limit</code> = n, then all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> objects for up to n features are returned.</p><p class=\"mb-2\">Let&#x27;s look at an example:</p><h4>Features</h4><p class=\"mb-2\">Consider the following three features defined in Chargebee for a project management software:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">User Licenses</li>\n<li class=\"text-base leading-relaxed\">Support Level</li>\n<li class=\"text-base leading-relaxed\">Xero Integration</li>\n</ul><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> objects are listed below:</p><h5>Feature 1</h5><pre><code class=\"language-js\">\n{\n    &quot;feature&quot;: {\n        &quot;id&quot;: &quot;user-licenses&quot;,\n        &quot;name&quot;: &quot;User Licenses&quot;,\n        &quot;description&quot;: &quot;Maximum number of user licenses allowed.&quot;,\n        &quot;status&quot;: &quot;active&quot;,\n        &quot;type&quot;: &quot;quantity&quot;,\n        &quot;unit&quot;: &quot;licence&quot;,\n        &quot;levels&quot;: [\n            {\n                &quot;name&quot;: &quot;3 licences&quot;,\n                &quot;value&quot;: &quot;3&quot;,\n                &quot;is_unlimited&quot;: false,\n                &quot;level&quot;: 1\n            },\n            {\n                &quot;name&quot;: &quot;10 licences&quot;,\n                &quot;value&quot;: &quot;10&quot;,\n                &quot;is_unlimited&quot;: false,\n                &quot;level&quot;: 2\n            },\n            {\n                &quot;name&quot;: &quot;25 licences&quot;,\n                &quot;value&quot;: &quot;25&quot;,\n                &quot;is_unlimited&quot;: false,\n                &quot;level&quot;: 3\n            },\n            {\n                &quot;name&quot;: &quot;Unlimited licence&quot;,\n                &quot;value&quot;: &quot;Unlimited&quot;,\n                &quot;is_unlimited&quot;: true,\n                &quot;level&quot;: 4\n            }\n        ],\n        &quot;object&quot;: &quot;feature&quot;\n    }\n}\n\n</code></pre><h5>Feature 2</h5><pre><code class=\"language-js\">\n{\n    &quot;feature&quot;: {\n        &quot;id&quot;: &quot;support-level&quot;,\n        &quot;name&quot;: &quot;Support Level&quot;,\n        &quot;description&quot;: &quot;Level of support offered.&quot;,\n        &quot;status&quot;: &quot;active&quot;,\n        &quot;type&quot;: &quot;custom&quot;,\n        &quot;levels&quot;: [\n            {\n                &quot;name&quot;: &quot;Email&quot;,\n                &quot;value&quot;: &quot;Email&quot;,\n                &quot;is_unlimited&quot;: false,\n                &quot;level&quot;: 1\n            },\n            {\n                &quot;name&quot;: &quot;Chat&quot;,\n                &quot;value&quot;: &quot;Chat&quot;,\n                &quot;is_unlimited&quot;: false,\n                &quot;level&quot;: 2\n            },\n            {\n                &quot;name&quot;: &quot;Calls&quot;,\n                &quot;value&quot;: &quot;Calls&quot;,\n                &quot;is_unlimited&quot;: false,\n                &quot;level&quot;: 3\n            }\n        ],\n        &quot;object&quot;: &quot;feature&quot;\n    }\n}\n\n</code></pre><h5>Feature 3</h5><pre><code class=\"language-js\">\n{\n    &quot;feature&quot;: {\n        &quot;id&quot;: &quot;xero-integration&quot;,\n        &quot;name&quot;: &quot;Xero Integration&quot;,\n        &quot;description&quot;: &quot;Integrate your Chargebee site with Xero&quot;,\n        &quot;status&quot;: &quot;active&quot;,\n        &quot;type&quot;: &quot;switch&quot;,\n        &quot;object&quot;: &quot;feature&quot;\n    }\n}\n\n</code></pre><h5>Subscriptions</h5><p class=\"mb-2\">Now consider that a customer <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">c1</code> has two subscriptions: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s1</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s2</code>.</p><h5>Subscription entitlements</h5><p class=\"mb-2\">Consider the following subscription entitlements for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s1</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s2</code>:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\"><thead><tr><th>Subscription id</th><th>Feature Name</th><th>Entitlement Value</th></tr></thead><tbody><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">User Licenses</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Support Level</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">User Licenses</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Support Level</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Chat</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">s2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Xero Integration</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></td></tr></tbody></table></div><h5>API responses</h5><p class=\"mb-2\">API calls to this endpoint work as follows:</p><h6>First call</h6><p class=\"mb-2\">Consider the first call with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limit</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>.</p><pre><code class=\"language-js\">\nGET /api/v2/customers/c1/customer_entitlements?limit=2\n\n</code></pre><h6>Response</h6><pre><code class=\"language-js\">\n{\n    &quot;list&quot;: [\n        {\n            &quot;customer_entitlement&quot;: {\n                &quot;customer_id&quot;: &quot;c1&quot;,\n                &quot;subscription_id&quot;: &quot;s1&quot;,\n                &quot;feature_id&quot;: &quot;user-licenses&quot;,\n                &quot;value&quot;: &quot;3&quot;,\n                &quot;name&quot;: &quot;3 licences&quot;,\n                &quot;is_enabled&quot;: true,\n                &quot;object&quot;: &quot;customer_entitlement&quot;\n            }\n        },\n        {\n            &quot;customer_entitlement&quot;: {\n                &quot;customer_id&quot;: &quot;c1&quot;,\n                &quot;subscription_id&quot;: &quot;s2&quot;,\n                &quot;feature_id&quot;: &quot;xero-integration&quot;,\n                &quot;value&quot;: &quot;true&quot;,\n                &quot;name&quot;: &quot;Available&quot;,\n                &quot;is_enabled&quot;: true,\n                &quot;object&quot;: &quot;customer_entitlement&quot;\n            }\n        },\n        {\n            &quot;customer_entitlement&quot;: {\n                &quot;customer_id&quot;: &quot;c1&quot;,\n                &quot;subscription_id&quot;: &quot;s2&quot;,\n                &quot;feature_id&quot;: &quot;user-licenses&quot;,\n                &quot;value&quot;: &quot;10&quot;,\n                &quot;name&quot;: &quot;10 licences&quot;,\n                &quot;is_enabled&quot;: true,\n                &quot;object&quot;: &quot;customer_entitlement&quot;\n            }\n        }\n    ],\n    &quot;next_offset&quot;: &quot;2&quot;\n}\n\n</code></pre><p class=\"mb-2\">Since <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, the API returns the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> for two features: <strong class=\"font-semibold\">User Licenses</strong> and <strong class=\"font-semibold\">Xero Integration</strong>. Three objects are returned, corresponding to rows 1, 3, and 5 in the table above.</p><h6>Second call</h6><p class=\"mb-2\">We now retrieve the next page of the list in the second call by setting <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code> to the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code> obtained from the previous response.</p><pre><code class=\"language-js\">\n    GET /api/v2/customers/c1/customer_entitlements?limit=2&amp;offset=2\n\n</code></pre><h6>Response</h6><pre><code class=\"language-js\">\n{\n    &quot;list&quot;: [\n        {\n            &quot;customer_entitlement&quot;: {\n                &quot;customer_id&quot;: &quot;c1&quot;,\n                &quot;subscription_id&quot;: &quot;s1&quot;,\n                &quot;feature_id&quot;: &quot;support-level&quot;,\n                &quot;value&quot;: &quot;Email&quot;,\n                &quot;name&quot;: &quot;Email&quot;,\n                &quot;is_enabled&quot;: true,\n                &quot;object&quot;: &quot;customer_entitlement&quot;\n            }\n        },\n        {\n            &quot;customer_entitlement&quot;: {\n                &quot;customer_id&quot;: &quot;c1&quot;,\n                &quot;subscription_id&quot;: &quot;s2&quot;,\n                &quot;feature_id&quot;: &quot;support-level&quot;,\n                &quot;value&quot;: &quot;Chat&quot;,\n                &quot;name&quot;: &quot;Chat&quot;,\n                &quot;is_enabled&quot;: true,\n                &quot;object&quot;: &quot;customer_entitlement&quot;\n            }\n        }\n    ]\n}\n\n</code></pre><p class=\"mb-2\">Although <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> objects for only one more feature, namely, Support Level are returned because the remaining were covered in the previous page. No more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> objects remain for the customer, as indicated by the absence of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code> attribute in the response. The returned objects in this last call correspond to rows 2 and 4 in the table above.</p></div></div></div>",
        "operationId" : "list_customer_entitlements",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "<p class=\"mb-2\">The number of features for which to return <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code>\nobjects.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong>\n<a href=\"/docs/api/customer_entitlements\">Pagination for List customer entitlements</a>.</p></div>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "consolidate_entitlements",
          "in" : "query",
          "description" : "<p class=\"mb-2\">When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the response returns a unified view of entitlement values for each feature across the customer. This includes entitlements assigned directly to the customer as well as those inherited from any of the customer&#x27;s subscriptions. In this mode, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>\nfield is omitted from the response objects. The consolidated entitlement value is derived using the same logic described in the <a href=\"/docs/api/subscription_entitlements\">Subscription Entitlements documentation</a>\n, based on the feature type.</p>",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "customer_entitlement" : {
                            "$ref" : "#/components/schemas/CustomerEntitlement",
                            "description" : "Resource object representing customer_entitlement"
                          }
                        },
                        "required" : [ "customer_entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/features/{feature-id}/item_entitlements" : {
      "get" : {
        "summary" : "List item entitlements for a feature",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThis operation is deprecated and no longer maintained. Migrate your integration to <a href=\"/docs/api/entitlements/list-all-entitlements\">List entitlements</a>.</p></div><p class=\"mb-2\">Retrieves a list of all the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\ns for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>\nspecified.</p></div>",
        "operationId" : "list_item_entitlements_for_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item_entitlement" : {
                            "$ref" : "#/components/schemas/ItemEntitlement",
                            "description" : "Resource object representing item_entitlement"
                          }
                        },
                        "required" : [ "item_entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Upsert or remove item entitlements for a feature",
        "description" : "<div class=\"api-description\"><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThis operation is deprecated and no longer maintained. Migrate your integration to <a href=\"/docs/api/entitlements/upsert-or-remove-entitlements-for-a-feature\">Manage entitlements</a>.</p></div><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>\nThis operation is not supported when <a href=\"/docs/api/entitlements\">grandfathering</a> is enabled.</p></div><p class=\"mb-2\">Upserts or removes a set of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>s for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> depending on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action</code> specified. The API returns the upserted or deleted <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlements</code> after successfully completing the operation. The operation returns an error when the first <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code> fails to be processed. Either all the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>s provided in the request are processed or none.</p></div>",
        "operationId" : "upsert_or_remove_item_entitlements_for_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "feature-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/feature-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The specific action to be performed for each <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nspecified.</p>\n* remove - <p class=\"mb-2\">Deletes the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\ncombination, if it exists.</p>\n* upsert - <p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nalready exists for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\ncombination, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nis updated. If it doesn&#x27;t exist, a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitelment</code>\nis created.</p>",
                    "enum" : [ "upsert", "remove" ],
                    "example" : null
                  },
                  "item_entitlements" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_entitlements\n",
                    "properties" : {
                      "item_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nto which this entitlement belongs.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nto which this entitlement belongs.</p>\n* plan - <p class=\"mb-2\">Plan</p>\n* item - <p class=\"mb-2\">Item</p>\n* subscription - <p class=\"mb-2\">Subscription</p>\n* addon - <p class=\"mb-2\">Addon</p>\n* charge - <p class=\"mb-2\">Charge</p>",
                          "enum" : [ "plan", "addon", "charge", "subscription", "item" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The level of entitlement that the item has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can also be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][1]</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, then the value is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">available</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n</li>\n</ul>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_id" ],
                    "example" : null
                  }
                },
                "required" : [ "action" ],
                "example" : null
              },
              "encoding" : {
                "item_entitlements" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item_entitlement" : {
                            "$ref" : "#/components/schemas/ItemEntitlement",
                            "description" : "Resource object representing item_entitlement"
                          }
                        },
                        "required" : [ "item_entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/items/{item-id}/item_entitlements" : {
      "get" : {
        "summary" : "List item entitlements for an item",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThis operation is deprecated and no longer maintained. Migrate your integration to <a href=\"/docs/api/entitlements/list-all-entitlements\">List entitlements</a>.</p></div><p class=\"mb-2\">Retrieves a list of all the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlements</code>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nspecified.</p></div>",
        "operationId" : "list_item_entitlements_for_an_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item_entitlement" : {
                            "$ref" : "#/components/schemas/ItemEntitlement",
                            "description" : "Resource object representing item_entitlement"
                          }
                        },
                        "required" : [ "item_entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Upsert or remove item entitlements for an item",
        "description" : "<div class=\"api-description\"><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThis operation is deprecated and no longer maintained. Migrate your integration to <a href=\"/docs/api/entitlements/upsert-or-remove-entitlements-for-a-feature\">Manage entitlements</a>.</p></div><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong>\nThis operation is not supported when <a href=\"/docs/api/entitlements\">grandfathering</a> is enabled.</p></div><p class=\"mb-2\">Upserts or removes a set of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlements</code> for an <code><a href=\"/docs/api/items\">item</a></code> depending on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action</code> specified. The API returns the upserted or deleted <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlements</code> after successfully completing the operation. The operation returns an error when the first <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code> fails to be processed. Either all the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>s provided in the request are processed or none.</p></div>",
        "operationId" : "upsert_or_remove_item_entitlements_for_an_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The specific action to be performed for each <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nspecified.</p>\n* remove - <p class=\"mb-2\">Deletes the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\ncombination, if it exists.</p>\n* upsert - <p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nalready exists for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\ncombination, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>\nis updated. If it doesn&#x27;t exist, a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitelment</code>\nis created.</p>",
                    "enum" : [ "upsert", "remove" ],
                    "example" : null
                  },
                  "item_entitlements" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_entitlements\n",
                    "properties" : {
                      "feature_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the feature towards which this entitlement has been granted.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The level of entitlement that the item has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can also be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][1]</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, then the value is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">available</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n</li>\n</ul>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "feature_id" ],
                    "example" : null
                  }
                },
                "required" : [ "action" ],
                "example" : null
              },
              "encoding" : {
                "item_entitlements" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "item_entitlement" : {
                            "$ref" : "#/components/schemas/ItemEntitlement",
                            "description" : "Resource object representing item_entitlement"
                          }
                        },
                        "required" : [ "item_entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/entitlements" : {
      "get" : {
        "summary" : "List entitlements",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Retrieves a list of all the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>s associated with the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>.</p></div>",
        "operationId" : "list_all_entitlements",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "feature_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the feature associated with this entitlement.\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">feature_id[is] = &quot;user-licenses&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "user-licenses",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "entity_type",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity</code>\nto which this entitlement belongs. Possible values are : plan, addon, charge, plan_price, addon_price.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, in, not_in, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">entity_type[in] = &quot;plan_price&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "plan_price",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - Plan \\* \\`addon\\` - Addon \\* \\`charge\\` - Charge \\* \\`plan_price\\` - Plan Price \\* \\`addon_price\\` - Addon Price\n",
                "enum" : [ "plan", "addon", "charge", "plan_price", "addon_price" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - Plan \\* \\`addon\\` - Addon \\* \\`charge\\` - Charge \\* \\`plan_price\\` - Plan Price \\* \\`addon_price\\` - Addon Price\n",
                "enum" : [ "plan", "addon", "charge", "plan_price", "addon_price" ],
                "pattern" : "^\\[(plan|addon|charge|plan_price|addon_price)(,(plan|addon|charge|plan_price|addon_price))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "entity_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity</code>\nto which this entitlement belongs. .\n<strong class=\"font-semibold\">Supported operators :</strong>\nis, is_not, starts_with, in, not_in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">entity_id[in] = &quot;usd-professional-monthly&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "usd-professional-monthly",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "entitlement" : {
                            "$ref" : "#/components/schemas/Entitlement",
                            "description" : "Resource object representing entitlement"
                          }
                        },
                        "required" : [ "entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Manage entitlements for a feature",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Create, update, or remove a set of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>s for a feature.</p><p class=\"mb-2\">The behavior depends on the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action</code>. It tries to create, update, or delete <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code> objects. If any of the entitlement objects fail to process, the entire operation stops with an error, and no entitlements are processed. In essence, the request processes either all the provided entitlements or none of them.</p><h3><span id=\"grandfathering\">Grandfathering in entitlements</span></h3><blockquote>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Early Access</strong></p>\n<p class=\"mb-2\">Grandfathering in entitlements is in early access. Write to <a href=\"mailto:eap@chargebee.com\" class=\"text-blue-600 hover:text-blue-800 underline\">eap@chargebee.com</a> to get this enabled.</p>\n</blockquote><p class=\"mb-2\">By default, this operation impacts all <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscriptions</a> that contain the item or item price. However, if you set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_grandfathering</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the existing subscriptions are not impacted by the change.</p><h4>Example</h4><p class=\"mb-2\">Consider the following example:</p><h5>On January 1st</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">You have a <a href=\"/docs/api/item_prices/item_price-object#item_type\" class=\"text-blue-600 hover:text-blue-800 underline\">plan price</a> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code>) entitled to a <a href=\"/docs/api/features\" class=\"text-blue-600 hover:text-blue-800 underline\">feature</a> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code>) at <a href=\"/docs/api/features/feature-object#levels\" class=\"text-blue-600 hover:text-blue-800 underline\">value</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code>.</li>\n<li class=\"text-base leading-relaxed\">You have a subscription (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code>) that contains the plan price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code>).</li>\n</ul><h5>On January 2nd</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Using this API operation, you change the entitlement level of the plan price <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>. You also set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_grandfathering</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\">After the API operation completes, you <a href=\"/docs/api/subscriptions/create-subscription-for-items\" class=\"text-blue-600 hover:text-blue-800 underline\">create a new subscription</a> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">6oqNGUlMd9Yn4Ui</code>) that contains the same plan price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code>).</li>\n<li class=\"text-base leading-relaxed\">The existing subscription (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code>) is  <a href=\"https://en.wikipedia.org/wiki/Grandfather_clause\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">grandfathered in</a>, so it continues to be entitled to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code>. The new subscription (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">6oqNGUlMd9Yn4Ui</code>) is entitled to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>.</li>\n</ul><h5>On January 3rd</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Using this API operation, you change the entitlement level of the plan price <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">30</code>. You also set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_grandfathering</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n<li class=\"text-base leading-relaxed\">After the API operation completes, you create another subscription (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">99CRh8UgMXTq77tl</code>) that contains the same plan price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code>).</li>\n<li class=\"text-base leading-relaxed\">Because grandfathering was not enabled, all three subscriptions (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">6oqNGUlMd9Yn4Ui</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">99CRh8UgMXTq77tl</code>) are now entitled to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">30</code>.</li>\n</ul></div>",
        "operationId" : "upsert_or_remove_entitlements_for_a_feature",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The specific action to be performed for each <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>\nspecified.</p>\n* upsert - <p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>\nalready exists for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\ncombination, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>\nis updated. If it doesn&#x27;t exist, a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>\nis created.</p>\n* remove - <p class=\"mb-2\">Deletes the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\ncombination, if it exists.</p>",
                    "enum" : [ "upsert", "remove" ],
                    "example" : null
                  },
                  "change_reason" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Comments or reason for this entitlement change.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "entitlements" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for entitlements\n",
                    "properties" : {
                      "entity_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the entity being granted entitlement to a specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nIn the case of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">upsert</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action</code>, if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code> resource does not already exist, Chargebee does not validate this ID to confirm its correspondence to an existing entity. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code> is created regardless.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "feature_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> to which the entity gains entitlement.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The type of the entity that holds this entitlement.</p>\n* plan - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <code><a href=\"/docs/api/items/item-object#type\">type</a></code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p>\n* addon_price - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> associated with an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <code><a href=\"/docs/api/items/item-object#type\">type</a></code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n* charge - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nwith <code><a href=\"/docs/api/items/item-object#type\">type</a></code>\nset to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>\n.</p>\n* addon - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <code><a href=\"/docs/api/items/item-object#type\">type</a></code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n* plan_price - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> associated with an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> of <code><a href=\"/docs/api/items/item-object#type\">type</a></code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p>",
                          "enum" : [ "plan", "addon", "charge", "plan_price", "addon_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The level of entitlement that the entity has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][1]</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, then the value is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">available</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n</li>\n</ul>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_grandfathering" : {
                        "type" : "array",
                        "description" : "<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Early Access</strong></p><p class=\"mb-2\"><a href=\"/docs/api/entitlements\">Grandfathering support</a> for entitlements is in early access. Write to <a href=\"mailto:eap@chargebee.com\">eap@chargebee.com</a> to get this enabled.</p></div>\n<p class=\"mb-2\">Determines whether to <a href=\"/docs/api/entitlements\">grandfather in</a> existing subscriptions affected by this entitlement.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: Existing subscriptions that contain this entity as one of the <a href=\"/docs/api/subscriptions/subscription-object#subscription_items\">subscription items</a>, are not mapped to this value of the entitlement; their currently mapped value for this entitlement are retained. New subscriptions created in the future that contain this entity, or existing subscriptions updated in the future to include this entity, are mapped to this value of the entitlement.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: All subscriptions that contain this entity are mapped to this version of the entitlement.</li>\n</ul>",
                        "items" : {
                          "type" : "boolean",
                          "default" : false,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "entity_id", "feature_id" ],
                    "example" : null
                  }
                },
                "required" : [ "action" ],
                "example" : null
              },
              "encoding" : {
                "entitlements" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "entitlement" : {
                            "$ref" : "#/components/schemas/Entitlement",
                            "description" : "Resource object representing entitlement"
                          }
                        },
                        "required" : [ "entitlement" ],
                        "example" : null
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/in_app_subscriptions/{in-app-subscription-app-id}/retrieve" : {
      "post" : {
        "summary" : "Retrieve Store Subscription",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-mobile-subscriptions\"></span><p class=\"mb-2\">This API verifies the application id <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">receipt</code> then returns the subscription details associated with the purchase.</p><h4>Path Parameter</h4><div class=\"cb-list cb-list-action \"><div class=\"cb-list-item\"><samp id=\"import_subscription_without_receipt_in_app_subscription_app_id\"><p class=\"mb-2\">in_app_subscription_app_id</p></samp></div><div class=\"cb-list-desc\"><dfn class=\"text-muted\"><p class=\"mb-2\">required, string</p></dfn><p class=\"mb-2\">The handle is created by Chargebee for your Apple App Store or Google Play Store app. It can be obtained from the Chargebee web app.\nThe following are instructions to obtain the value of the path parameter for the Apple App Store and Google Play Store.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Apple App Store</strong>: To obtain the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>, click <strong class=\"font-semibold\">View Keys</strong> within the <strong class=\"font-semibold\">Sync Overview</strong> page of the web app and use the value of generated <strong class=\"font-semibold\">App ID</strong> for this parameter. See detailed steps <a href=\"https://www.chargebee.com/docs/1.0/mobile-app-store-product-iap.html#resource-id\" target=\"_blank\">here</a>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Google Play Store</strong>: To obtain the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>, click <strong class=\"font-semibold\">Set up notifications</strong> within the <strong class=\"font-semibold\">Sync Overview</strong> page of the web app and use the value of generated <strong class=\"font-semibold\">App ID</strong> for this parameter. See detailed steps <a href=\"https://www.chargebee.com/docs/1.0/mobile-playstore-notifications.html#app-id\" target=\"_blank\">here</a>.</li>\n</ul></div></div></div>",
        "operationId" : "retrieve_store_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "in-app-subscription-app-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/in-app-subscription-app-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "receipt" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>: The Base64 encoded <a href=\"https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/validating_receipts_with_the_app_store?language=objc#overview\" target=\"_blank\">App Store in-app purchase receipt</a> taken from the Apple device after successful creation of the in-app purchase subscription.\n<strong class=\"font-semibold\">Google Play Store</strong>: The purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> taken from the Android device after the successful creation of an in-app purchase subscription.</p>",
                    "maxLength" : 65000,
                    "example" : null
                  }
                },
                "required" : [ "receipt" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "in_app_subscriptions" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Array of in_app_subscription object</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/InAppSubscription",
                        "description" : "Resource object representing in_app_subscription"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "in_app_subscriptions" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/in_app_subscriptions/{in-app-subscription-app-id}/import_receipt" : {
      "post" : {
        "summary" : "Import Receipt",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-mobile-subscriptions\"></span><p class=\"mb-2\">Verifies an Apple App Store or Google Play Store in-app purchase <a href=\"https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/validating_receipts_with_the_app_store?language=objc#overview\">receipt</a> and imports <a href=\"/docs/api/subscriptions\">subscriptions</a> for all historical purchases made by the customer.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nAn <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_app_subscription</code>\nis created for every unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>\n. Apple creates <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>\nfor every create, upgrade, or downgrade of the subscription. A receipt hardly contains more than 100 <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>\ns. If a receipt contains more than 100 <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>\ns, Chargebee creates all subscription records but this endpoint returns the first 100 records in the response.</p></div><p class=\"mb-2\">CSV upload has a file size <code><a href=\"https://www.chargebee.com/docs/mobile-app-store-product-iap.html#upload-in-app-receipts\">limitation</a></code> that increases the processing time and the number of receipts. This API removes such limitations and allows you to import historical in-app subscription receipts.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\n: This API verifies receipt or token through Apple or Google and then processes them via Chargebee. For bulk imports, limit API calls to <strong class=\"font-semibold\">6</strong>\nper minute (<strong class=\"font-semibold\">10</strong>\nseconds apart) to ensure successful subscription imports.</p></div><div id=\"apple-app-store-accordion\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#apple-app-store-accordion-content\" aria-expanded=\"false\" aria-controls=\"apple-app-store-accordion-content\">Apple App Store<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"apple-app-store-accordion-content\"><p class=\"mb-2\">This section provides details of the Import Receipt operation performed for the Apple App Store. This API processes only the historical in-app transaction receipts.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/mobile-app-store-connect.html#connnect-with-your-chargebee-site\" target=\"_blank\">Integrate Chargebee</a> with your Apple App Store account using your shared secret from Apple.</li>\n<li class=\"text-base leading-relaxed\">It is strongly recommended to use this endpoint to import historical in-app subscriptions only.</li>\n<li class=\"text-base leading-relaxed\">You must <a href=\"https://www.chargebee.com/docs/2.0/mobile-app-store-product-iap.html#import-products\" target=\"_blank\">import Apple App Store products</a> using Chargebee&#x27;s user interface before importing receipts using this API.</li>\n</ul></div><p class=\"mb-2\">Chargebee validates the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">receipt</code> with Apple App Store and does the following once validation succeeds:</p><h4>Subscriptions</h4><p class=\"mb-2\"><a href=\"/docs/api/subscriptions\">Subscriptions</a> are imported as follows:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A subscription is imported for every unique value of the <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/original_transaction_id?language=objc\">original_transaction_id</a></code> in the Apple receipt.\n<strong class=\"font-semibold\">Note</strong>: This is not done for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>s for which a subscription already exists in Chargebee.</li>\n<li class=\"text-base leading-relaxed\">Each subscription imported has the following attributes set:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> set to the earliest <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info?language=objc\">purchase_date_ms</a></code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code> set to latest <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info?language=objc\">purchase_date_ms</a></code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code> set to <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info?language=objc\">expires_date_ms</a></code> of the same <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Latest_receipt_info</code> element with the latest <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_date_ms</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product_id</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> if there is only one element of <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info?language=objc\">Latest_receipt_info</a></code> with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code> and the field <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">is_trial_period</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, then consider the subscription is currently in trial. No invoices are created for this subscription.</li>\n</ul>\n</li>\n</ol><h4>Invoices for the subscription</h4><p class=\"mb-2\"><a href=\"/docs/api/invoices\">Invoices</a> are imported as follows:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">An invoice is imported to Chargebee for every element of the array <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info?language=objc\">Latest_receipt_info</a></code> which has <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/is_trial_period?language=objc\">is_trial_period</a></code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n<li class=\"text-base leading-relaxed\">Each imported invoice has the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>.</li>\n</ol><h4>Transactions for the invoices</h4><p class=\"mb-2\">A <a href=\"/docs/api/transactions\">transaction</a> is imported for each invoice with the following details:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reference_number</code> set to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction_id</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apple_store</code>.</li>\n</ol></div></div><div id=\"google-play-store-accordion\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#google-play-store-accordion-content\" aria-expanded=\"false\" aria-controls=\"google-play-store-accordion-content\">Google Play Store<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"google-play-store-accordion-content\"><p class=\"mb-2\">This section provides details of the Import Receipt operation performed for the Google Play Store. This API is used to process only the historical in-app purchase subscriptions.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/mobile-playstore-connect.html\">Integrate Chargebee</a> with your Google Play Store account using your <a href=\"https://www.chargebee.com/docs/2.0/mobile-playstore-connect.html#generate-service-account-credentials-json\">service account credentials JSON</a>.</li>\n<li class=\"text-base leading-relaxed\">It is strongly recommended to use this endpoint to import historical in-app subscriptions only.</li>\n<li class=\"text-base leading-relaxed\">It is recommended to pass only the latest purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code>. If any other purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> is passed instead of the latest one, there is a possibility of returning incorrect transaction details. If an expired purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> is passed, then it returns an error.</li>\n<li class=\"text-base leading-relaxed\">The Google purchase token is <a href=\"https://developer.android.com/google/play/billing/lifecycle/subscriptions\" target=\"_blank\" rel=\"noopener noreferrer\">valid from subscription signup until 60 days</a> after subscription expiration. After the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> expires, an API request to Google Developers API returns an error.</li>\n</ul></div><p class=\"mb-2\">Chargebee validates the purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> with Google Play Store and does the following once validation succeeds:</p><h4>Subscriptions</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">A <a href=\"/docs/api/subscriptions\">subscription</a> is imported for every unique purchase token if it is not linked to an existing purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code>( <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linkedPurchaseToken</code> field in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SubscriptionsV2.get</code> API Response).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Each subscription imported has the following attributes set:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> set to a unique identifier generated by Chargebee and mapped to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latestOrderId</code> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SubscriptionPurchaseV2</code> object from Google response.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> set to the earliest <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SubscriptionPurchaseV2.startTime</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code> set to latest <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SubscriptionPurchaseV2.startTime</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expiryTime</code> of the same <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SubscriptionPurchaseV2</code> element with the latest purchase.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code> set to the concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">priceCurrencyCode</code> from Google.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> if the free trial configuration is enabled in Google and the <code><a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/monetization.subscriptions.basePlans.offers#State\">monetization.subscriptions.basePlans.offers.State</a></code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Active</code> with a <code><a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/monetization.subscriptions.basePlans.offers#subscriptionofferphase\">SubscriptionOfferPhase.duration</a></code>, then consider the subscription is currently in trial. No invoices are created for this subscription.</p>\n</li>\n</ul>\n</li>\n</ul><h4>Invoices for the subscription</h4><p class=\"mb-2\">Invoices are imported as follows:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">An <a href=\"/docs/api/invoices\">invoice</a> is imported to Chargebee for every new subscription and renewal of an existing subscription using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latestOrderId</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Each imported invoice has the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> set to a unique identifier generated by Chargebee and mapped to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latestOrderId</code>.</p>\n</li>\n</ul><h4>Transactions for the invoices</h4><p class=\"mb-2\">A <a href=\"/docs/api/transactions\">transaction</a> is imported for each invoice with the following details:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction.reference_number</code> is set to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latestOrderId</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction.payment_method</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">play_store</code>.</p>\n</li>\n</ul></div></div><h2>Path Parameter</h2><p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>: The handle created by Chargebee for your Apple App Store or Google Play Store app. It can be obtained from the Chargebee web app.\nThe following are instructions to obtain the value of the path parameter for the Apple App Store and Google Play Store.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Apple App Store</strong>: To obtain the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>, click <strong class=\"font-semibold\">View Keys</strong> within the <strong class=\"font-semibold\">Sync Overview</strong> page of the web app and use the value of generated <strong class=\"font-semibold\">App ID</strong> for this parameter. See detailed steps <a href=\"https://www.chargebee.com/docs/1.0/mobile-app-store-product-iap.html#connection-keys_app-id\" target=\"_blank\">here</a>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Google Play Store</strong>: To obtain the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>, click <strong class=\"font-semibold\">Set up notifications</strong> within the <strong class=\"font-semibold\">Sync Overview</strong> page of the web app and use the value of generated <strong class=\"font-semibold\">App ID</strong> for this parameter. See detailed steps <a href=\"https://www.chargebee.com/docs/1.0/mobile-playstore-notifications.html#app-id\" target=\"_blank\">here</a>.</li>\n</ul></div>",
        "operationId" : "import_receipt",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "in-app-subscription-app-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/in-app-subscription-app-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "receipt" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>: The Base64 encoded <a href=\"https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/validating_receipts_with_the_app_store?language=objc#overview\" target=\"_blank\">App Store in-app purchase receipt</a> taken from the Apple device after successful creation of the in-app purchase subscription.\n<strong class=\"font-semibold\">Google Play Store</strong>: The purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> taken from the Android device after the successful creation of an in-app purchase subscription.</p>",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "product" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for product\n",
                    "properties" : {
                      "currency_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "**Apple App Store** : The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)) for the product.\n**Google Play Store** : This parameter is **not applicable** to the Google Play Store. If the value is passed, it will return a validation error.\n",
                        "maxLength" : 3,
                        "example" : null
                      }
                    },
                    "required" : [ "currency_code" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>: The unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> in Chargebee for the customer who made this purchase. If not provided, the value is considered to be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code> (the transaction identifier at Apple, of the original purchase). If the customer record is not found in Chargebee, it is created.\n<strong class=\"font-semibold\">Google Play Store</strong>: The unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the customer who made this purchase via Google Play Store. This unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> will be used as customer ID within Chargebee. If not provided, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> (random unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>) will be the customer ID. If the customer ID already exists in Chargebee then subscription will be associated with this customer ID.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "**Apple App Store** : The email ID of the customer who made this purchase.\n**Google Play Store**: The email ID of the customer who made this purchase.\n",
                        "maxLength" : 70,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "receipt" ],
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "product" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "in_app_subscriptions" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">Array of in_app_subscription object</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/InAppSubscription",
                        "description" : "Resource object representing in_app_subscription"
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "in_app_subscriptions" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/in_app_subscriptions/{in-app-subscription-app-id}/import_subscription" : {
      "post" : {
        "summary" : "Import Subscription Without Receipt",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-mobile-subscriptions\"></span><p class=\"mb-2\">The Import Subscriptions endpoint is a Chargebee API that allows you to import historic In-App Subscriptions without using a valid Apple App Store receipt. This endpoint is useful if you do not have access to the receipt data which is required for the <a href=\"/docs/api/in_app_subscriptions/import-receipt\">Import Receipt</a> API.\nWith this API, you can import subscriptions and corresponding invoices for historic In-App purchases. The API returns the <a href=\"/docs/api/in_app_subscriptions/in-app-subscription-object\">in-app-subscriptions object</a> once the historic subscription is successfully imported into Chargebee.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Subscriptions cannot be imported from the Google Play Store without a receipt or token. Therefore; Chargebee does not allow you to use this API for the Google Play Store.</li>\n<li class=\"text-base leading-relaxed\">Enable V1 notifications in the Apple App Store for subscriptions created without receipts. Chargebee depends on receipt data to update subscription statuses. Apple&#x27;s V2 notifications do not have receipt information; therefore, Chargebee cannot process V2 notifications for subscriptions imported without receipts. Learn more about <a href=\"/docs/api/in_app_purchase_events\">app store notifications</a> and <a href=\"https://www.chargebee.com/docs/mobile-app-store-product-iap.html#connection-keys_notification-url\">notification URL configuration</a>.</li>\n</ul></div><h3>Apple App Store</h3><p class=\"mb-2\">This section provides details of the Import Subscription operation when performed for the Apple App Store. This API creates a historic subscription if the incoming subscription is unknown. For a known subscription, it creates an invoice for the mentioned period.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/mobile-app-store-connect.html#connnect-with-your-chargebee-site\" target=\"_blank\" rel=\"noopener noreferrer\">Integrate Chargebee</a> with your Apple App Store account using your shared secret from Apple.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">It is strongly recommended to use this endpoint to create a historic In-App subscription only.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">You must import App Store products using Chargebee&#x27;s user interface before importing receipts using this API.</p>\n</li>\n</ul></div><p class=\"mb-2\">Chargebee validates the application ID with Apple App Store and does the following once validation succeeds:</p><h4>Subscription</h4><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Import the subscription from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latest_receipt_info</code> array from Apple and a new subscription is imported for the item-price.\n<strong class=\"font-semibold\">Note:</strong> The subscription is not imported if it already exists in Chargebee but we will import the associated invoice using the subscription[transaction_id] in the payload.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Each subscription imported has the following attribute set:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[id]</code> . This <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[id]</code> is  <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code> in the receipts.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[start_date]</code>. You need to provide this information from the oldest <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Latest_receipt_info.purchase_date_ms</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">term_start</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[term_start]</code>. You need to provide this information from the oldest <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Latest_receipt_info.purchase_date_ms)</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">term_end</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[term_end]</code>. You need to provide this information from the oldest <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Latest_receipt_info.expires_date_ms</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[product_id] + subscription[currency_code].</code> You need to provide this information from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Latest_receipt_info.product_id</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Chargebee records the subscription in a <strong class=\"font-semibold\">Trial</strong> state if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">is_trial_period</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Chargebee records the subscription in a <strong class=\"font-semibold\">Canceled</strong> state if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">term_end</code> is less than the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">System.currentTime()</code>.</p>\n</li>\n</ul>\n</li>\n</ol><h4>Invoice for the subscription</h4><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The payment is recorded against the subscription invoice.</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Imported invoice has the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code>.\n<strong class=\"font-semibold\">Transactions for the invoice</strong></li>\n</ul><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The associated transaction is updated with the following details:</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction.reference_number</code> is set to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction_id</code> of the payment.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction.payment_method</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apple_store</code>.</p>\n</li>\n</ul><h4>Path Parameter</h4><div class=\"cb-list cb-list-action \"><div class=\"cb-list-item\"><samp id=\"import_subscription_without_receipt_in_app_subscription_app_id\"><p class=\"mb-2\">in_app_subscription_app_id</p></samp></div><div class=\"cb-list-desc\"><dfn class=\"text-muted\"><p class=\"mb-2\">required, string</p></dfn><p class=\"mb-2\">The handle created by Chargebee for your App Store app. It can be obtained from within the Chargebee web app. To obtain the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_app_subscription_app_id</code> for the Apple App Store, click <strong class=\"font-semibold\">View Keys</strong> within the <strong class=\"font-semibold\">Sync Overview</strong> page of the web app, and use the value of generated <strong class=\"font-semibold\">App ID</strong> for this parameter. See detailed steps <a href=\"https://www.chargebee.com/docs/mobile-app-store-product-iap.html#connection-keys_app-id\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.</p></div></div></div>",
        "operationId" : "import_subscription_without_receipt",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "in-app-subscription-app-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/in-app-subscription-app-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">This parameter is known as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code> in Apple App Store. You can get the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">original_transaction_id</code> from the <a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latest_receipt_info</code></a>. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latest_receipt_info</code> is an array that contains all in-app purchase transactions.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "started_at" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The time at which the subscription has started or going to be started. You can find this value from the oldest <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_date_ms</code>.</p>",
                        "example" : null
                      },
                      "term_start" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Start date of the billing period for the subscription. You can find it from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_date_ms</code> field in receipt payload.</p>",
                        "example" : null
                      },
                      "term_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">End date of the billing period for the subscription. You can find it from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expires_date_ms</code> field in receipt payload.</p>",
                        "example" : null
                      },
                      "product_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique identifier of the product as configured in App Store Connect.\n",
                        "maxLength" : 96,
                        "example" : null
                      },
                      "currency_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) for the product.\n",
                        "maxLength" : 3,
                        "example" : null
                      },
                      "transaction_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Transaction ID value as mentioned in the <a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">latest_receipt_info</code></a>.\nThis must be unique across subscriptions.</p>",
                        "maxLength" : 43,
                        "example" : null
                      },
                      "is_trial" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Indicates if the subscription is in trial for the term start and term end. The default value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                        "example" : null
                      }
                    },
                    "required" : [ "currency_code", "id", "product_id", "started_at", "term_end", "term_start", "transaction_id" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unique <code><a href=\"/docs/api/customers/create-a-customer#id\">id</a></code> in Chargebee for the customer who made this purchase. If not provided, the value is considered to be <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/original_transaction_id?language=objc\" target=\"_blank\">original_transaction_id</a></code> (the transaction identifier at Apple, of the original purchase.). If the customer record is not found in Chargebee, it is created.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email ID of the customer who made this purchase.\n",
                        "maxLength" : 70,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "in_app_subscription" : {
                      "$ref" : "#/components/schemas/InAppSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing in_app_subscription</p>"
                    }
                  },
                  "required" : [ "in_app_subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/in_app_subscriptions/{in-app-subscription-app-id}/process_purchase_command" : {
      "post" : {
        "summary" : "Process Purchase Command",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-mobile-subscriptions\"></span><p class=\"mb-2\">Verifies an in-app purchase made by your customer and creates a subscription in Chargebee.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf App Store or Play Store products have not been imported to Chargebee and this API is invoked, Chargebee will automatically create plans that correspond to the store product IDs. However, if historical subscriptions are to be imported using the <a href=\"/docs/api/in_app_subscriptions/import-receipt\">import receipt</a> API, importing products is mandatory. <a href=\"https://www.chargebee.com/docs/mobile_subscriptions.html\">Learn more</a>.</p></div><div id=\"apple-app-store-accordion\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#apple-app-store-accordion-content\" aria-expanded=\"false\" aria-controls=\"apple-app-store-accordion-content\">Apple App Store<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"apple-app-store-accordion-content\"><p class=\"mb-2\">This section provides details of the Process Purchase Command operation when performed for the Apple App Store. This API processes only the latest in-app transaction on the receipt. Sync historical subscriptions into Chargebee using <a href=\"https://www.chargebee.com/docs/2.0/mobile-app-store-product-iap.html#import-in-app-purchase-receipts\" target=\"_blank\">bulk import</a> of In-App Purchase receipts.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/mobile-app-store-connect.html#connnect-with-your-chargebee-site\" target=\"_blank\">Integrate Chargebee</a> with your Apple App Store account using your shared secret from Apple.</li>\n<li class=\"text-base leading-relaxed\">It is strongly recommended to use this endpoint to notify Chargebee of <strong class=\"font-semibold\">new</strong> purchases only.</li>\n<li class=\"text-base leading-relaxed\">For updates to existing subscriptions, we recommend that you configure Apple App Store to send server notifications to Chargebee.</li>\n</ul></div><p class=\"mb-2\">Chargebee validates the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">receipt</code> with Apple App Store and does the following once validation succeeds:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Look for <code><a href=\"/docs/api/item_families/item_family-object#id\">item_family.id</a></code> that matches the value Apple-App-Store, and create such a product family if not found.</li>\n<li class=\"text-base leading-relaxed\">Look for <code><a href=\"/docs/api/items/item-object#id\">item.id</a></code> that matches <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code> and if not found, create such a plan-item under the item family described in the previous step.</li>\n<li class=\"text-base leading-relaxed\">Look for <code><a href=\"/docs/api/item_prices/item_price-object#id\">item_price.id</a></code> that matches the concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[currency_code]</code>, and if not found, create such an item price under the item described in the previous step.</li>\n<li class=\"text-base leading-relaxed\">Create/update a subscription:</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If the receipt is for a new purchase, a new subscription is created for the plan-item price described in the previous step. The subscription has the following details:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> set to <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/original_transaction_id?language=objc\" target=\"_blank\">original_transaction_id</a></code></p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> set to <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info?language=objc\" target=\"_blank\">responseBody.Latest_receipt_info.purchase_date_ms</a></code></p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">responseBody.Latest_receipt_info.expires_date_ms</code></p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Instead, if the receipt belongs to an existing subscription in Chargebee, it is updated to reflect the current state of the subscription at Apple.</p>\n</li>\n</ul><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The payment is recorded against the subscription invoice. The associated transaction is updated with the following details:</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code><a href=\"/docs/api/transactions/transaction-object#reference_number\">transaction.reference_number</a></code> is set to the <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/transaction_id?language=objc\" target=\"_blank\">transaction_id</a></code> of the payment.</li>\n<li class=\"text-base leading-relaxed\">The <code><a href=\"/docs/api/transactions/transaction-object#payment_method\" target=\"_blank\">transaction.payment_method</a></code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apple_pay</code>.</li>\n</ul></div></div><div id=\"google-play-store-accordion\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#google-play-store-accordion-content\" aria-expanded=\"false\" aria-controls=\"google-play-store-accordion-content\">Google Play Store<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"google-play-store-accordion-content\"><p class=\"mb-2\">This section provides details of the Process Purchase Command operation when performed for the Google Play Store. This API processes only the latest in-app transaction using the purchase token.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/mobile-playstore-connect.html#chargebee-configuration\" target=\"_blank\">Integrate Chargebee</a> with your Google Play Store account using the service account credentials JSON.</li>\n<li class=\"text-base leading-relaxed\">It is strongly recommended to use this endpoint to notify Chargebee of <strong class=\"font-semibold\">new</strong> purchases only.</li>\n<li class=\"text-base leading-relaxed\">For updates to existing subscriptions, we recommend that you configure Chargebee to receive Google&#x27;s server notifications through pub/sub topic. <a href=\"https://developer.android.com/google/play/billing/getting-ready#setup-pubsub\" target=\"_blank\">Learn more</a>.</li>\n</ul></div><p class=\"mb-2\">Chargebee validates the purchase <strong class=\"font-semibold\">token</strong> with Google Play Store and does the following once validation succeeds:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Look for <code><a href=\"/docs/api/item_families/item_family-object#id\">item_family.id</a></code> that matches the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Google-Play-Store</code>, and create such a product family if not found.</li>\n<li class=\"text-base leading-relaxed\">Look for <code><a href=\"/docs/api/items/item-object#id\">item.id</a></code> that matches <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code> and if not found, create such a <a href=\"/docs/api/items/item-object#type\">plan-item</a> under the item family described in the previous step.</li>\n<li class=\"text-base leading-relaxed\">Look for <code><a href=\"/docs/api/item_prices/item_price-object#id\">item_price.id</a></code> that matches the concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code> and <code><a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions?hl=en#SubscriptionPurchase.FIELDS.price_currency_code\" target=\"_blank\">priceCurrencyCode</a></code>, and if not found, create such an item price under the item described in the previous step.</li>\n<li class=\"text-base leading-relaxed\">Create/update a subscription:</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If this token is for a new purchase, a new subscription is created for the plan-item price described in the previous step. The subscription has the following details:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> set to unique identifier generated by Chargebee and mapped to <strong class=\"font-semibold\">token</strong> of the <code><a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions?hl=en\" target=\"_blank\">SubscriptionPurchase</a></code> object from Google response.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SubscriptionPurchase.startTimeMillis</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SubscriptionPurchase.expiryTimeMillis</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Instead, if the token belongs to an existing subscription in Chargebee, it is updated to reflect the current state of the subscription at Google.</p>\n</li>\n</ul><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The payment is recorded against the subscription invoice. The associated transaction is updated with the following details:</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code><a href=\"/docs/api/transactions/transaction-object#reference_number\">transaction.reference_number</a></code> is set to the <code><a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions?hl=en#SubscriptionPurchase.FIELDS.order_id\" target=\"_blank\">orderId</a></code> of the payment.</li>\n<li class=\"text-base leading-relaxed\">The <code><a href=\"/docs/api/transactions/transaction-object#payment_method\" target=\"_blank\">transaction.payment_method</a></code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">play_store</code>.</li>\n</ul></div></div><h2>Path Parameter</h2><p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>: The handle created by Chargebee for your Apple App Store or Google Play Store app. It can be obtained from the Chargebee web app.</p><p class=\"mb-2\">The following are instructions to obtain the value of the path parameter for the Apple App Store and Google Play Store.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Apple App Store</strong>: To obtain the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>, click <strong class=\"font-semibold\">View Keys</strong> within the <strong class=\"font-semibold\">Sync Overview</strong> page of the web app and use the value of generated <strong class=\"font-semibold\">App ID</strong> for this parameter. See detailed steps <a href=\"https://www.chargebee.com/docs/1.0/mobile-app-store-product-iap.html#resource-id\" target=\"_blank\">here</a>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Google Play Store</strong>: To obtain the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{in_app_subscription_app_id}</code>, click <strong class=\"font-semibold\">Set up notifications</strong> within the <strong class=\"font-semibold\">Sync Overview</strong> page of the web app and use the value of generated <strong class=\"font-semibold\">App ID</strong> for this parameter. See detailed steps <a href=\"https://www.chargebee.com/docs/1.0/mobile-playstore-notifications.html#app-id\" target=\"_blank\">here</a>.</li>\n</ul></div>",
        "operationId" : "process_purchase_command",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "in-app-subscription-app-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/in-app-subscription-app-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "receipt" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>: The Base64 encoded <a href=\"https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/validating_receipts_with_the_app_store?language=objc#overview\" target=\"_blank\">App Store in-app purchase receipt</a> taken from the Apple device after successful creation of the in-app purchase subscription.\n<strong class=\"font-semibold\">Google Play Store</strong>: The purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code> taken from the Android device after the successful creation of an in-app purchase subscription.</p>",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "product" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for product\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThe unique identifier of the product purchased. The value of this parameter is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productId</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscriptionId</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sku</code>\nreceived from the <code><a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/inappproducts/get\" target=\"_blank\">Google Play Store</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">max chars</code>\nlimit is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">95</code>\nfor Google Play Store.</p></div>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe <a href=\"https://developer.apple.com/documentation/storekit/product/id/\" target=\"_blank\">unique identifier</a>\n(created in <a href=\"https://appstoreconnect.apple.com/login\" target=\"_blank\">App Store Connect</a>\n) of the product purchased.</p>",
                        "maxLength" : 96,
                        "example" : null
                      },
                      "currency_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "**Google Play Store** :\nThis parameter is **not applicable**\nto the Google Play Store. If the value is passed, it will return a validation error.\n\n**Apple App Store**:\nThe currency code (ISO 4217 format) for the product.\n",
                        "maxLength" : 3,
                        "example" : null
                      },
                      "price" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThis parameter is <strong class=\"font-semibold\">not applicable</strong>\nto the Google Play Store. If the value is passed, it will return a validation error.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe price paid by the customer for this product. The unit <a href=\"/docs/api/getting-started\">depends on the type of currency</a>.\nProvide either this or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[price_in_decimal]</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[price]</code> is passed through this API then it will override the product price configured in Chargebee while creating a subscription.</li>\n<li class=\"text-base leading-relaxed\">When no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[price]</code> is passed and the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code> does not exist in Chargebee then this API will return an error.</li>\n<li class=\"text-base leading-relaxed\">During the reactivation of a subscription, the old price of the subscription will be considered irrespective of the value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[price]</code> passed through this API.</li>\n</ul></div>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThe name (created in <a href=\"https://play.google.com/console/about/\" target=\"_blank\" rel=\"noopener noreferrer\">Play Store Console</a>\n) of the product purchased. If not passed then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code>\nwill be considered as the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[name]</code>\n.</p>\n<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string, max chars=46</p></dfn>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe name (created in <a href=\"https://appstoreconnect.apple.com/login\" target=\"_blank\" rel=\"noopener noreferrer\">App Store Connect</a>\n) of the product purchased.</p>",
                        "maxLength" : 46,
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThis parameter is <strong class=\"font-semibold\">not applicable</strong>\nto the Google Play Store. If the value is passed, it will return a validation error.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe price paid by the customer for the product. The value is in decimal and in major units of the currency. Provide either this or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[price]</code>\n.</p>",
                        "maxLength" : 39,
                        "example" : null
                      },
                      "period" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThis parameter is <strong class=\"font-semibold\">not applicable</strong>\nto the Google Play Store. If the value is passed, it will return a validation error.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThis is the renewal period of the subscription. For example, 1, 2, 3, and so on. This is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">optional</code>\nparameter. The parameter value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">required</code>\nif the product(s) are not imported to Chargebee from Apple App Store.</p>",
                        "maxLength" : 3,
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThis parameter is <strong class=\"font-semibold\">not applicable</strong>\nto the Google Play Store. If the value is passed, it will return a validation error.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThis is the unit of the renewal period. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nrepresents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">day</code>\n,<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>\nrepresents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">week</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>\nrepresents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code>\nrepresents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">year</code>.\nThis is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">optional</code>\nparameter. The parameter value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">required</code>\nif the product(s) are not imported to Chargebee from Apple App Store.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nSince the Apple App Store receipt does not have the subscription renewal period information for trial subscriptions, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[period]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[period_unit]</code> are needed, to create a subscription in Chargebee with the trial period. If these parameters are not passed and the receipt has trial information then Chargebee will return a validation error.</p></div>",
                        "maxLength" : 3,
                        "example" : null
                      }
                    },
                    "required" : [ "currency_code", "id", "price" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThe unique <code><a href=\"/docs/api/customers/create-a-customer#id\">id</a></code>\nin Chargebee for the customer who made this purchase via Google Play Store. If not provided, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>\n(random unique id) will be the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer[id]</code>.\nIf the customer record is not found in Chargebee, it is created.</p>\n<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string, max chars=50</p></dfn>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe unique <code><a href=\"/docs/api/customers/create-a-customer#id\">id</a></code>\nin Chargebee for the customer who made this purchase. If not provided, the value is considered to be <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/original_transaction_id?language=objc\" target=\"_blank\">original_transaction_id</a></code>\n(the transaction identifier at Apple, of the original purchase). If the customer record is not found in Chargebee, it is created.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address of the customer who made the purchase.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the customer who made the purchase.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the customer who made the purchase.\n",
                        "maxLength" : 150,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "receipt" ],
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "product" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "in_app_subscription" : {
                      "$ref" : "#/components/schemas/InAppSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing in_app_subscription</p>"
                    }
                  },
                  "required" : [ "in_app_subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/non_subscriptions/{non-subscription-app-id}/one_time_purchase" : {
      "post" : {
        "summary" : "One time purchase",
        "description" : "This API is used to sync consumable, non-consumable, and non-renewing product payments in Chargebee.\n",
        "operationId" : "one_time_purchase",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "non-subscription-app-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/non-subscription-app-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "receipt" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThe purchase <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">token</code>\ntaken from the Android device after successful creation of the in-app purchase.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe Base64 encoded <a href=\"https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/validating_receipts_with_the_app_store?language=objc#overview\" target=\"_blank\">App Store in-app purchase receipt</a>\ntaken from the Apple device after successful creation of the in-app purchase.</p>",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "product" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for product\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>: The unique identifier of the product purchased. The value of this parameter is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productId</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sku</code> received from the <code><a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/inappproducts/get\" target=\"_blank\">Google Play Store</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">max chars</code>\nlimit is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">95</code>\nfor the Google Play Store.</p></div>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>: The <a href=\"https://developer.apple.com/documentation/storekit/product/id/\" target=\"_blank\">unique identifier</a> (created in <a href=\"https://appstoreconnect.apple.com/login\" target=\"_blank\">App Store Connect</a>) of the product purchased.</p>",
                        "maxLength" : 96,
                        "example" : null
                      },
                      "currency_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "**Google Play Store** :\nThis parameter is **not applicable**\nto the **Google Play Store**.\nIf the value is passed, it will return a validation error.\n\n**Apple App Store**:\nThe currency code (ISO 4217 format) for the product.\n",
                        "maxLength" : 3,
                        "example" : null
                      },
                      "price" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThis parameter is <strong class=\"font-semibold\">not applicable</strong>\nto the <strong class=\"font-semibold\">Google Play Store</strong>.\nIf the value is passed, it will return a validation error.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe price paid by the customer for this product. The unit <a href=\"/docs/api/getting-started\">depends on the type of currency</a>.\nProvide either this or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[price_in_decimal]</code>\n.</p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of product for one time purchase.\n\\* consumable -\n\nThis value represents a type of one-time purchase that provides users with in-app benefits or effects that can be consumed or depleted over time, such as lives, gems, boosts, or digital tips. Once consumed, the purchased item is no longer available and must be repurchased to obtain its benefits again.\n\\* non_consumable -\n\nThe value represents a type of in-app purchase that provides a permanent benefit to the user and can be purchased once without expiration. This type of purchase is typically used to offer premium features or content that enhance the user experience of the app, such as additional filters or cosmetic items in a game.\n\\* non_renewing_subscription -\n\nThe value represents a type of subscription that grants access to services or content for a limited period of time, such as a season pass to in-game content. Unlike other subscription models, this type of subscription does not renew automatically and requires people to purchase a new subscription once it concludes to continue accessing the content or services.\n",
                        "enum" : [ "consumable", "non_consumable", "non_renewing_subscription" ],
                        "example" : null
                      },
                      "name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThe name (created in <a href=\"https://play.google.com/console/about/\" target=\"_blank\" rel=\"noopener noreferrer\">Play Store Console</a>\n) of the product purchased. If not passed then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code>\nwill be considered as the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[name]</code>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe name (created in <a href=\"https://appstoreconnect.apple.com/login\" target=\"_blank\" rel=\"noopener noreferrer\">App Store Connect</a>\n) of the product purchased.</p>",
                        "maxLength" : 96,
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThis parameter is <strong class=\"font-semibold\">not applicable</strong> to the <strong class=\"font-semibold\">Google Play Store</strong>. If the value is passed, it will return a validation error.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>: The price paid by the customer for the product. The value is in decimal and in major units of the currency. Provide either this or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[price]</code>.</p>",
                        "maxLength" : 39,
                        "example" : null
                      }
                    },
                    "required" : [ "currency_code", "id", "price", "type" ],
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><strong class=\"font-semibold\">Google Play Store</strong>:\nThe unique <code><a href=\"/docs/api/customers/create-a-customer#id\">id</a></code>\nin Chargebee for the customer who made this purchase via Google Play Store. If not provided, a random unique ID generated for the purchase token will be the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer[id]</code>.\nIf the customer record is not found in Chargebee, it is created.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Apple App Store</strong>:\nThe unique <code><a href=\"/docs/api/customers/create-a-customer#id\">id</a></code>\nin Chargebee for the customer who made this purchase. If not provided, the value is considered to be <code><a href=\"https://developer.apple.com/documentation/appstorereceipts/original_transaction_id?language=objc\" target=\"_blank\">original_transaction_id</a></code>\n(the transaction identifier at Apple, of the original purchase). If the customer record is not found in Chargebee, it is created.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address of the customer who made the purchase.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the customer who made the purchase.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the customer who made the purchase.\n",
                        "maxLength" : 150,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "receipt" ],
                "example" : null
              },
              "encoding" : {
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "product" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "non_subscription" : {
                      "$ref" : "#/components/schemas/NonSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing non_subscription</p>"
                    }
                  },
                  "required" : [ "non_subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/entitlement_overrides" : {
      "get" : {
        "summary" : "List entitlement overrides for a subscription",
        "description" : "Retrieve the list of entitlement overrides for a subscription.\n",
        "operationId" : "list_entitlement_overrides_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "entitlement_override" : {
                            "$ref" : "#/components/schemas/EntitlementOverride",
                            "description" : "Resource object representing entitlement_override"
                          }
                        },
                        "required" : [ "entitlement_override" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Upsert or remove entitlement overrides for a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Upserts or removes a set of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides</code>\nfor a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>\ndepending on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action</code>\nspecified. The API returns the upserted or deleted <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides</code>\nafter successfully completing the operation. The operation returns an error when the first <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code>\nfails to be processed. Either all the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides</code>\nprovided in the request are processed or none.</p></div>",
        "operationId" : "upsert_or_remove_entitlement_overrides_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "action" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The action to perform for each <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> specified in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides</code> array.</p>\n* upsert - <p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> combination already exists, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> is updated. If it doesn&#x27;t exist, a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> is created.</p>\n* remove - <p class=\"mb-2\">Deletes the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> combination, if it exists.</p>",
                    "enum" : [ "upsert", "remove" ],
                    "example" : null
                  },
                  "entitlement_overrides" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for entitlement_overrides.\n",
                    "properties" : {
                      "feature_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> for which the entitlement override is being set.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the entity at whose level the entitlement override is being set for the subscription. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> is not currently a part of the subscription, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> takes effect as soon as the entity is added to the subscription.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The type of the entity at whose level the entitlement override is being set for the subscription.</p>\n* plan_price - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> with <a href=\"/docs/api/items/item_price-object#item_type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p>\n* charge - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <a href=\"/docs/api/items/item-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>.</p>\n* addon_price - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> with <a href=\"/docs/api/items/item_price-object#item_type\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code></a> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>",
                          "enum" : [ "plan_price", "addon_price", "charge" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The level of entitlement that the item has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can also be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][1]</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, then the value is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> if the feature is available; it is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> when the feature is unavailable.</p>\n</li>\n</ul>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "expires_at" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The expiry date for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code>. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> object is no longer returned after this date has passed.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only for subscription-level entitlement overrides. i.e. Not applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> are set.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">upsert</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be a value in the future.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "effective_from" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The starting date and time for the entitlement override. It indicates when the override becomes effective.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only for subscription-level entitlement overrides. i.e. Not applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> are set.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action</code> must be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">upsert</code>.</li>\n<li class=\"text-base leading-relaxed\">Must be a value in the future.</li>\n</ul></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "is_enabled" : {
                        "type" : "array",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "feature_id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "entitlement_overrides" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "entitlement_override" : {
                            "$ref" : "#/components/schemas/EntitlementOverride",
                            "description" : "Resource object representing entitlement_override"
                          }
                        },
                        "required" : [ "entitlement_override" ],
                        "example" : null
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/business_entities/transfers" : {
      "get" : {
        "summary" : "List business entity transfers",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Returns a list of <code><a href=\"/docs/api/business_entity_transfers\">business_entity_transfer</a></code> resources meeting all the conditions specified in the filter parameters below. By default, this list is sorted by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">created_at</code> in descending order (latest first).</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong></p><p class=\"mb-2\">To retrieve a history of all the business entity transfers for a resource, pass the filter parameters <code><a href=\"/docs/api/business_entities/list-the-business-entity-transfers\">active_resource_id[is]</a></code> and <code><a href=\"/docs/api/business_entities/list-the-business-entity-transfers\">resource_type[]</a></code>.</p></div></div>",
        "operationId" : "list_the_business_entity_transfers",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "resource_type",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Filter <code><a href=\"/docs/api/business_entity_transfers\">business_entity_transfer</a></code> resources based on <code><a href=\"/docs/api/business_entity_transfers/business_entity_transfer-object#resource_type\">resource_type</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nUse this filter along with <code><a href=\"/docs/api/business_entities/list-the-business-entity-transfers\">active_resource_id[is]</a></code> to retrieve the history of all the business entity transfers for a resource.</p></div>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "customer",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "resource_id",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Filter <code><a href=\"/docs/api/business_entity_transfers\">business_entity_transfer</a></code>\nresources based on <code><a href=\"/docs/api/business_entity_transfers/business_entity_transfer-object#resource_id\">resource_id</a></code>\n.</p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "9bsvnHgsvmsI",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "active_resource_id",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Filter <code><a href=\"/docs/api/business_entity_transfers\">business_entity_transfer</a></code> resources based on <code><a href=\"/docs/api/business_entity_transfers/business_entity_transfer-object#active_resource_id\">active_resource_id</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nUse this filter along with <code><a href=\"/docs/api/business_entities/list-the-business-entity-transfers\">resource_type[]</a></code> to retrieve the history of all the business entity transfers for a resource.</p></div>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8gsnbYfsMLds",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "created_at",
          "in" : "query",
          "description" : "optional, timestamp(UTC) in seconds filter\n\nTo filter based on Created At.\n**Supported operators :**\nafter, before, on, between\n\n**Example →**\n*created_at\\[on\\] = \"1702022464\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1702022464",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ncreated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"created_at\"*\n\nThis will sort the result based on the 'created_at' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "created_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "business_entity_transfer" : {
                            "$ref" : "#/components/schemas/BusinessEntityTransfer",
                            "description" : "Resource object representing business_entity_transfer"
                          }
                        },
                        "required" : [ "business_entity_transfer" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Transfer a customer to another business entity",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-mbe\"></span><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong>\nThis API will not work if you have <a href=\"/docs/api/advanced-features#mbe-header-main\">specified a business entity</a> in the custom HTTP header.</p></div><p class=\"mb-2\">Transfers one or more <code><a href=\"/docs/api/customers\">customer</a></code> resources from one business entity to another.</p><p class=\"mb-2\">The transfer is executed by creating a copy of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource. The original resource is deprecated, while the new copy becomes the active resource.</p><div id=\"transfer-more\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#transfer-more-content\" aria-expanded=\"false\" aria-controls=\"transfer-more-content\">More details<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"transfer-more-content\"><h4>Prerequisites</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Transfers must always be initiated for an active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resources and never for a deprecated resources.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource cannot be transferred more than three times in a single calendar year. For example, if already moved thrice in the year 2023, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource can only be moved again in 2024.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource must not have any of the following:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">An account hierarchy <code><a href=\"/docs/api/customers/customer-object#relationship\">relationship</a></code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource with</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> or</li>\n<li class=\"text-base leading-relaxed\">advance invoice schedules. (<code><a href=\"/docs/api/subscriptions/subscription-object#has_scheduled_advance_invoices\">subscription.has_scheduled_advance_invoices</a></code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.)</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code><a href=\"/docs/api/invoices\">invoice</a></code> resource with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>. (<a href=\"/docs/api/invoices/close-a-pending-invoice\">Close pending invoices</a> before invoking this API.)</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> resources that are advance invoices. (<code><a href=\"/docs/api/invoices/invoice-object#has_advance_charges\">invoice.has_advance_charges</a></code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.)</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code><a href=\"/docs/api/quotes\">quote</a></code> resources with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">open</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">accepted</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code><a href=\"/docs/api/transactions\">transaction</a></code> resource with:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code> or</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorization</code>, and a non-zero <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_capturable</code>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Non-zero <code><a href=\"/docs/api/customers/customer-object#unbilled_charges\">unbilled_charges</a></code>. (<a href=\"/docs/api/unbilled_charges/create-an-invoice-for-unbilled-charges\">Invoice unbilled charges</a> before invoking this API.)</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Non-zero <code><a href=\"/docs/api/customers/customer-object#refundable_credits\">refundable_credits</a></code>. (<a href=\"/docs/api/invoices/apply-credits-for-an-invoice\">Apply credits</a> to unpaid invoices before invoking this API.)</p>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource must not be a <a href=\"/docs/api/gifts/gift-object#gifter\">gifter</a> of a gift subscription with <code><a href=\"/docs/api/gifts/gift-object#status\">status</a></code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheduled</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unclaimed</code>.</p>\n</li>\n</ul><h4>Mechanics of business entity transfer</h4><p class=\"mb-2\">When calling this endpoint, the active and deprecated resources are processed as follows:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">For the active resource:</p>\n<ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active_id</code> are set to match the deprecated resource&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">destination_business_entity_id</code> parameter.</li>\n</ol>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">For the deprecated resource:</p>\n<ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resources, the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active_id</code> is set to match the resource <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>.</li>\n<li class=\"text-base leading-relaxed\">The value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> is changed to a new random value.</li>\n</ol>\n</li>\n</ol><h4>Considerations for business entity transfer</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When this API is endpoint is called, Chargebee blocks concurrent calls to incompatible <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">POST</code> operations.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When a resource is transferred more than once, each transfer deprecates the previous active resource and creates a new active resource.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> resources linked to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> are immediately transferred to the destination business entity.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resources linked to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> are transferred automatically to the destination business entity as follows:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> subscription resources are transferred on their next renewal.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code> subscription resources are transferred when resumed.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code> subscription resources are transferred on their <code><a href=\"/docs/api/subscriptions/subscription-object#start_date\">start_date</a></code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> subscription resources are not transferred and remain linked to the deprecated customer resource.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Other resources linked to the customer, such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code>, remain linked to the deprecated customer resource.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Deprecated <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resources are not returned in list APIs such as <a href=\"/docs/api/customers/list-customers\">List customers</a> or <a href=\"/docs/api/subscriptions/list-subscriptions\">List subscriptions</a>.</p>\n</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/mbe-data-management-actions.html\" target=\"_blank\">Permitted operations</a> on deprecated and active resources.</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"https://www.chargebee.com/docs/2.0/mbe-about-resources-and-managing-associated-workflow-processes.html\" target=\"_blank\">Additional considerations for business entity transfer.</a>\n</li>\n</ul></div><h4>Example</h4><p class=\"mb-2\">The following example illustrates the transfer of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource from a business entity (source) to another (destination). The example also shows how <code><a href=\"/docs/api/payment_sources\">payment_source</a></code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> resources attached to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource are affected.</p><h5>1. Initial state before the transfer</h5><p class=\"mb-2\">Imagine a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nresource with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Ab6dRFt</code>\nbelonging to the business entity <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">acme-us</code>\n. This customer has a linked <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>\n, and an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>\n.</p><docs-snippet>screenshot|/images/transfer_resource_1.jpg</docs-snippet><h5>2. Invoking the API endpoint</h5><p class=\"mb-2\">To transfer the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource to a new business entity <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">acme-eu</code>, you would call the endpoint as follows:</p><pre><code class=\"language-shell\">\ncurl  https://{site}.chargebee.com/api/v2/business_entities/transfers \\\n-u {api_key}:\\\n-d active_resource_ids[0]=&quot;Ab6dRFt&quot; \\\n-d destination_business_entity_ids[0]=&quot;acme-us&quot; \\\n-d reason_code[0]=&quot;correction&quot;\n    \n</code></pre><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is deprecated in favor of a new active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource. Notice that the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the deprecated <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is transferred to the new, active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource. Meanwhile, the deprecated resource is assigned a new random <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>.</p><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> resource is also deprecated and a new active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code> resource is created and linked to the new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource. Here too, the active resource adopts the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the deprecated <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code>, which in turn is assigned a new random <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>.</p><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> resources remain linked to the deprecated <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource.</p><docs-snippet>screenshot|/images/transfer_resource_2.jpg</docs-snippet><h5>3. Transfer of linked <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resources</h5><p class=\"mb-2\">When the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> renews, it automatically transfers to the business entity of the active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource. This process mirrors the transfer of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource, resulting in a new active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource linked to the active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource and the business entity <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">acme-eu</code>.</p><docs-snippet>screenshot|/images/transfer_resource_3.jpg</docs-snippet></div></div></div>",
        "operationId" : "transfer_resources_to_another_business_entity",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "active_resource_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of unique identifiers of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resources to be transferred. Each <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> must belong to an active <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nIf a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource was deprecated because it was moved previously, you cannot move it again. Instead, move the active version of the resource. Do this by passing the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active_id</code> of the deprecated resource.</p></div>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "example" : null
                  },
                  "destination_business_entity_ids" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of unique identifiers of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity</code> resources to which the corresponding <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource must be transferred.</p>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "example" : null
                  },
                  "reason_codes" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The list of <a href=\"/docs/api/business_entity_transfers/business_entity_transfer-object#reason_code\">reasons</a>\nfor changing the business entity of the corresponding <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nresources.</p>",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "example" : null
                  }
                },
                "required" : [ "active_resource_ids", "destination_business_entity_ids", "reason_codes" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "business_entity_transfer" : {
                      "$ref" : "#/components/schemas/BusinessEntityTransfer",
                      "description" : "<p class=\"mb-2\">Resource object representing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_transfer</code>\n.</p>"
                    }
                  },
                  "required" : [ "business_entity_transfer" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/purchases" : {
      "post" : {
        "summary" : "Create a purchase",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-purchases\"></span><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource and its associated operations on this page are deprecated. Avoid using them in your integrations. The ability to purchase multiple plans in a single subscription will be supported through the <a href=\"/docs/api/subscriptions\">Subscriptions API</a> in the future.</p></div><p class=\"mb-2\">Creates a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource. A purchase can contain one or more of the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">subscriptions (a <code><a href=\"/docs/api/subscriptions\">subscription</a></code> resource consists of item prices such that at least one of the item prices belongs to an <code><a href=\"/docs/api/items\">item</a></code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.)</li>\n<li class=\"text-base leading-relaxed\">group of one-time charges (aka <a href=\"/docs/api/item_prices\">charge item prices</a>)</li>\n</ul><p class=\"mb-2\">When you call this API, the invoices for the subscription(s) and one-time charge(s) are created immediately and not left <a href=\"/docs/api/subscriptions/create-subscription-for-items#invoice_immediately\">unbilled</a>\n.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Providing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_addresses[]</code> is required when the <a href=\"https://www.chargebee.com/docs/2.0/orders.html#configuration_step-1-configure-site-wide-settings\">Orders feature</a> has been enabled.</p></div><h3>Specifying <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_item</code> groups</h3><p class=\"mb-2\">When creating a purchase, you must specify the <em class=\"italic\">group</em> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">index</code> to which each item price belongs. You can do this by setting the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code> for each item price. Item prices with the same <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code> belong to the same group.\nThe grouping of item prices allows you to specify the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[]</code> applicable for each group and indicate which item prices should be added to any subscriptions you want to create. Groups can be one of two types:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Subscription groups</li>\n<li class=\"text-base leading-relaxed\">One-time charge groups</li>\n</ul><p class=\"mb-2\">The following subsections describe the types of groups in detail.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">You can specify up to 10 groups,</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">with a recommended subscription group of 5. To increase this limit to a maximum of 8, contact eap@chargebee.com.</li>\n<li class=\"text-base leading-relaxed\">with a maximum of 10 one-time charge groups by default.</li>\n</ul><p class=\"mb-2\">The total limit for group items for a single purchase is 60.</p></div><h4>Subscription groups</h4><p class=\"mb-2\">To create a subscription, specify a <em class=\"italic\">subscription group</em>. A subscription <a href=\"/docs/api/purchases\">group</a> is a group of item prices that contains exactly one item price of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>. To create multiple subscriptions, provide multiple subscription groups.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">A subscription group can have up to 20 non-plan item prices. To increase this limit to a maximum of 60, contact eap@chargebee.com.</p></div><h4>Custom Fields</h4><p class=\"mb-2\">Purchase API supports custom fields of Subscriptions, use the following format to specify custom fields in Purchase API: <strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_info[custom_field]</code></strong>.</p><h4>One-time charge groups</h4><p class=\"mb-2\">A one-time charge <a href=\"/docs/api/purchases\">group</a> is a group of charge item prices (i.e. item prices belonging to items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>). Charge item prices can be added to subscription groups as well. The charges within and across each one-time group must be unique.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A one-time charge group can have up to 20 item prices. To increase this limit to a maximum of 60, contact eap@chargebee.com.</li>\n<li class=\"text-base leading-relaxed\">A charge item price can only be added to a single one-time charge group. However, it can be part of multiple <a href=\"/docs/api/purchases\">subscription groups</a>.</li>\n</ul></div><h3>Applying discounts</h3><p class=\"mb-2\">Discounts, both <a href=\"/docs/api/discounts\">manual discounts</a> and <a href=\"/docs/api/coupons\">coupons</a>, can be applied to groups by specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[]</code> array. The following table describes the method of application based on whether <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[index][i]</code> is provided:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><thead><tr><td class=\"cbTd\"></td><td class=\"cbTd\"><strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[index][i]</code> is provided</strong></td><td class=\"cbTd\"><strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[index][i]</code> is not provided</strong></td></tr></thead><tbody><tr><td><strong class=\"font-semibold\">Coupons</strong></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The coupon is applied exclusively to the invoice for group <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>.</li>\n<li class=\"text-base leading-relaxed\">The coupon is applied exclusively to the invoice created immediately upon invoking this API.</li>\n<li class=\"text-base leading-relaxed\">If group <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code> is a <a href=\"/docs/api/purchases\">subscription group</a>, then the coupon is applied to invoices for subscription renewals based on coupon attributes such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">max_redemptions</code>.</li>\n</ul></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The coupon is applied to all the invoices immediately generated upon invoking this API.</li>\n<li class=\"text-base leading-relaxed\">The coupon is not applied to subsequent invoices, such as those generated upon subscription renewal.</li>\n</ul></td></tr><tr><td><strong class=\"font-semibold\">Manual discounts</strong></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The manual discount is applied exclusively to the invoice for group <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>.</li>\n<li class=\"text-base leading-relaxed\">The manual discount is applied exclusively to the invoice created immediately upon invoking this API.</li>\n<li class=\"text-base leading-relaxed\">The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal.</li>\n</ul></td><td><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The manual discount is applied to all the invoices immediately generated upon invoking this API.</li>\n<li class=\"text-base leading-relaxed\">The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal.</li>\n</ul></td></tr></tbody></table></div></div>",
        "operationId" : "create_a_purchase",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier of the [customer](/docs/api/customers)\nthat made this purchase.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Payment source attached to this purchase. If present, the customer's payment sources won't be used to collect any payment for this purchase.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "replace_primary_payment_source" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether the primary payment source is replaced with this payment source. If a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code>\nobject is included in the request, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">replace_primary</code>\ndefaults to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\nFor all other cases, the default is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                    "example" : null
                  },
                  "invoice_info" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for invoice_info\n",
                    "properties" : {
                      "po_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [purchase order number](https://www.chargebee.com/docs/2.0/po-number.html)\nfor this purchase. This is reflected in all the subscriptions and invoices under this purchase.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "notes" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A customer-facing note added to the PDF of the first invoice associated with this purchase. This is added to [invoice.notes](/docs/api/invoices/invoice-object#notes).\nSubsequent invoices do not have this note.\n",
                        "maxLength" : 2000,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_schedule" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule</code></p>",
                    "properties" : {
                      "scheme_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule_scheme</code>\n, used to create the payment schedules.</p>\n<span featureId=\"cb-payment-schedules\" isMicro=\"true\"></span>",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The part of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>\nto be distributed across the payment schedules. If not specified, the entire <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>\nis considered by default.</p>\n<span featureId=\"cb-payment-schedules\" isMicro=\"true\"></span>",
                        "minimum" : 0,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "statement_descriptor" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for statement_descriptor\n",
                    "properties" : {
                      "descriptor" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Payment transaction descriptor text to help your customer easily recognize the transaction. When you pass this value it will override the [transaction descriptor](https://www.chargebee.com/docs/2.0/transaction_descriptors.html)\ntext configured on your Chargebee site for the first [consolidated invoice](https://www.chargebee.com/docs/2.0/consolidated-invoicing.html)\n.\n",
                        "maxLength" : 65000,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "payment_intent" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for payment_intent\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 150,
                        "example" : null
                      },
                      "gateway_account_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 50,
                        "example" : null
                      },
                      "gw_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "payment_method_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The list of payment method types (For example, card, ideal, sofort, bancontact, etc.) this Payment Intent is allowed to use. If payment method type is empty, Card is taken as the default type for all gateways except Razorpay.\n",
                        "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                        "example" : null
                      },
                      "reference_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "additional_information" : {
                        "type" : "object",
                        "additionalProperties" : true,
                        "deprecated" : false,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "purchase_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for purchase_items\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "The index or identifier of the [group](/docs/api/purchases)\nto which the item price belongs. The item prices assigned the same index belong to the same group.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the [item price](/docs/api/item_prices)\nto be added to the [group](/docs/api/purchases)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The quantity of the item price. Applicable only when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing model</a>\nof the item price is anything other than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nYou can provide this value whether <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled or disabled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "The price or per unit price of the item. You may provide this only when [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of the item purchased. By default <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled for purchase API, it is recommended to use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[quantity_in_decimal][0..n]</code>\nfor providing quantity-based item prices when multi-decimal pricing is enabled. When multi-decimal pricing is disabled provide the value in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[quantity][0..n]</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index", "item_price_id" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/purchases\">group</a>\nto which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code>\narray.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique ID of the item price to which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[item_price_id]</code>\narray.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The lowest value of quantity in this tier; this is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the very next lower tier.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The highest value of quantity in this tier. For all other tiers,it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the very next higher tier.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the total price of the item. The currency units in which this value is expressed <a href=\"/docs/api/currencies\">depends</a>\non the type of currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index" ],
                    "example" : null
                  },
                  "shipping_addresses" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_addresses\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The first name of the contact. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The last name of the contact. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "email" : {
                        "type" : "array",
                        "description" : "The email address.\n",
                        "items" : {
                          "type" : "string",
                          "format" : "email",
                          "deprecated" : false,
                          "maxLength" : 70,
                          "example" : null
                        },
                        "example" : null
                      },
                      "company" : {
                        "type" : "array",
                        "description" : "The company name.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "phone" : {
                        "type" : "array",
                        "description" : "The phone number.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line1" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Address line 1. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line2" : {
                        "type" : "array",
                        "description" : "Address line 2\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line3" : {
                        "type" : "array",
                        "description" : "Address line 3\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "city" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The name of the city. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "state" : {
                        "type" : "array",
                        "description" : "The state/province name.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "country" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>.\nThis parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "zip" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Zip or postal code. The number of characters is validated according to the rules <a href=\"https://chromium-i18n.appspot.com/ssl-address\" target=\"_blank\" rel=\"noopener noreferrer\">specified here</a>.\nThis parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 20,
                          "example" : null
                        },
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "not_validated",
                          "deprecated" : false,
                          "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                          "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/purchases\">group</a>\nto which this discount or coupon information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code> array. When not provided, the coupon is applied to the first invoice only; irrespective of the values set for <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">coupon.duration_type</a></code>or <code><a href=\"/docs/api/coupons/coupon-object#max_redemptions\">coupon.max_redemptions</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "coupon_id" : {
                        "type" : "array",
                        "description" : "The unique ID of a coupon to be applied to the group. Alternatively, you may provide a [coupon code](/docs/api/coupon_codes). Applicable only for [coupons](/docs/api/coupons).  \n**See also:**\n[Applying discounts](/docs/api/purchases)\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The percentage of the discount. Applicable only for <a href=\"/docs/api/discounts\">manual discounts</a>. For any given array index <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>, provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[percentage][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[quantity][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][i]</code></p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount quantity. Applicable only for <a href=\"/docs/api/discounts\">manual discounts</a>. For any given array index <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>, provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[percentage][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[quantity][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][i]</code></p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The absolute value of the discount. The currency units in which this value is expressed <a href=\"/docs/api/currencies\">depends</a> on the type of currency. Applicable only for <a href=\"/docs/api/discounts\">manual discounts</a>.\nFor any given array index <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>, you can provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[percentage][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[quantity][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][i]</code></p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">For <a href=\"/docs/api/discounts\">manual discounts</a>, set this to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> if this manual discount should be excluded from monthly recurring revenue (MRR) calculations for the site. The following prerequisites must be met to allow this parameter to be passed:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The feature must be <a href=\"https://www.chargebee.com/docs/2.0/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">enabled in Chargebee</a>.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/2.0/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level</a> setting must be to include coupons in MRR calculations.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong>\n<a href=\"/docs/api/purchases\">Applying discounts</a></p></div>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_info" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_info\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/purchases\">group</a>\nto which this subscription information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code>\narray and the group must be a <a href=\"/docs/api/purchases\">subscription group</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "array",
                        "description" : "When specifying a [subscription group](/docs/api/purchases)\n, this is the unique identifier of the [subscription](/docs/api/subscriptions)\nto be created. This value must be unique for each subscription group.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "meta_data" : {
                        "type" : "array",
                        "description" : "A collection of key-value pairs that provides extra information about the purchase.  \n**Note:**\nThere's a character limit of 65,535.\n\n[Learn more](/docs/api/advanced-features)\n.\n",
                        "items" : {
                          "type" : "object",
                          "additionalProperties" : true,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index" ],
                    "example" : null
                  },
                  "contract_terms" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_terms\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index number of the subscription/one-time group to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">9</code>\n(inclusive) for each group that is to be created. To increase this limit, contact Chargebee Support</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "action_at_term_end" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "renew",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>",
                          "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index" ],
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "contract_terms" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "invoice_info" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_intent" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "payment_schedule" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "purchase_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_addresses" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "statement_descriptor" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_info" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "purchase" : {
                      "$ref" : "#/components/schemas/Purchase",
                      "description" : "<p class=\"mb-2\">Resource object representing purchase</p>"
                    }
                  },
                  "required" : [ "purchase" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/purchases/estimate" : {
      "post" : {
        "summary" : "Estimates for purchase",
        "description" : "<div class=\"api-description\"><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource and its associated operations on this page are deprecated. Avoid using them in your integrations. The ability to purchase multiple plans in a single subscription will be supported through the <a href=\"/docs/api/subscriptions\">Subscriptions API</a> in the future.</p></div><p class=\"mb-2\">Returns an estimate for creating a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource. The operation works exactly like <a href=\"/docs/api/purchases/create-a-purchase\">Create a purchase</a>, except that only an <code><a href=\"/docs/api/estimates\">estimate</a></code> resource is returned without an actual <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource being created.</p></div>",
        "operationId" : "estimates_for_purchase",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "client_profile_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Indicates the Client profile id for the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier of the [customer](/docs/api/customers)\nthat made this purchase.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "vat_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "VAT number of this customer. If not provided then taxes are not calculated for the estimate. Applicable only when taxes are configured for the EU or UK region. VAT validation is not done for this.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "vat_number_prefix" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
                        "maxLength" : 10,
                        "example" : null
                      },
                      "registered_for_gst" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
                        "example" : null
                      },
                      "taxability" : {
                        "type" : "string",
                        "default" : "taxable",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies if the customer is liable for tax</p>\n* exempt - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Customer is exempted from tax. When using Chargebee&#x27;s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li>\n<li class=\"text-base leading-relaxed\">However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code> attributes if you use Chargebee&#x27;s <a href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\" target=\"_blank\">AvaTax for Sales</a> or specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee&#x27;s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> based on the state/region/province of the taxable address.</li>\n</ul>\n* taxable - <p class=\"mb-2\">Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>.\nIn some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that&#x27;s not available either, the tax is taken as zero.</p>",
                        "enum" : [ "taxable", "exempt" ],
                        "example" : null
                      },
                      "entity_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The exemption category of the customer, for USA and Canada. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n\\* med2 -\n\nUS Medical Device Excise Tax with taxable sales tax\n\\* med1 -\n\nUS Medical Device Excise Tax with exempt sales tax\n\\* b -\n\nState government\n\\* c -\n\nTribe/Status Indian/Indian Band\n\\* a -\n\nFederal government\n\\* f -\n\nReligious organization\n\\* g -\n\nResale\n\\* d -\n\nForeign diplomat\n\\* e -\n\nCharitable or benevolent organization\n\\* j -\n\nDirect pay permit\n\\* k -\n\nDirect mail\n\\* h -\n\nCommercial agricultural production\n\\* i -\n\nIndustrial production/manufacturer\n\\* n -\n\nLocal government\n\\* l -\n\nOther or custom\n\\* m -\n\nEducational organization\n\\* r -\n\nNon-resident\n\\* p -\n\nCommercial aquaculture\n\\* q -\n\nCommercial Fishery\n",
                        "enum" : [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p", "q", "r", "med1", "med2" ],
                        "example" : null
                      },
                      "exempt_number" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Any string value that will cause the sale to be exempted. Use this if your finance team manually verifies and tracks exemption certificates. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "exemption_details" : {
                        "type" : "array",
                        "deprecated" : false,
                        "description" : "Indicates the exemption information. You can customize customer exemption based on specific Location, Tax level (Federal, State, County and Local), Category of Tax or specific Tax Name. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\nTo know more about what values you need to provide, refer to this [Avalara's API document](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/exemption/)\n.\n",
                        "items" : {
                          "example" : null
                        },
                        "example" : null
                      },
                      "customer_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates the type of the customer. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* business -\n\nWhen the purchase is made at a place of business\n\\* residential -\n\nWhen the purchase is made by a customer for home use\n\\* industrial -\n\nWhen the purchase is made by an industrial business\n\\* senior_citizen -\n\nWhen the purchase is made by a customer who meets the jurisdiction requirements to be considered a senior citizen and qualifies for senior citizen tax breaks\n",
                        "enum" : [ "residential", "business", "senior_citizen", "industrial" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "purchase_items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for purchase_items\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "The index or identifier of the [group](/docs/api/purchases)\nto which the item price belongs. The item prices assigned the same index belong to the same group.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the [item price](/docs/api/item_prices)\nto be added to the [group](/docs/api/purchases)\n.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The quantity of the item price. Applicable only when the <a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing model</a>\nof the item price is anything other than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nYou can provide this value whether <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled or disabled.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "default" : 1,
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "array",
                        "description" : "The price or per unit price of the item. You may provide this only when [price overriding](https://www.chargebee.com/docs/2.0/price-override.html)\nis enabled for the site.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of the item purchased. By default <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled for purchase API, it is recommended to use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[quantity_in_decimal][0..n]</code>\nfor providing quantity-based item prices when multi-decimal pricing is enabled. When multi-decimal pricing is disabled provide the value in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[quantity][0..n]</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index", "item_price_id" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for item_tiers\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/purchases\">group</a>\nto which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code>\narray.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique ID of the item price to which this tier information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[item_price_id]</code>\narray.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The lowest value of quantity in this tier; this is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the very next lower tier.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The highest value of quantity in this tier. For all other tiers,it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the very next higher tier.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the total price of the item. The currency units in which this value is expressed <a href=\"/docs/api/currencies\">depends</a>\non the type of currency.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index" ],
                    "example" : null
                  },
                  "shipping_addresses" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_addresses\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The first name of the contact. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The last name of the contact. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "email" : {
                        "type" : "array",
                        "description" : "The email address.\n",
                        "items" : {
                          "type" : "string",
                          "format" : "email",
                          "deprecated" : false,
                          "maxLength" : 70,
                          "example" : null
                        },
                        "example" : null
                      },
                      "company" : {
                        "type" : "array",
                        "description" : "The company name.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 250,
                          "example" : null
                        },
                        "example" : null
                      },
                      "phone" : {
                        "type" : "array",
                        "description" : "The phone number.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line1" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Address line 1. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line2" : {
                        "type" : "array",
                        "description" : "Address line 2\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "line3" : {
                        "type" : "array",
                        "description" : "Address line 3\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 150,
                          "example" : null
                        },
                        "example" : null
                      },
                      "city" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The name of the city. This parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "state" : {
                        "type" : "array",
                        "description" : "The state/province name.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "country" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>.\nThis parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "zip" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Zip or postal code. The number of characters is validated according to the rules <a href=\"https://chromium-i18n.appspot.com/ssl-address\" target=\"_blank\" rel=\"noopener noreferrer\">specified here</a>.\nThis parameter is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code>\nwhen providing shipping information.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 20,
                          "example" : null
                        },
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "not_validated",
                          "deprecated" : false,
                          "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                          "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/purchases\">group</a>\nto which this discount or coupon information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code> array. When not provided, the coupon is applied to the first invoice only; irrespective of the values set for <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">coupon.duration_type</a></code>or <code><a href=\"/docs/api/coupons/coupon-object#max_redemptions\">coupon.max_redemptions</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "coupon_id" : {
                        "type" : "array",
                        "description" : "The unique ID of a coupon to be applied to the group. Alternatively, you may provide a [coupon code](/docs/api/coupon_codes). Applicable only for [coupons](/docs/api/coupons).  \n**See also:**\n[Applying discounts](/docs/api/purchases)\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The percentage of the discount. Applicable only for <a href=\"/docs/api/discounts\">manual discounts</a>. For any given array index <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>, provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[percentage][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[quantity][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][i]</code></p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount quantity. Applicable only for <a href=\"/docs/api/discounts\">manual discounts</a>. For any given array index <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>, provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[percentage][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[quantity][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][i]</code></p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The absolute value of the discount. The currency units in which this value is expressed <a href=\"/docs/api/currencies\">depends</a> on the type of currency. Applicable only for <a href=\"/docs/api/discounts\">manual discounts</a>.</p>\n<p class=\"mb-2\">For any given array index <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code>, provide <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[percentage][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[quantity][i]</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[amount][i]</code></p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong></p><a href=\"/docs/api/purchases\">Applying discounts</a></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">For <a href=\"/docs/api/discounts\">manual discounts</a>, set this to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> if this manual discount should be excluded from monthly recurring revenue (MRR) calculations for the site. The following prerequisites must be met to allow this parameter to be passed:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The feature must be <a href=\"https://www.chargebee.com/docs/2.0/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">enabled in Chargebee</a>.</li>\n<li class=\"text-base leading-relaxed\">The <a href=\"https://www.chargebee.com/docs/2.0/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level</a> setting must be to include coupons in MRR calculations.</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong>\n<a href=\"/docs/api/purchases\">Applying discounts</a></p></div>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription_info" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for subscription_info\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/purchases\">group</a>\nto which this subscription information belongs. This must be a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_items[index]</code>\narray and the group must be a <a href=\"/docs/api/purchases\">subscription group</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "array",
                        "description" : "When specifying a [subscription group](/docs/api/purchases)\n, this is the unique identifier of the [subscription](/docs/api/subscriptions)\nto be created. This value must be unique for each subscription group.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "The number of billing cycles the subscription runs before canceling. If not provided, then the billing cycles [set for the plan-item price](/docs/api/item_prices/item_price-object#billing_cycles)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "contract_term_billing_cycle_on_renewal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index" ],
                    "example" : null
                  },
                  "contract_terms" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_terms\n",
                    "properties" : {
                      "index" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The index number of the subscription/one-time group to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">9</code>\n(inclusive) for each group that is to be created. To increase this limit, contact Chargebee Support</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "action_at_term_end" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "renew",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                          "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "index" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_terms" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "purchase_items" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_addresses" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription_info" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "estimate" : {
                      "$ref" : "#/components/schemas/Estimate",
                      "description" : "<p class=\"mb-2\">Resource object representing estimate</p>"
                    }
                  },
                  "required" : [ "estimate" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/customers/{customer-id}/payment_vouchers" : {
      "get" : {
        "summary" : "List vouchers for a customer",
        "description" : "Retrieves vouchers for a customer in reverse chronological order.\n",
        "operationId" : "list_vouchers_for_a_customer",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "customer-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/customer-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nCurrent status of Payment Voucher. Possible values are : active, consumed, expired, failure.\n\n**Supported operators :**\nis, is_not, in, not_in, in, not_in\n\n**Example →**\n*status\\[is\\] = \"active, consumed, expired\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active, consumed, expired",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "pattern" : "^\\[(active|consumed|expired|failure)(,(active|consumed|expired|failure))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "pattern" : "^\\[(active|consumed|expired|failure)(,(active|consumed|expired|failure))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ndate, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"date\"*\n\nThis will sort the result based on the 'date' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "payment_voucher" : {
                            "$ref" : "#/components/schemas/PaymentVoucher",
                            "description" : "Resource object representing payment_voucher"
                          }
                        },
                        "required" : [ "payment_voucher" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/invoices/{invoice-id}/payment_vouchers" : {
      "get" : {
        "summary" : "List vouchers for an invoice",
        "description" : "Retrieves vouchers for an invoice in reverse chronological order.\n",
        "operationId" : "list_vouchers_for_an_invoice",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "invoice-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/invoice-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nCurrent status of Payment Voucher. Possible values are : active, consumed, expired, failure.\n\n**Supported operators :**\nis, is_not, in, not_in, in, not_in\n\n**Example →**\n*status\\[is_not\\] = \"active, consumed, expired\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "active, consumed, expired",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "pattern" : "^\\[(active|consumed|expired|failure)(,(active|consumed|expired|failure))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`active\\` - Active and ready to be consumed \\* \\`consumed\\` - Consumed for a transaction and cannot be used again \\* \\`expired\\` - Expired before consumed and cannot be used again \\* \\`failure\\` - Failed to create the voucher due to gateway rejection\n",
                "enum" : [ "active", "consumed", "expired", "failure" ],
                "pattern" : "^\\[(active|consumed|expired|failure)(,(active|consumed|expired|failure))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\ndate, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"date\"*\n\nThis will sort the result based on the 'date' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "date", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "payment_voucher" : {
                            "$ref" : "#/components/schemas/PaymentVoucher",
                            "description" : "Resource object representing payment_voucher"
                          }
                        },
                        "required" : [ "payment_voucher" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_vouchers/{payment-voucher-id}" : {
      "get" : {
        "summary" : "Retrieve voucher data",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Retrieves a voucher using the unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_voucher_id</code>\n.</p></div>",
        "operationId" : "retrieve_voucher_data",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "payment-voucher-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/payment-voucher-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_voucher" : {
                      "$ref" : "#/components/schemas/PaymentVoucher",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_voucher</p>"
                    }
                  },
                  "required" : [ "payment_voucher" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_vouchers" : {
      "post" : {
        "summary" : "Create a voucher for the customer to initiate payment",
        "description" : "Creates a voucher type payment source. If you create this voucher type payment source using customer details, like tax ID, you can then generate a voucher with that payment source.\n",
        "operationId" : "create_a_voucher_for_the_customer_to_initiate_payment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier of the customer for whom you want to create the voucher.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "payment_source_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The identifier of the payment source used for generating the voucher.\n",
                    "maxLength" : 40,
                    "example" : null
                  },
                  "voucher_payment_source" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for voucher_payment_source\n",
                    "properties" : {
                      "voucher_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of voucher-based payment source.\n\\* boleto -\n\nThe payment source is Boleto.\n",
                        "enum" : [ "boleto" ],
                        "example" : null
                      }
                    },
                    "required" : [ "voucher_type" ],
                    "example" : null
                  },
                  "invoice_allocations" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_allocations</code></p>",
                    "properties" : {
                      "invoice_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the invoice. You can pass multiple invoices IDs.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "invoice_id" ],
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "invoice_allocations" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "voucher_payment_source" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_voucher" : {
                      "$ref" : "#/components/schemas/PaymentVoucher",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_voucher</p>"
                    }
                  },
                  "required" : [ "payment_voucher" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/csv_tax_rules" : {
      "post" : {
        "summary" : "Taxes Csv import",
        "operationId" : "taxes_csv_import",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "tax_profile_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "country" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "state" : {
                    "type" : "string",
                    "default" : "*",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "zip_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "zip_code_start" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "example" : null
                  },
                  "zip_code_end" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "example" : null
                  },
                  "tax1_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "tax1_rate" : {
                    "type" : "number",
                    "format" : "double",
                    "deprecated" : false,
                    "maximum" : 100,
                    "minimum" : 0,
                    "example" : null
                  },
                  "tax1_juris_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                    "example" : null
                  },
                  "tax1_juris_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "tax1_juris_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "tax2_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "tax2_rate" : {
                    "type" : "number",
                    "format" : "double",
                    "deprecated" : false,
                    "maximum" : 100,
                    "minimum" : 0,
                    "example" : null
                  },
                  "tax2_juris_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                    "example" : null
                  },
                  "tax2_juris_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "tax2_juris_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "tax3_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "tax3_rate" : {
                    "type" : "number",
                    "format" : "double",
                    "deprecated" : false,
                    "maximum" : 100,
                    "minimum" : 0,
                    "example" : null
                  },
                  "tax3_juris_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                    "example" : null
                  },
                  "tax3_juris_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "tax3_juris_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "tax4_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "tax4_rate" : {
                    "type" : "number",
                    "format" : "double",
                    "deprecated" : false,
                    "maximum" : 100,
                    "minimum" : 0,
                    "example" : null
                  },
                  "tax4_juris_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                    "example" : null
                  },
                  "tax4_juris_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "tax4_juris_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 250,
                    "example" : null
                  },
                  "service_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "enum" : [ "digital", "other", "not_applicable" ],
                    "example" : null
                  },
                  "time_zone" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 4,
                    "example" : null
                  },
                  "valid_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "example" : null
                  },
                  "valid_till" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "example" : null
                  },
                  "overwrite" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "csv_tax_rule" : {
                      "$ref" : "#/components/schemas/CsvTaxRule",
                      "description" : "Resource object representing csv_tax_rule"
                    }
                  },
                  "required" : [ "csv_tax_rule" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/currencies/{site-currency-id}/add_schedule" : {
      "post" : {
        "summary" : "Add schedule",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API is used to schedule exchange rate modification for a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\ncurrency.</p></div>",
        "operationId" : "add_schedule",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "site-currency-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/site-currency-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "manual_exchange_rate" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This parameter allows you to pass the exchange rate in decimal format. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\nyou have to set the exchange rate for additional currencies in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual_exchange_rate</code>\nparameter. A maximum of <strong class=\"font-semibold\">nine</strong>\ndecimal values are allowed to pass in this field.</p>",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "schedule_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "Timestamp at which the exchange rate scheduled has to be updated in your site. This timestamp must be a future date.\n",
                    "example" : null
                  }
                },
                "required" : [ "manual_exchange_rate", "schedule_at" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "scheduled_at" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "example" : null
                    },
                    "currency" : {
                      "$ref" : "#/components/schemas/Currency",
                      "description" : "<p class=\"mb-2\">Resource object representing currency</p>"
                    }
                  },
                  "required" : [ "currency", "scheduled_at" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/currencies" : {
      "post" : {
        "summary" : "Add a new currency",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API is used to add a new currency to your Chargebee site. Prior to using this API, ensure that the <a href=\"https://www.chargebee.com/docs/2.0/multi-currency-pricing.html#1-adding-and-managing-currencies\" target=\"_blank\">multi-currency feature</a>\nis enabled.\nIf the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\n, you can specify the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual_exchange_rate</code>\n. Additionally, the currency code provided must adhere to the three-letter ISO standard currency codes.</p></div>",
        "operationId" : "add_a_new_currency",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "currency_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A three letter currency code. For example, GBR, INR, and more.\n",
                    "maxLength" : 3,
                    "example" : null
                  },
                  "forex_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This represents the exchange rate type set for the currency.</p>\n* auto - <p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto</code>\n, conversion rate will be auto updated by Chargebee every day with third party providers (using external currency conversion providers)</p>\n* manual - <p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\n, you will be able to set the conversion rate for the currency. You need to update the exchange rate each time your exchange rate provider changes it</p>",
                    "enum" : [ "manual", "auto" ],
                    "example" : null
                  },
                  "manual_exchange_rate" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This parameter allows you to pass the exchange rate in decimal format. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\nyou have to set the exchange rate for additional currencies in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual_exchange_rate</code>\nparameter. A maximum of <strong class=\"font-semibold\">nine</strong>\ndecimal values are allowed to pass in this field.</p>",
                    "maxLength" : 20,
                    "example" : null
                  }
                },
                "required" : [ "currency_code", "forex_type" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "currency" : {
                      "$ref" : "#/components/schemas/Currency",
                      "description" : "<p class=\"mb-2\">Resource object representing currency</p>"
                    }
                  },
                  "required" : [ "currency" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/currencies/{site-currency-id}" : {
      "get" : {
        "summary" : "Retrieve a currency",
        "description" : "This API is used to retrieve an individual currency object configured within this site.\n",
        "operationId" : "retrieve_a_currency",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "site-currency-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/site-currency-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "currency" : {
                      "$ref" : "#/components/schemas/Currency",
                      "description" : "<p class=\"mb-2\">Resource object representing currency</p>"
                    }
                  },
                  "required" : [ "currency" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a currency",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API is used to update the configured currencies within your Chargebee site.\nAdditionally, If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\n, you can specify the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual_exchange_rate</code>\n.</p></div>",
        "operationId" : "update_a_currency",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "site-currency-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/site-currency-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "forex_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This represents the exchange rate type set for the currency.</p>\n* auto - <p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto</code>\n, conversion rate will be auto updated by Chargebee every day with third party providers (using external currency conversion providers)</p>\n* manual - <p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\n, you will be able to set the conversion rate for the currency. You need to update the exchange rate each time your exchange rate provider changes it</p>",
                    "enum" : [ "manual", "auto" ],
                    "example" : null
                  },
                  "manual_exchange_rate" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">This parameter allows you to pass the exchange rate in decimal format. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\nyou have to set the exchange rate for additional currencies in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual_exchange_rate</code>\nparameter. A maximum of <strong class=\"font-semibold\">nine</strong>\ndecimal values are allowed to pass in this field.</p>",
                    "maxLength" : 20,
                    "example" : null
                  }
                },
                "required" : [ "forex_type" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "currency" : {
                      "$ref" : "#/components/schemas/Currency",
                      "description" : "<p class=\"mb-2\">Resource object representing currency</p>"
                    }
                  },
                  "required" : [ "currency" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/currencies/{site-currency-id}/remove_schedule" : {
      "post" : {
        "summary" : "Remove schedule",
        "description" : "This API allows you to remove a scheduled exchange rate from a currency.\n",
        "operationId" : "remove_schedule",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "site-currency-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/site-currency-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "scheduled_at" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "example" : null
                    },
                    "currency" : {
                      "$ref" : "#/components/schemas/Currency",
                      "description" : "<p class=\"mb-2\">Resource object representing currency</p>"
                    }
                  },
                  "required" : [ "currency", "scheduled_at" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/currencies/list" : {
      "get" : {
        "summary" : "List currencies",
        "description" : "This API is used to retrieve the list of all currencies currently configured within the site.\n",
        "operationId" : "list_currencies",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "currency" : {
                            "$ref" : "#/components/schemas/Currency",
                            "description" : "Resource object representing currency"
                          }
                        },
                        "required" : [ "currency" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/ramps/{ramp-id}" : {
      "get" : {
        "summary" : "Retrieve a subscription ramp",
        "description" : "Retrieves a specific subscription ramp.\n",
        "operationId" : "retrieve_a_ramp",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "ramp-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/ramp-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "ramp" : {
                      "$ref" : "#/components/schemas/Ramp",
                      "description" : "<p class=\"mb-2\">Resource object representing ramp</p>"
                    }
                  },
                  "required" : [ "ramp" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/create_ramp" : {
      "post" : {
        "summary" : "Create a subscription ramp",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ramp\"></span><p class=\"mb-2\">Creates a ramp for a subscription.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Subscription status</strong>: You cannot create ramps for subscriptions in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> <code><a href=\"/docs/api/subscriptions/subscription-object#status\">status</a></code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Advance invoice</strong>: You cannot create ramps for subscriptions that have an <a href=\"/docs/api/advance_invoice_schedules\">advance invoice schedule</a>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Upcoming ramps limit</strong>: A subscription can have a maximum of 12 upcoming ramps at any given time, excluding deleted ramps. Upcoming ramps are ramps with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code><a href=\"/docs/api/ramps/ramp-object#status\">scheduled</a></code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Total ramps limit</strong>: A subscription can have a maximum of 100 ramps at any given time, excluding deleted ramps.</li>\n<li class=\"text-base leading-relaxed\">You cannot create a ramp for subscription, when ramps are in draft status.</li>\n</ul></div></div>",
        "operationId" : "create_a_ramp",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "effective_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time when this ramp takes effect.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Ensure the time is within <strong class=\"font-semibold\">five</strong> years from the current time.</li>\n<li class=\"text-base leading-relaxed\">Ensure there is a minimum 24-hour interval between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">effective_from</code> of two consecutive ramps.</li>\n<li class=\"text-base leading-relaxed\">If the subscription is scheduled to be paused or canceled in the future, ensure the time is not on or after <code><a href=\"/docs/api/subscriptions/subscription-object#pause_date\">pause_date</a></code> or <code><a href=\"/docs/api/subscriptions/subscription-object#cancelled_at\">cancelled_at</a></code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A brief summary of the pricing changes applied with this ramp.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "coupons_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of [coupons](/docs/api/coupons)\nremoved from the subscription through this ramp.  \n**Caution**\nEnsure this list does **not** include:\n\n* Coupons being added through this ramp.\n* Coupons already removed by a previous ramp.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "discounts_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of [discounts](/docs/api/discounts)\nremoved from the subscription through this ramp.  \n**Caution**\nEnsure this list does not include discounts already removed by a previous ramp.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of [item prices](/docs/api/item_prices)\nremoved from the subscription through this ramp.  \n**Caution**\nEnsure this list does **not** include:\n\n* Item prices being added or updated through this ramp.\n* Item prices already removed by a previous ramp.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "An object that specifies the contract term details.\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <p class=\"mb-2\">Used when you want to renew the contract term. Does the following:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renewal_billing_cycles</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renewal_billing_cycles</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <code><a href=\"/docs/api/contract_terms/contract_term-object#contract_end\">contract_end</a></code>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      },
                      "renewal_billing_cycles" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code><a href=\"/docs/api/contract_terms/contract_term-object#billing_cycle\">billing_cycles</a></code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/contract-terms#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site configuration</a>\n.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "items_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[item prices\\](/docs/api/item_prices) added to the subscription through this ramp.\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the item price.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Ensure this list does <strong class=\"font-semibold\">not</strong> include:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Item prices updated or removed through this ramp.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Item prices already in the subscription or added by a previous ramp.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The ramp should not change the <a href=\"/docs/api/item_prices/item_price-object#period\">billing period</a> of the subscription if an upcoming ramp already exists after <code><a href=\"/docs/api/ramps/create-a-ramp#effective_from\">effective_from</a></code> time.</p>\n</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>",
                          "enum" : [ "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "items_to_update" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[item prices\\](/docs/api/item_prices) updated in the subscription through this ramp.\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.  \n**Caution**\nEnsure this list:\n\n* Does not include any item price added or removed through this ramp.\n* Does not include any item price removed by a previous ramp.\n* Includes only item prices currently in the subscription or added by a previous ramp.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>",
                          "enum" : [ "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nAllowed only when both of these conditions are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Price overriding is enabled for the site.</li>\n<li class=\"text-base leading-relaxed\">pricing_model of the item price is either tiered, volume, or stairstep.</li>\n</ul></div>\n<p class=\"mb-2\">Replaces the existing item_tiers for specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>s within the subscription. You must provide the complete tier set for any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>, even if you&#x27;re changing the price for only one tier.</p>",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nfor which the tier price is being overridden.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong>\nThe identifier must correspond to an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> listed in either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">items_to_add</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">items_to_update</code>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/currencies)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupons_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[coupons\\](/docs/api/coupons) added to the subscription through this ramp.\n",
                    "properties" : {
                      "coupon_id" : {
                        "type" : "array",
                        "description" : "Unique ID of the coupon to be added.  \n**Caution**\n\n* Ensure this list does not include coupons being removed through this ramp.\n* [Coupon codes](/docs/api/coupon_codes) are not supported.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_till" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The date till when the coupon can be applied. Applicable for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n<a href=\"/docs/api/coupons\">coupons</a>\nonly.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[discounts\\](/docs/api/discounts) added to the subscription through this ramp.\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [depends on the kind of currency.](/docs/api/currencies)\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "apply_on", "duration_type" ],
                    "example" : null
                  }
                },
                "required" : [ "effective_from" ],
                "example" : null
              },
              "encoding" : {
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "coupons_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "items_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "items_to_update" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "ramp" : {
                      "$ref" : "#/components/schemas/Ramp",
                      "description" : "<p class=\"mb-2\">Resource object representing ramp</p>"
                    }
                  },
                  "required" : [ "ramp" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/ramps" : {
      "get" : {
        "summary" : "List subscription ramps",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ramp\"></span><p class=\"mb-2\">Lists the subscription ramps that match the criteria provided in the filter parameters.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nBy default, the ramps are returned <a href=\"/docs/api/ramps/list-ramps\">sorted</a> in descending order (latest first) by <code><a href=\"/docs/api/ramps/ramp-object#updated_at\">updated_at</a></code>.</p></div></div>",
        "operationId" : "list_ramps",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "include_deleted",
          "in" : "query",
          "description" : "If set to true, includes the deleted resources in the response. For the deleted resources in the response, the '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*deleted\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ' attribute will be '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* '.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : false,
            "example" : null
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, enumerated string filter</p></dfn>\n<p class=\"mb-2\">Filter subscription ramps based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> filter must be passed when filtering by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> filter should not be passed when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">include_deleted</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>\n<p class=\"mb-2\">Possible values are : scheduled, succeeded, failed.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">status[is] = &quot;SCHEDULED&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "SCHEDULED",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`scheduled\\` - Status of the subscription schedule on creation. \\* \\`succeeded\\` - The execution status of the schedule if success. \\* \\`failed\\` - The execution status of the schedule if failed. \\* \\`draft\\` - Status of the subscription schedule considering as draft\n",
                "enum" : [ "scheduled", "succeeded", "failed", "draft" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`scheduled\\` - Status of the subscription schedule on creation. \\* \\`succeeded\\` - The execution status of the schedule if success. \\* \\`failed\\` - The execution status of the schedule if failed. \\* \\`draft\\` - Status of the subscription schedule considering as draft\n",
                "enum" : [ "scheduled", "succeeded", "failed", "draft" ],
                "pattern" : "^\\[(scheduled|succeeded|failed|draft)(,(scheduled|succeeded|failed|draft))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string filter</p></dfn>\n<p class=\"mb-2\">Filter subscription ramps based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>\n.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong>\nThis filter is mandatory when filtering by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">effective_from</code>.</p></div>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nis, in</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">subscription_id[is] = &quot;8gsnbYfsMLds&quot;</em></p>",
          "required" : true,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8gsnbYfsMLds",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "effective_from",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter subscription ramps based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">effective_from</code>.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> filter must be passed when filtering by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">effective_from</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">effective_from</code> filter should not be passed when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">include_deleted</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n</ul></div>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">effective_from[after] = &quot;1435054328&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435054328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "updated_at",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, timestamp(UTC) in seconds filter</p></dfn>\n<p class=\"mb-2\">Filter subscription ramps based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nSpecify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sort_by</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code> (whether <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">asc</code> oor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">desc</code>) for a faster response when using this filter.</p></div>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Supported operators :</strong>\nafter, before, on, between</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">updated_at[after] = &quot;1435052328&quot;</em></p>",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "1435052328",
            "properties" : {
              "after" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "before" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "on" : {
                "type" : "string",
                "format" : "unix-time",
                "pattern" : "^\\d{10}$",
                "example" : null
              },
              "between" : {
                "type" : "string",
                "pattern" : "^\\[\\d{10},\\d{10}\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "sort_by",
          "in" : "query",
          "description" : "optional, string filter\n\nSorts based on the specified attribute.\n**Supported attributes :**\neffective_from, created_at, updated_at\n\n**Supported sort-orders :**\nasc, desc\n\n**Example →**\n*sort_by\\[asc\\] = \"effective_from\"*\n\nThis will sort the result based on the 'effective_from' attribute in ascending(earliest first) order.\n",
          "required" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : true,
            "properties" : {
              "asc" : {
                "type" : "string",
                "enum" : [ "effective_from", "updated_at" ],
                "example" : null
              },
              "desc" : {
                "type" : "string",
                "enum" : [ "effective_from", "updated_at" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "ramp" : {
                            "$ref" : "#/components/schemas/Ramp",
                            "description" : "Resource object representing ramp"
                          }
                        },
                        "required" : [ "ramp" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/ramps/{ramp-id}/update" : {
      "post" : {
        "summary" : "Update a subscription ramp",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ramp\"></span><p class=\"mb-2\">Updates an existing subscription ramp by replacing its current attribute values with the new parameters provided. When using this API to modify a ramp, make sure to include all the ramp&#x27;s attributes as you would do during creation of the ramp with the necessary values updated.\n<strong class=\"font-semibold\">Example: step-by-step flow</strong>\nThe following steps explains how to update effective_from value of an existing ramp.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Step 1: Retrieve current ramp values</strong></p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Send a request to retrieve the current values of all parameters for the subscription ramp using <a href=\"/docs/api/ramps/retrieve-a-ramp\">Retrieve a subscription ramp</a> API.</li>\n<li class=\"text-base leading-relaxed\">Review the response to get the current values of the ramp&#x27;s attributes. Note down all the parameters and their values.</li>\n</ol><p class=\"mb-2\"><strong class=\"font-semibold\">Step 2: Update ramp with new values</strong></p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Prepare the request to update the ramp.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Update the effective_from value in the noted down attributes of ramp from the previous step.</li>\n<li class=\"text-base leading-relaxed\">Ensure all parameters, even those not being changed, are included in the request.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">Send the prepared request to <a href=\"/docs/api/ramps/update-a-subscription-ramp\">Update subscription ramp</a> API.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Verify the response object to ensure a successful subscription ramp update. If it returns an error, repeat step 1 again.</li>\n</ul>\n</li>\n</ol><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Ramp status</strong>: You cannot update a ramp in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">succeeded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code> <code><a href=\"/docs/api/ramps/ramp-object#status\">status</a></code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Advance invoice</strong>: You cannot update ramps for subscriptions that have an <a href=\"/docs/api/advance_invoice_schedules\">advance invoice schedule</a>.</li>\n</ul></div></div>",
        "operationId" : "update_a_subscription_ramp",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "ramp-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/ramp-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "effective_from" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time when this ramp takes effect.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Ensure the time is within <strong class=\"font-semibold\">five</strong> years from the current time.</li>\n<li class=\"text-base leading-relaxed\">Ensure there is a minimum 24-hour interval between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">effective_from</code> of two consecutive ramps.</li>\n<li class=\"text-base leading-relaxed\">If the subscription is scheduled to be paused or canceled in the future, ensure the time is not on or after <code><a href=\"/docs/api/subscriptions/subscription-object#pause_date\">pause_date</a></code> or <code><a href=\"/docs/api/subscriptions/subscription-object#cancelled_at\">cancelled_at</a></code>.</li>\n</ul></div>",
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A brief summary of the pricing changes applied with this ramp.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "coupons_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of [coupons](/docs/api/coupons)\nremoved from the subscription through this ramp.  \n**Caution**\nEnsure this list does **not** include:\n\n* Coupons being added through this ramp.\n* Coupons already removed by a previous ramp.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "discounts_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of [discounts](/docs/api/discounts)\nremoved from the subscription through this ramp.  \n**Caution**\nEnsure this list does not include discounts already removed by a previous ramp.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "items_to_remove" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "List of [item prices](/docs/api/item_prices)\nremoved from the subscription through this ramp.  \n**Caution**\nEnsure this list does **not** include:\n\n* Item prices being added or updated through this ramp.\n* Item prices already removed by a previous ramp.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "An object that specifies the contract term details.\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <p class=\"mb-2\">Used when you want to renew the contract term. Does the following:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renewal_billing_cycles</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renewal_billing_cycles</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <code><a href=\"/docs/api/contract_terms/contract_term-object#contract_end\">contract_end</a></code>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      },
                      "renewal_billing_cycles" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code><a href=\"/docs/api/contract_terms/contract_term-object#billing_cycle\">billing_cycles</a></code></p>\n<p class=\"mb-2\">or a custom value depending on the\n<a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/contract-terms#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site configuration</a>\n.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "items_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[item prices\\](/docs/api/item_prices) added to the subscription through this ramp.\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of the item price.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Ensure this list does <strong class=\"font-semibold\">not</strong> include:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Item prices updated or removed through this ramp.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Item prices already in the subscription or added by a previous ramp.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The ramp should not change the <a href=\"/docs/api/item_prices/item_price-object#period\">billing period</a> of the subscription if an upcoming ramp already exists after <code><a href=\"/docs/api/ramps/create-a-ramp#effective_from\">effective_from</a></code> time.</p>\n</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>",
                          "enum" : [ "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "items_to_update" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[item prices\\](/docs/api/item_prices) updated in the subscription through this ramp.\n",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "The unique identifier of the item price.  \n**Caution**\nEnsure this list:\n\n* Does not include any item price added or removed through this ramp.\n* Does not include any item price removed by a previous ramp.\n* Includes only item prices currently in the subscription or added by a previous ramp.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "The quantity of the item purchased\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "unit_price_in_decimal" : {
                        "type" : "array",
                        "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "billing_cycles" : {
                        "type" : "array",
                        "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "service_period_days" : {
                        "type" : "array",
                        "description" : "The service period of the item in days from the day of charge.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 730,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_event" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>",
                          "enum" : [ "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_once" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "charge_on_option" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>",
                          "enum" : [ "immediately", "on_event" ],
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "item_price_id" ],
                    "example" : null
                  },
                  "item_tiers" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nAllowed only when both of these conditions are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Price overriding is enabled for the site.</li>\n<li class=\"text-base leading-relaxed\">pricing_model of the item price is either tiered, volume, or stairstep.</li>\n</ul></div>\n<p class=\"mb-2\">Replaces the existing item_tiers for specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>s within the subscription. You must provide the complete tier set for any <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>, even if you&#x27;re changing the price for only one tier.</p>",
                    "properties" : {
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nfor which the tier price is being overridden.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution</strong>\nThe identifier must correspond to an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> listed in either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">items_to_add</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">items_to_update</code>.</p></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "array",
                        "description" : "The lowest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "array",
                        "description" : "The highest value in the quantity tier.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price" : {
                        "type" : "array",
                        "description" : "The overridden price of the tier. The value depends on the [type of currency](/docs/api/currencies)\n.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "default" : 0,
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 33,
                          "example" : null
                        },
                        "example" : null
                      },
                      "price_in_decimal" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 39,
                          "example" : null
                        },
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                          "enum" : [ "per_unit", "flat_fee", "package" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "coupons_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[coupons\\](/docs/api/coupons) added to the subscription through this ramp.\n",
                    "properties" : {
                      "coupon_id" : {
                        "type" : "array",
                        "description" : "Unique ID of the coupon to be added.  \n**Caution**\n\n* Ensure this list does not include coupons being removed through this ramp.\n* [Coupon codes](/docs/api/coupon_codes) are not supported.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "apply_till" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The date till when the coupon can be applied. Applicable for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n<a href=\"/docs/api/coupons\">coupons</a>\nonly.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts_to_add" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Details about the \\[discounts\\](/docs/api/discounts) added to the subscription through this ramp.\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "apply_on", "duration_type" ],
                    "example" : null
                  }
                },
                "required" : [ "effective_from" ],
                "example" : null
              },
              "encoding" : {
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "coupons_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "item_tiers" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "items_to_add" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "items_to_update" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "ramp" : {
                      "$ref" : "#/components/schemas/Ramp",
                      "description" : "<p class=\"mb-2\">Resource object representing ramp</p>"
                    }
                  },
                  "required" : [ "ramp" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/ramps/{ramp-id}/delete" : {
      "post" : {
        "summary" : "Delete a subscription ramp",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ramp\"></span><p class=\"mb-2\">Deletes the specified subscription ramp. However, Chargebee only allows deleting a ramp if it does not conflict with future ramps on the subscription. The following checks are performed to ensure compatibility:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><tbody><tr><th>Condition</th><th>Restriction</th></tr><tr><td>The ramp contains <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">items_to_add[]</code></td><td>The ramp cannot be deleted if any of the items in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">items_to_add[]</code> are scheduled to be updated or removed in a subsequent ramp.</td></tr><tr><td>The ramp contains <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupons_to_add[]</code></td><td>The ramp cannot be deleted if any of the coupons in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupons_to_add[]</code> are scheduled to be removed in a subsequent ramp.</td></tr><tr><td>The ramp contains <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts_to_add[]</code></td><td>The ramp cannot be deleted if any of the discounts in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts_to_add[]</code> are scheduled to be removed in a subsequent ramp.</td></tr></tbody></table></div></div>",
        "operationId" : "delete_a_ramp",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "ramp-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/ramp-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "ramp" : {
                      "$ref" : "#/components/schemas/Ramp",
                      "description" : "<p class=\"mb-2\">Resource object representing ramp</p>"
                    }
                  },
                  "required" : [ "ramp" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_schedule_schemes/{payment-schedule-scheme-id}" : {
      "get" : {
        "summary" : "Retrieve a payment schedule scheme",
        "description" : "This endpoint retrieves an existing payment schedule.\n",
        "operationId" : "retrieve_a_payment_schedule_scheme",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "payment-schedule-scheme-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/payment-schedule-scheme-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_schedule_scheme" : {
                      "$ref" : "#/components/schemas/PaymentScheduleScheme",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_schedule_scheme</p>"
                    }
                  },
                  "required" : [ "payment_schedule_scheme" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_schedule_schemes" : {
      "post" : {
        "summary" : "Create a payment schedule scheme",
        "description" : "Creates a payment schedule scheme. After creating a payment schedule scheme, you can use it to generate payment schedules for multiple invoices.\n",
        "operationId" : "create_a_payment_schedule_scheme",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "number_of_schedules" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the total number of payment schedules for the invoice. The maximum <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number_of_schedules</code>\nvaries based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n: -   <strong class=\"font-semibold\">Day</strong>: Up to 30 schedules</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Week</strong>: Up to 52 schedules</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Month</strong>: Up to 12 schedules</li>\n</ul>",
                    "maximum" : 52,
                    "minimum" : 1,
                    "example" : null
                  },
                  "period_unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Defines the time unit for intervals between payment schedules. Possible values are: day, week, and month.\n\\* month -\n\nWhen the time unit for intervals between payment schedules is set as month\n\\* week -\n\nWhen the time unit for intervals between payment schedules is set as week\n\\* day -\n\nWhen the time unit for intervals between payment schedules is set as day\n",
                    "enum" : [ "day", "week", "month" ],
                    "example" : null
                  },
                  "period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The time period between the effective dates of two consecutive payment schedules, expressed in period_units. Use this parameter to have fixed intervals between payment schedules. The maximum <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nvaries based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n: -   <strong class=\"font-semibold\">Day</strong>: Up to 30 days</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Week</strong>: Up to 6 weeks</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Month</strong>: Up to 6 months</li>\n</ul>",
                    "maximum" : 30,
                    "minimum" : 1,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The name of a payment schedule scheme.\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "flexible_schedules" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for flexible_schedules\n",
                    "properties" : {
                      "period" : {
                        "type" : "array",
                        "description" : "The interval after which this payment schedule should be collected.\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "maximum" : 52,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount_percentage" : {
                        "type" : "array",
                        "description" : "The percentage amount that this specific payment schedule should collect.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "decimal",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "name", "number_of_schedules", "period_unit" ],
                "example" : null
              },
              "encoding" : {
                "flexible_schedules" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_schedule_scheme" : {
                      "$ref" : "#/components/schemas/PaymentScheduleScheme",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_schedule_scheme</p>"
                    }
                  },
                  "required" : [ "payment_schedule_scheme" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/payment_schedule_schemes/{payment-schedule-scheme-id}/delete" : {
      "post" : {
        "summary" : "Delete a payment schedule scheme",
        "description" : "This endpoint deletes a payment schedules created for an invoice.\n",
        "operationId" : "delete_a_payment_schedule_scheme",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "payment-schedule-scheme-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/payment-schedule-scheme-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "payment_schedule_scheme" : {
                      "$ref" : "#/components/schemas/PaymentScheduleScheme",
                      "description" : "<p class=\"mb-2\">Resource object representing payment_schedule_scheme</p>"
                    }
                  },
                  "required" : [ "payment_schedule_scheme" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migrations/{pc2-migration-id}/contact_support" : {
      "post" : {
        "summary" : "Contact_support a pc2_migration",
        "operationId" : "contact_support_a_pc2_migration",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration" : {
                      "$ref" : "#/components/schemas/Pc2Migration",
                      "description" : "Resource object representing pc2_migration"
                    }
                  },
                  "required" : [ "pc2_migration" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migrations/{pc2-migration-id}" : {
      "get" : {
        "summary" : "Retrieve a pc2 migration",
        "operationId" : "retrieve_a_pc2_migration",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration" : {
                      "$ref" : "#/components/schemas/Pc2Migration",
                      "description" : "Resource object representing pc2_migration"
                    }
                  },
                  "required" : [ "pc2_migration" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migrations" : {
      "post" : {
        "summary" : "Create a pc2_migration",
        "operationId" : "create_a_pc2_migration",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration" : {
                      "$ref" : "#/components/schemas/Pc2Migration",
                      "description" : "Resource object representing pc2_migration"
                    }
                  },
                  "required" : [ "pc2_migration" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migrations/{pc2-migration-id}/initiate" : {
      "post" : {
        "summary" : "Initiate a pc2_migration",
        "operationId" : "initiate_a_pc2_migration",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration" : {
                      "$ref" : "#/components/schemas/Pc2Migration",
                      "description" : "Resource object representing pc2_migration"
                    }
                  },
                  "required" : [ "pc2_migration" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_item_families/{pc2-migration-item-family-id}/delete" : {
      "post" : {
        "summary" : "Delete draft family",
        "operationId" : "delete_draft_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-family-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-family-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "is_deleted" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "example" : null
                    }
                  },
                  "required" : [ "is_deleted" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_item_families/{pc2-migration-item-family-id}" : {
      "get" : {
        "summary" : "Retrieve a pc2 migration item family",
        "operationId" : "retrieve_a_pc2_migration_item_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-family-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-family-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item_family" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItemFamily",
                      "description" : "Resource object representing pc2_migration_item_family"
                    }
                  },
                  "required" : [ "pc2_migration_item_family" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a pc2_migration_item_family",
        "operationId" : "update_a_pc2_migration_item_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-family-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-family-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "is_default" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item_family" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItemFamily",
                      "description" : "Resource object representing pc2_migration_item_family"
                    }
                  },
                  "required" : [ "pc2_migration_item_family" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_item_families" : {
      "get" : {
        "summary" : "List pc2 migration item families",
        "operationId" : "list_pc2_migration_item_families",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/limit",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/offset",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "pc2_migration_id",
          "in" : "query",
          "required" : true,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "pc2_migration reference key\n",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "pc2_migration_item_family" : {
                            "$ref" : "#/components/schemas/Pc2MigrationItemFamily",
                            "description" : "Resource object representing pc2_migration_item_family"
                          }
                        },
                        "required" : [ "pc2_migration_item_family" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a pc2_migration_item_family",
        "operationId" : "create_a_pc2_migration_item_family",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "is_default" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "pc2_migration_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "id", "name", "pc2_migration_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item_family" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItemFamily",
                      "description" : "Resource object representing pc2_migration_item_family"
                    }
                  },
                  "required" : [ "pc2_migration_item_family" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_items/{pc2-migration-item-id}" : {
      "get" : {
        "summary" : "Retrieve a pc2 migration item",
        "operationId" : "retrieve_a_pc2_migration_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItem",
                      "description" : "Resource object representing pc2_migration_item"
                    }
                  },
                  "required" : [ "pc2_migration_item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a pc2_migration_item",
        "operationId" : "update_a_pc2_migration_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "pc2_migration_item_family_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "is_giftable" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "is_shippable" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "enabled_for_checkout" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "enabled_in_portal" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "is_recurring" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "example" : null
                  },
                  "gift_claim_redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "included_in_mrr" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "example" : null
                  },
                  "unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 30,
                    "example" : null
                  },
                  "pc2_migration_item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "name" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 500,
                          "example" : null
                        },
                        "example" : null
                      },
                      "metadata" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 500,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ref_entity_id" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name", "ref_entity_id" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "pc2_migration_item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItem",
                      "description" : "Resource object representing pc2_migration_item"
                    }
                  },
                  "required" : [ "pc2_migration_item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_items/{pc2-migration-item-id}/delete" : {
      "post" : {
        "summary" : "Delete draft item",
        "operationId" : "delete_draft_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "is_deleted" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "example" : null
                    }
                  },
                  "required" : [ "is_deleted" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_items" : {
      "get" : {
        "summary" : "List pc2 migration items",
        "operationId" : "list_pc2_migration_items",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/limit",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/offset",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "pc2_migration_item_family",
          "in" : "query",
          "required" : true,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Parameters for pc2_migration_item_family\n",
            "properties" : {
              "pc2_migration_id" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "pc2_migration reference key\n",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                },
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "pc2_migration_item" : {
                            "$ref" : "#/components/schemas/Pc2MigrationItem",
                            "description" : "Resource object representing pc2_migration_item"
                          }
                        },
                        "required" : [ "pc2_migration_item" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a pc2_migration_item",
        "operationId" : "create_a_pc2_migration_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "pc1_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "enum" : [ "plan", "addon" ],
                    "example" : null
                  },
                  "pc2_migration_item_family_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "pc2_migration_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "is_giftable" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "is_shippable" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "enabled_for_checkout" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "enabled_in_portal" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  },
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "is_recurring" : {
                    "type" : "boolean",
                    "default" : true,
                    "deprecated" : false,
                    "example" : null
                  },
                  "gift_claim_redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "included_in_mrr" : {
                    "type" : "boolean",
                    "deprecated" : false,
                    "example" : null
                  },
                  "unit" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 30,
                    "example" : null
                  },
                  "pc2_migration_item_prices" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "name" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "description" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 500,
                          "example" : null
                        },
                        "example" : null
                      },
                      "metadata" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 500,
                          "example" : null
                        },
                        "example" : null
                      },
                      "ref_entity_id" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "name", "ref_entity_id" ],
                    "example" : null
                  }
                },
                "required" : [ "id", "name", "pc1_type", "pc2_migration_id" ],
                "example" : null
              },
              "encoding" : {
                "pc2_migration_item_prices" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItem",
                      "description" : "Resource object representing pc2_migration_item"
                    }
                  },
                  "required" : [ "pc2_migration_item" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_items/applicable_items" : {
      "get" : {
        "summary" : "Applicable_items a pc2_migration_item",
        "operationId" : "applicable_items_a_pc2_migration_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/limit",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/offset",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "is_recurring",
          "in" : "query",
          "required" : true,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "pc2_migration_applicable_item" : {
                            "$ref" : "#/components/schemas/Pc2MigrationApplicableItem",
                            "description" : "Resource object representing pc2_migration_applicable_item"
                          }
                        },
                        "required" : [ "pc2_migration_applicable_item" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_item_prices" : {
      "get" : {
        "summary" : "List pc2 migration item prices",
        "operationId" : "list_pc2_migration_item_prices",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/limit",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/offset",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "pc2_migration_id",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "pc2_migration reference key\n",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "pc2_migration_item_id",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "item reference key\n",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "is_invalid_pc1_id",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "check if pc1 autocorrection required\n",
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "pc1_item_type",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - PLAN \\* \\`addon\\` - ADDON\n",
                "enum" : [ "plan", "addon" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - PLAN \\* \\`addon\\` - ADDON\n",
                "enum" : [ "plan", "addon" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - PLAN \\* \\`addon\\` - ADDON\n",
                "enum" : [ "plan", "addon" ],
                "pattern" : "^\\[(plan|addon)(,(plan|addon))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`plan\\` - PLAN \\* \\`addon\\` - ADDON\n",
                "enum" : [ "plan", "addon" ],
                "pattern" : "^\\[(plan|addon)(,(plan|addon))*\\]$",
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "is_recurring",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "format" : "boolean",
                "enum" : [ "true", "false" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "pc2_migration_item_price" : {
                            "$ref" : "#/components/schemas/Pc2MigrationItemPrice",
                            "description" : "Resource object representing pc2_migration_item_price"
                          }
                        },
                        "required" : [ "pc2_migration_item_price" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_item_prices/{pc2-migration-item-price-id}/delete" : {
      "post" : {
        "summary" : "Delete draft item price",
        "operationId" : "delete_draft_item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "is_deleted" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "example" : null
                    }
                  },
                  "required" : [ "is_deleted" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pc2_migration_item_prices/{pc2-migration-item-price-id}" : {
      "get" : {
        "summary" : "Retrieve a pc2 migration item price",
        "operationId" : "retrieve_a_pc2_migration_item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item_price" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItemPrice",
                      "description" : "Resource object representing pc2_migration_item_price"
                    }
                  },
                  "required" : [ "pc2_migration_item_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update a pc2_migration_item_price",
        "operationId" : "update_a_pc2_migration_item_price",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "pc2-migration-item-price-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/pc2-migration-item-price-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "pc2_migration_item_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "metadata" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 500,
                    "example" : null
                  },
                  "sanitized_pc1_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "is_primary_attached_item" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pc2_migration_item_price" : {
                      "$ref" : "#/components/schemas/Pc2MigrationItemPrice",
                      "description" : "Resource object representing pc2_migration_item_price"
                    }
                  },
                  "required" : [ "pc2_migration_item_price" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pricing_page_sessions/create_for_existing_subscription" : {
      "post" : {
        "summary" : "Create pricing page for existing subscription",
        "description" : "This endpoint streamlines the generation of a pricing page session to enable subscription [upgrade](https://www.chargebee.com/docs/2.0/proration.html#introduction_proration)\n, and [downgrade](https://www.chargebee.com/docs/2.0/proration.html#introduction_proration)\nworkflows using Chargebee's hosted pricing pages ([Atomic Pricing](https://www.atomicpricing.com/)\n). By providing a subscription ID as a parameter, you will obtain a hosted pricing page session URL.  \nNote: [Full access key](https://www.chargebee.com/docs/api_keys.html#types-of-api-keys_full-access-key)\nauthentication is needed for this API request.\n",
        "operationId" : "create_pricing_page_for_existing_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customers will be redirected to this URL upon successful checkout.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "custom" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "JSON object of custom attributes (key-value pairs) used for pricing page targeting or content. \\[Configure\\](https://www.chargebee.com/docs/retention/settings-and-installation/chargebee-retention-field-mappings) custom attributes in the dashboard.\n",
                    "example" : null
                  },
                  "pricing_page" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for pricing page\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique identifier of the pricing table for which the hosted page is created. See [documentation](https://www.chargebee.com/docs/growth/offers/customize-pricing-table#obtain-the-pricing-table-id) to obtain the pricing table id from Chargebee Growth. If you want the pricing table to be auto-selected based on your [Play configuration](https://www.chargebee.com/docs/growth/plays/plays-overview) in Chargebee Growth, do not pass this parameter.  \n<br />\n\n**Required if**\nYou are on the legacy version of Pricing Tables (i.e. Atomic Pricing). See [documentation](https://www.chargebee.com/docs/billing/2.0/hosted-capabilities/customize-pricing-table#obtain-the-site-id-and-pricing-table-id) to obtain the pricing table id.\n\n<br />\n\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique identifier of an existing subscription for which the hosted pricing page is created.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the default number of billing cycles.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis enum value is not supported for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_page_sessions</code> resource, soon this value will be available for this resource. For more details please reach out to <a href=\"mailto:atomic-pricing@chargebee.com\">atomic-pricing@chargebee.com</a></p></div>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the discount. The format of this value depends on the kind of <a href=\"/docs/api/currencies\">currency</a>\nyou want to use for a discount. This is only applicable when <a href=\"/docs/api/discounts/discount-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "label" : {
                        "type" : "array",
                        "description" : "Label for the discount\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "pricing_page" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pricing_page_session" : {
                      "$ref" : "#/components/schemas/PricingPageSession",
                      "description" : "<p class=\"mb-2\">Resource object representing pricing_page_session</p>"
                    }
                  },
                  "required" : [ "pricing_page_session" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/pricing_page_sessions/create_for_new_subscription" : {
      "post" : {
        "summary" : "Create pricing page for new subscription",
        "description" : "This endpoint streamlines the generation of a pricing page session to enable new subscription creation workflows using Chargebee's hosted pricing pages ([Atomic Pricing](https://www.atomicpricing.com/)\n). By providing a subscription ID and/or customer ID as a parameter, you'll obtain a pricing page session URL.  \nNote: [Full access key](https://www.chargebee.com/docs/api_keys.html#types-of-api-keys_full-access-key)\nauthentication is needed for this API request.\n",
        "operationId" : "create_pricing_page_for_new_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "redirect_url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The customers will be redirected to this URL upon successful checkout.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "business_entity_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Sets the [context](/docs/api/business_entities) for this operation to the [business entity](/docs/api/business_entities) specified. Applicable only when multiple business entities have been created for the site. When this parameter is provided, new subscription and customer resources are created within the business entity.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "auto_select_local_currency" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>:</strong> The first currency in the dropdown list is selected.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>:</strong> Automatically determines the currency based on the visitor&#x27;s geolocation. For example, if the visitor is from the United States and this flag is enabled, USD is selected as the currency-if it&#x27;s available on the pricing page. Similarly, if the visitor is from India, INR is selected. If the visitor&#x27;s country currency isn&#x27;t available, the first currency in the dropdown list is selected.</li>\n</ul>",
                    "example" : null
                  },
                  "custom" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "JSON object of custom attributes (key-value pairs) used for pricing page targeting or content. \\[Configure\\](https://www.chargebee.com/docs/retention/settings-and-installation/chargebee-retention-field-mappings) custom attributes in the dashboard.\n",
                    "example" : null
                  },
                  "pricing_page" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for pricing page\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique identifier of the pricing table for which the hosted page is created. See [documentation](https://www.chargebee.com/docs/growth/offers/customize-pricing-table#obtain-the-pricing-table-id) to obtain the pricing table id from Chargebee Growth.  \n**Legacy Pricing Table**\nIf you are on the legacy version of Pricing Tables (i.e. Atomic Pricing), see [documentation](https://www.chargebee.com/docs/billing/2.0/hosted-capabilities/customize-pricing-table#obtain-the-site-id-and-pricing-table-id) to obtain the pricing table id.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "subscription" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for subscription\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unique ID of the customer for which this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code>\nshould be created. When not provided, a new customer is created with the ID set to the value provided for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[id]</code>.\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription[id]</code>\nis unavailable, then the customer ID is autogenerated.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the customer. If not provided it will be got from contact information entered in the hosted page\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the customer. If not provided it will be got from contact information entered in the hosted page\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Company name of the customer.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the customer\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "locale" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "billing_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for billing_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the billing contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "shipping_address" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for shipping_address\n",
                    "properties" : {
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The first name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The last name of the contact.\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "The email address.\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The company name.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The phone number.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the city.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search/code\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The state/province name. Is set by Chargebee automatically for US, Canada and India If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nis provided.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "contract_term" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for contract_term\n",
                    "properties" : {
                      "action_at_term_end" : {
                        "type" : "string",
                        "default" : "renew",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the default number of billing cycles.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                        "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                        "example" : null
                      },
                      "cancellation_cutoff_period" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "discounts" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for discounts\n",
                    "properties" : {
                      "apply_on" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis enum value is not supported for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_page_sessions</code> resource, soon this value will be available for this resource. For more details please reach out to <a href=\"mailto:atomic-pricing@chargebee.com\">atomic-pricing@chargebee.com</a></p></div>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                          "enum" : [ "invoice_amount", "specific_item_price" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "duration_type" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "default" : "forever",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
                          "enum" : [ "one_time", "forever", "limited_period" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "array",
                        "description" : "The percentage of the original amount that should be deducted from it.\n",
                        "items" : {
                          "type" : "number",
                          "format" : "double",
                          "deprecated" : false,
                          "maximum" : 100,
                          "minimum" : 0.01,
                          "example" : null
                        },
                        "example" : null
                      },
                      "amount" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The value of the discount. The format of this value depends on the kind of <a href=\"/docs/api/currencies\">currency</a>\nyou want to use for a discount. This is only applicable when <a href=\"/docs/api/discounts/discount-object#type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int64",
                          "deprecated" : false,
                          "minimum" : 0,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n.</p>",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "period_unit" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                          "enum" : [ "day", "week", "month", "year" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "included_in_mrr" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
                        "items" : {
                          "type" : "boolean",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "item_price_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <a href=\"/docs/api/discounts/discount-object#apply_on\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>\n.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "array",
                        "description" : "Specifies the number of free units provided for the item, without affecting the total quantity sold\n",
                        "items" : {
                          "type" : "integer",
                          "format" : "int32",
                          "deprecated" : false,
                          "minimum" : 1,
                          "example" : null
                        },
                        "example" : null
                      },
                      "label" : {
                        "type" : "array",
                        "description" : "Label for the discount\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 100,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "duration_type" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "billing_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "contract_term" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "discounts" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "pricing_page" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "shipping_address" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "pricing_page_session" : {
                      "$ref" : "#/components/schemas/PricingPageSession",
                      "description" : "<p class=\"mb-2\">Resource object representing pricing_page_session</p>"
                    }
                  },
                  "required" : [ "pricing_page_session" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/site_pc_meta_records" : {
      "get" : {
        "summary" : "List site pc meta records",
        "operationId" : "list_site_pc_meta_records",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/limit",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/offset",
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "site_pc_meta_record" : {
                            "$ref" : "#/components/schemas/SitePcMetaRecord",
                            "description" : "Resource object representing site_pc_meta_record"
                          }
                        },
                        "required" : [ "site_pc_meta_record" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/omnichannel_subscriptions/{omnichannel-subscription-id}/move" : {
      "post" : {
        "summary" : "Move an Omnichannel subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Moves an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code>\nto another customer. Updates the Omnichannel subscription&#x27;s customer ID and related records, then triggers the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">OMNICHANNEL_SUBSCRIPTION_MOVED_IN</code>\nwebhook with the new customer details.</p></div>",
        "operationId" : "move_an_omnichannel_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "omnichannel-subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/omnichannel-subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "to_customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Specifies the unique ID of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nresource to which the subscription will be moved.</p>",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "to_customer_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "omnichannel_subscription" : {
                      "$ref" : "#/components/schemas/OmnichannelSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing Omnichannel subscription</p>"
                    }
                  },
                  "required" : [ "omnichannel_subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/omnichannel_subscriptions/{omnichannel-subscription-id}" : {
      "get" : {
        "summary" : "Retrieve an Omnichannel subscription",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-omni\"></span><p class=\"mb-2\">Retrieves an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code> object using an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_id</code>. You can get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_id</code> for any successfully recorded purchase in Chargebee using <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\">List Omnichannel subscriptions API</a>.</p></div>",
        "operationId" : "retrieve_an_omnichannel_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "omnichannel-subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/omnichannel-subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "omnichannel_subscription" : {
                      "$ref" : "#/components/schemas/OmnichannelSubscription",
                      "description" : "<p class=\"mb-2\">Resource object representing Omnichannel subscription</p>"
                    }
                  },
                  "required" : [ "omnichannel_subscription" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/omnichannel_subscriptions/{omnichannel-subscription-id}/omnichannel_transactions" : {
      "get" : {
        "summary" : "List Omnichannel transactions of an Omnichannel subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Returns a list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction</code>\nassociated with the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code>\n.</p></div>",
        "operationId" : "list_omnichannel_transactions_of_an_omnichannel_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "omnichannel-subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/omnichannel-subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "omnichannel_transaction" : {
                            "$ref" : "#/components/schemas/OmnichannelTransaction",
                            "description" : "Resource object representing omnichannel_transaction"
                          }
                        },
                        "required" : [ "omnichannel_transaction" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/omnichannel_subscriptions" : {
      "get" : {
        "summary" : "List Omnichannel subscriptions",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Returns a list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code>\n.</p></div>",
        "operationId" : "list_omnichannel_subscriptions",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "source",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nTo filter based on OmnichannelSubscription Source. Possible values are : apple_app_store, google_play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*source\\[is_not\\] = \"apple_app_store\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "apple_app_store",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "pattern" : "^\\[(apple_app_store|google_play_store)(,(apple_app_store|google_play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "pattern" : "^\\[(apple_app_store|google_play_store)(,(apple_app_store|google_play_store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nChargebee Customer External Identifier.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*customer_id\\[is\\] = \"8gsnbYfsMLds\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8gsnbYfsMLds",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        }, {
          "name" : "omnichannel_subscription_item",
          "in" : "query",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "status" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Status of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>.\n<a href=\"omnichannel_statuses\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a>\nabout status and their mapping with the store&#x27;s status.</p>",
                "example" : "active",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "description" : "\\* \\`active\\` - active \\* \\`expired\\` - expired \\* \\`cancelled\\` - cancelled \\* \\`in_dunning\\` - in_dunning \\* \\`in_grace_period\\` - in_grace_period \\* \\`paused\\` - paused\n",
                    "enum" : [ "active", "expired", "cancelled", "in_dunning", "in_grace_period", "paused" ],
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "description" : "\\* \\`active\\` - active \\* \\`expired\\` - expired \\* \\`cancelled\\` - cancelled \\* \\`in_dunning\\` - in_dunning \\* \\`in_grace_period\\` - in_grace_period \\* \\`paused\\` - paused\n",
                    "enum" : [ "active", "expired", "cancelled", "in_dunning", "in_grace_period", "paused" ],
                    "example" : null
                  },
                  "in" : {
                    "type" : "string",
                    "description" : "\\* \\`active\\` - active \\* \\`expired\\` - expired \\* \\`cancelled\\` - cancelled \\* \\`in_dunning\\` - in_dunning \\* \\`in_grace_period\\` - in_grace_period \\* \\`paused\\` - paused\n",
                    "enum" : [ "active", "expired", "cancelled", "in_dunning", "in_grace_period", "paused" ],
                    "pattern" : "^\\[(active|expired|cancelled|in_dunning|in_grace_period|paused)(,(active|expired|cancelled|in_dunning|in_grace_period|paused))*\\]$",
                    "example" : null
                  },
                  "not_in" : {
                    "type" : "string",
                    "description" : "\\* \\`active\\` - active \\* \\`expired\\` - expired \\* \\`cancelled\\` - cancelled \\* \\`in_dunning\\` - in_dunning \\* \\`in_grace_period\\` - in_grace_period \\* \\`paused\\` - paused\n",
                    "enum" : [ "active", "expired", "cancelled", "in_dunning", "in_grace_period", "paused" ],
                    "pattern" : "^\\[(active|expired|cancelled|in_dunning|in_grace_period|paused)(,(active|expired|cancelled|in_dunning|in_grace_period|paused))*\\]$",
                    "example" : null
                  }
                }
              },
              "item_id_at_source" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Product ID in the <a href=\"omnichannel_subscriptions#omnichannel_subscription_source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>.</p>",
                "example" : "gold",
                "properties" : {
                  "is" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "is_not" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  },
                  "starts_with" : {
                    "type" : "string",
                    "minLength" : 1,
                    "example" : null
                  }
                }
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "omnichannel_subscription" : {
                            "$ref" : "#/components/schemas/OmnichannelSubscription",
                            "description" : "Resource object representing omnichannel_subscription"
                          }
                        },
                        "required" : [ "omnichannel_subscription" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/omnichannel_subscription_items/{omnichannel-subscription-item-id}/scheduled_changes" : {
      "get" : {
        "summary" : "List scheduled changes for omnichannel subscription item",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-omni\"></span><p class=\"mb-2\">Returns a list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item_scheduled_change</code>\nassociated with the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p></div>",
        "operationId" : "list_scheduled_changes_for_omnichannel_subscription_item",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "omnichannel-subscription-item-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/omnichannel-subscription-item-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "omnichannel_subscription_item_scheduled_change" : {
                            "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange",
                            "description" : "Resource object representing omnichannel_subscription_item_scheduled_change"
                          }
                        },
                        "required" : [ "omnichannel_subscription_item_scheduled_change" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/recorded_purchases/{recorded-purchase-id}" : {
      "get" : {
        "summary" : "Retrieve a recorded purchase",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-omni\"></span><p class=\"mb-2\">The Retrieve a Recorded Purchase API retrieves a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code> object using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase.id</code> returned in the response of the <a href=\"/docs/api/recorded_purchases/record-a-purchase\">Record a Purchase API</a>. You can use this API to check if the purchase was successfully recorded in Chargebee and to obtain the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_id</code> associated with the successfully recorded purchase.</p></div>",
        "operationId" : "retrieve_a_recorded_purchase",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "recorded-purchase-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/recorded-purchase-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "recorded_purchase" : {
                      "$ref" : "#/components/schemas/RecordedPurchase",
                      "description" : "<p class=\"mb-2\">Resource object representing Recorded purchase</p>"
                    }
                  },
                  "required" : [ "recorded_purchase" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/recorded_purchases" : {
      "post" : {
        "summary" : "Record a purchase",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-omni\"></span><p class=\"mb-2\">The Record a Purchase API allows you to record in-app purchases made through channels such as the Apple App Store and Google Play Store in Chargebee. When you invoke this API, it initiates a purchase recording job and returns the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code> resource in the response. As part of the job, the API verifies the provided source specific request payload like transaction_id for Apple App Store or purchase_token for Google Play Store with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code> such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apple_app_store</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">google_play_store</code> respectively. If the verification is successful, the corresponding purchase is recorded in Chargebee. Upon completion, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code> resource will include the relevant <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_id</code>.\nSince this operation is <strong class=\"font-semibold\">asynchronous</strong>, you need to check the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> attribute of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code> resource to track the job status: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_process</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">completed</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>.\n<strong class=\"font-semibold\">Note</strong>: Upon successful completion of this asynchronous operation, Chargebee triggers the <code><a href=\"/docs/api/events\">omnichannel_subscription_created</a></code> event.\nIf the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code> status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>, review the <code><a href=\"/docs/api/recorded_purchases/recorded_purchase-object#error_detail\">error_detail</a></code> attribute and take corrective action to re-record the purchase.\nYou can use this API to record new and older purchases made on Apple App Store or Google Play Store by passing the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction_id</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_token</code> respectively received during the subscription purchase. You can record purchases for subscriptions that are in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Expired</code> status.</p></div>",
        "operationId" : "record_a_purchase",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "app_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_id</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Apple</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-app-store#create-an-omnichannel-subscription-for-in-app-purchases\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Google</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-play-store#connect-google-app-to-chargebee-to-generate-unique-app-id-and-notifications-url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n</ul>",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "customer" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for customer\n",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/customers/customer-object#id\">customer</a>\nobject that is associated with this purchase. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\nis not present in Chargebee when the <code><a href=\"/docs/api/recorded_purchases/record-a-purchase\">record_a_purchase</a></code>\nAPI request is made, the API will return an error. Use <a href=\"/docs/api/customers/create-a-customer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_a_customer</code></a>\nAPI to create a customer.</p>",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "id" ],
                    "example" : null
                  },
                  "apple_app_store" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The source specific request payload that will be used to record the purchase. Provide parameters as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apple_app_store[]</code></p>",
                    "properties" : {
                      "transaction_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction_id</code>\nreceived from Apple App Store during a new subscription purchase or the re-purchase of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code>\nsubscription.</p>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "receipt" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">receipt</code>\nfrom which <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction_id</code>\nis fetched and recorded</p>",
                        "maxLength" : 65000,
                        "example" : null
                      },
                      "product_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product_id</code>\nfor which the purchase has to be recorded</p>",
                        "maxLength" : 255,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "google_play_store" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">google_play_store</code></p>",
                    "properties" : {
                      "purchase_token" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_token</code>\nreceived from the Google Play Store either from the Android device during a new subscription purchase or from the Google Play Console. You can record purchase tokens using this API if the subscription state in Google is <a href=\"https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptionsv2#subscriptionstate\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SUBSCRIPTION_STATE_ACTIVE</code></a>\n.</p>",
                        "maxLength" : 500,
                        "example" : null
                      },
                      "product_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">InApp <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product_id</code>\non the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">google_play_store</code>\nfor which the purchase has to be recorded. This is applicable only when recording google one time orders.</p>",
                        "maxLength" : 255,
                        "example" : null
                      },
                      "order_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">order_id</code>\nreceived from the Google Play Store either from the Android device during a purchase or from the Google Play Console. It is recommended to use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">order_id</code>\ninstead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase_token</code>\n.</p>",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "omnichannel_subscription" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Parameters for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscriptions</code></p>",
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Specifies the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nto assign as the omnichannel subscription identifier for this purchase. If not provided, Chargebee automatically generates an ID.</p>",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "app_id" ],
                "example" : null
              },
              "encoding" : {
                "apple_app_store" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "customer" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "google_play_store" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "omnichannel_subscription" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "recorded_purchase" : {
                      "$ref" : "#/components/schemas/RecordedPurchase",
                      "description" : "<p class=\"mb-2\">Resource object representing Recorded purchase</p>"
                    },
                    "customer" : {
                      "$ref" : "#/components/schemas/Customer",
                      "description" : "<p class=\"mb-2\">Resource object representing customer</p>"
                    }
                  },
                  "required" : [ "customer", "recorded_purchase" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/omnichannel_one_time_orders" : {
      "get" : {
        "summary" : "List Omnichannel one time orders",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Retrieves a list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_orders</code>\nobjects.</p></div>",
        "operationId" : "list_omnichannel_one_time_orders",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "source",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nTo filter based on OmnichannelOneTimeOrder Source. Possible values are : apple_app_store, google_play_store.\n\n**Supported operators :**\nis, is_not, in, not_in\n\n**Example →**\n*source\\[is_not\\] = \"apple_app_store\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "apple_app_store",
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "example" : null
              },
              "in" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "pattern" : "^\\[(apple_app_store|google_play_store)(,(apple_app_store|google_play_store))*\\]$",
                "example" : null
              },
              "not_in" : {
                "type" : "string",
                "description" : "\\* \\`apple_app_store\\` - Source of the app is apple app store \\* \\`google_play_store\\` - Source of the app is google play store\n",
                "enum" : [ "apple_app_store", "google_play_store" ],
                "pattern" : "^\\[(apple_app_store|google_play_store)(,(apple_app_store|google_play_store))*\\]$",
                "example" : null
              }
            }
          }
        }, {
          "name" : "customer_id",
          "in" : "query",
          "description" : "optional, string filter\n\nChargebee Customer External Identifier.\n**Supported operators :**\nis, is_not, starts_with\n\n**Example →**\n*customer_id\\[is\\] = \"8gsnbYfsMLds\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "8gsnbYfsMLds",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "is_not" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              },
              "starts_with" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "omnichannel_one_time_order" : {
                            "$ref" : "#/components/schemas/OmnichannelOneTimeOrder",
                            "description" : "Resource object representing omnichannel_one_time_order"
                          }
                        },
                        "required" : [ "omnichannel_one_time_order" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/omnichannel_one_time_orders/{omnichannel-one-time-order-id}" : {
      "get" : {
        "summary" : "Retrieve an one time order one time order",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-omni\"></span><p class=\"mb-2\">Retrieves an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order</code> object using its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order_id</code>. You can obtain the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order_id</code> for any successfully recorded purchase in Chargebee by using the <a href=\"/docs/api/omnichannel_one_time_orders/list-omnichannel-one-time-orders\">List Omnichannel One-Time Orders API</a>.</p></div>",
        "operationId" : "retrieve_an_omnichannel_one_time_order",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "omnichannel-one-time-order-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/omnichannel-one-time-order-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "omnichannel_one_time_order" : {
                      "$ref" : "#/components/schemas/OmnichannelOneTimeOrder",
                      "description" : "<p class=\"mb-2\">Resource object representing omnichannel_one_time_order</p>"
                    }
                  },
                  "required" : [ "omnichannel_one_time_order" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/rules/{rule-id}" : {
      "get" : {
        "summary" : "Retrieve rule data",
        "operationId" : "retrieve_rule_data",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "rule-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/rule-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "rule" : {
                      "$ref" : "#/components/schemas/Rule",
                      "description" : "Resource object representing rule"
                    }
                  },
                  "required" : [ "rule" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/usage_events" : {
      "post" : {
        "summary" : "Ingest a usage event",
        "description" : "This endpoint ingests a usage event into Chargebee.  \n**Note**\n: - A single event can be of **1 KB** in size.\n\n* **Limit** : **10,000** events per minute.\n",
        "operationId" : "create_a_usage_event",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "deduplication_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An identifier used by the Chargebee&#x27;s customer to distinguish between multiple events generated at the same timestamp for a single <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>.\nThe combination of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_timestamp</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deduplication_id</code> uniquely identifies each event.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong>:\nIf 3 events are generated for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub-1</code> at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2025-04-01T00:00:00.000Z</code>, each event must have a distinct <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deduplication_id</code>.</p>",
                    "maxLength" : 36,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The unique identifier of a subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is provided, usage data is recorded against it.</li>\n<li class=\"text-base leading-relaxed\">If the subscription does not exist yet in Chargebee, a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> can be used, and the subscription can be imported later, once the usage is successfully recorded.</li>\n<li class=\"text-base leading-relaxed\">During invoice generation, recorded usage linked to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> will be applied to the invoice.</li>\n</ul></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "usage_timestamp" : {
                    "type" : "integer",
                    "format" : "int64",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The timestamp indicating when this usage occurred, represented as <a href=\"https://en.wikipedia.org/wiki/Unix_time\">Epoch</a>\ntime in <strong class=\"font-semibold\">milliseconds</strong>\n.\nExample: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1738732394123</code>\nrepresents the timestamp for February 5, 2025, at 05:13:14.123 UTC.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nThe timestamp must be within the last <strong class=\"font-semibold\">12 hours</strong>\n.</p></div>",
                    "example" : null
                  },
                  "properties" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A schema-less field that accepts any JSON-formatted data to define the attributes of the ingested event. It is a requirement to structure the data in a flat format wherever possible for better compatibility with downstream processing.\nWe strongly encourage using unique field names-particularly for fields intended for metering purposes. This approach enhances clarity and maintainability in the future.\nFor example, a field named <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>,</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Can represent <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">string</code> values such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">accepted</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">processing</code> in one context.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">In another scenario, it might hold numeric values, such as HTTP response codes like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">200</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">300</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code>.</p>\n</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There is a size limit of <strong class=\"font-semibold\">1 KB</strong>.</li>\n<li class=\"text-base leading-relaxed\">Learn more about <a href=\"/docs/api/usage_files\">field naming guidelines</a>.</li>\n</ul></div>",
                    "example" : null
                  }
                },
                "required" : [ "deduplication_id", "properties", "subscription_id", "usage_timestamp" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "usage_event" : {
                      "$ref" : "#/components/schemas/UsageEvent",
                      "description" : "<p class=\"mb-2\">Resource object representing usage_event</p>"
                    }
                  },
                  "required" : [ "usage_event" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/batch/usage_events" : {
      "post" : {
        "summary" : "Ingest usage events in batch",
        "description" : "This endpoint ingests a batch of usage events into Chargebee.  \n**Note**\n: - You can ingest **500** events in a batch ingestion, each **1 KB** in size. This means a single API request will efficiently handle **500 KB** of data.\n\n* **Limit** : **10,000** events per minute.\n",
        "operationId" : "ingest_usages_in_batch",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "events" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "Parameters for batch usage events\n",
                    "properties" : {
                      "deduplication_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">An identifier used by the Chargebee&#x27;s customer to distinguish between multiple events generated at the same timestamp for a single <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>.\nThe combination of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_timestamp</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deduplication_id</code> uniquely identifies each event.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong>:\nIf 3 events are generated for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub-1</code> at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2025-04-01T00:00:00.000Z</code>, each event must have a distinct <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deduplication_id</code>.</p>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 36,
                          "example" : null
                        },
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The unique identifier of a subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If an existing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is provided, usage data is recorded against it.</li>\n<li class=\"text-base leading-relaxed\">If the subscription does not exist yet in Chargebee, a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> can be used, and the subscription can be imported later, once the usage is successfully recorded.</li>\n<li class=\"text-base leading-relaxed\">During invoice generation, recorded usage linked to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> will be applied to the invoice.</li>\n</ul></div>",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      },
                      "usage_timestamp" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">The timestamp indicating when this usage occurred, represented as <a href=\"https://en.wikipedia.org/wiki/Unix_time\">Epoch</a>\ntime in <strong class=\"font-semibold\">milliseconds</strong>\n.\nExample: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1738732394123</code>\nrepresents the timestamp for February 5, 2025, at 05:13:14.123 UTC.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nThe timestamp must be within the last <strong class=\"font-semibold\">12 hours</strong>\n.</p></div>",
                        "items" : {
                          "type" : "integer",
                          "format" : "unix-time",
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      },
                      "properties" : {
                        "type" : "array",
                        "description" : "<p class=\"mb-2\">A schema-less field that accepts any JSON-formatted data to define the attributes of the ingested event. It is a requirement to structure the data in a flat format wherever possible for better compatibility with downstream processing.\nWe strongly encourage using unique field names-particularly for fields intended for metering purposes. This approach enhances clarity and maintainability in the future.\nFor example, a field named <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>,</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Can represent <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">string</code> values such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">accepted</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">processing</code> in one context.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">In another scenario, it might hold numeric values, such as HTTP response codes like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">200</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">300</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code>.</p>\n</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There is a size limit of <strong class=\"font-semibold\">1 KB</strong>.</li>\n<li class=\"text-base leading-relaxed\">Learn more about <a href=\"/docs/api/usage_files\">field naming guidelines</a>.</li>\n</ul></div>",
                        "items" : {
                          "type" : "object",
                          "additionalProperties" : true,
                          "deprecated" : false,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "required" : [ "deduplication_id", "properties", "subscription_id", "usage_timestamp" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "events" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "batch_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The unique identifier for the batch of usage events processed.</p>",
                      "x-cb-attribute-pcv" : 2,
                      "maxLength" : 36,
                      "example" : null
                    },
                    "failed_events" : {
                      "type" : "array",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">A detailed list of events that failed during the batch ingestion process.</p>",
                      "items" : {
                        "example" : null
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "batch_id", "failed_events" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/usage_files/{usage-file-id}/processing_status" : {
      "get" : {
        "summary" : "Retrieve file processing status",
        "description" : "Use this endpoint to get the current status and details of a usage events file.\n",
        "operationId" : "get_uploaded_file_processing_status",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "usage-file-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/usage-file-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "usage_file" : {
                      "$ref" : "#/components/schemas/UsageFile",
                      "description" : "<p class=\"mb-2\">Resource object representing usage_file</p>"
                    }
                  },
                  "required" : [ "usage_file" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.file-ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.file-ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/usage_files/upload_url" : {
      "post" : {
        "summary" : "Retrieve usage file upload URL",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">This endpoint returns an upload URL for uploading usage events files, allowing you to upload files in supported formats. The file is processed asynchronously, and its status can be tracked using the <code><a href=\"/docs/api/usage_files/get-uploaded-file-processing-status\">retrieve_file_processing_status</a></code> endpoint.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\">Before uploading, review the following guidelines and constraints:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/usage_files\">Best practices</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/v2/pcv-1/usage_files/upload-usages-file\">File upload constraints</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/usage_files\">File field constraints</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/usage_files\">Handling errors</a>\n</li>\n</ul></div></div>",
        "operationId" : "get_usages_file_upload_url",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Name of the file being uploaded.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nNo special characters are allowed in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">file_name</code>\nexcept for underscores <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">_</code>\nand hyphens <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-</code>\n.<strong class=\"font-semibold\">Example</strong>:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"1\"><tbody><tr><td><strong class=\"font-semibold\">Valid file name</strong></td><td><strong class=\"font-semibold\">Invalid file name</strong></td></tr><tr><td>merchant_data.csv</td><td>merchant@data.csv</td></tr><tr><td>sales_report-2024.csv</td><td>sales&amp;report-2024.csv</td></tr><tr><td>customer_details_file.csv</td><td>customer!details#file.csv</td></tr></tbody></table></div></div>",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "mime_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates the format of a file.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">text/csv</code>\nis supported.</p></div>",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "required" : [ "file_name", "mime_type" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "usage_file" : {
                      "$ref" : "#/components/schemas/UsageFile",
                      "description" : "<p class=\"mb-2\">Resource object representing usage_file</p>"
                    }
                  },
                  "required" : [ "usage_file" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.file-ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.file-ingest.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/personalized_offers" : {
      "post" : {
        "summary" : "List personalized offers",
        "description" : "This API is used to retrieve a list of personalized offer(s) for a customer based on the context (such as customer or subscription details and end-user attributes). This allows you to retrieve any active offers targeted to the user.\nYou can pre-call this API as soon as you have the user context at the point of login, or can call this API at any other point in the user journey when an offer is to be shown.\n\nSystem evaluates eligibility and mapping to the right offer based on:\n\n* Customer profile and subscription information.\n* Device and browsing context.\n* Custom fields.\n* Play configurations.\n\n**Note**\n\n* Although the response is modeled as a list, the API currently returns at most one personalized offer (the best-matched offer for the user).\n* If no offers are available, the list will be empty. No error is thrown in this case; an empty result is a valid response.\n\n**Features of this API**\n\nThe List Personalized Offers endpoint allows you to:\n\n* Retrieve context-aware offers targeted to customers or end users.\n* Leverage multiple signals (profile, subscription, device/browser context, custom fields, and plays).\n* Call flexibly at login, checkout, renewal, or any point in the user journey.Handle gracefully when no offers are available (returns an empty list, not an error).\n* Support both B2C (single user per customer) and B2B (multiple end users per customer) scenarios.\n",
        "operationId" : "list_personalized_offers",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "first_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "First name of the customer.  \n**Note**\nThis parameter is ignored if it is not mapped to any field in the [settings](https://www.chargebee.com/docs/retention/chargebee-billing-integration.html#syncing-and-mapping-chargebee-fields-into-chargebee-retention).\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "last_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Last name of the customer.  \n**Note**\nThis parameter is ignored if it is not mapped to any field in the [settings](https://www.chargebee.com/docs/retention/chargebee-billing-integration.html#syncing-and-mapping-chargebee-fields-into-chargebee-retention).\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "email" : {
                    "type" : "string",
                    "format" : "email",
                    "deprecated" : false,
                    "description" : "Customer's email address.  \n**Note**\nThis parameter is ignored if it is not mapped to any field in the [settings](https://www.chargebee.com/docs/retention/chargebee-billing-integration.html#syncing-and-mapping-chargebee-fields-into-chargebee-retention).\n",
                    "maxLength" : 70,
                    "example" : null
                  },
                  "roles" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "Roles or user types associated with the end user. (Useful in offer targeting for B2B scenarios with multiple user roles.).  \n**Note**\nThis parameter is ignored if it is not mapped to any field in the [settings](https://www.chargebee.com/docs/retention/chargebee-billing-integration.html#syncing-and-mapping-chargebee-fields-into-chargebee-retention).\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "example" : null
                  },
                  "external_user_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier of the user in the your system. This is used to identify the user for whom the offer is being created.  \n**Note**\nThis parameter is ignored if it is not mapped to any field in the [settings](https://www.chargebee.com/docs/retention/chargebee-billing-integration.html#syncing-and-mapping-chargebee-fields-into-chargebee-retention).\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The unique identifier of the subscription for which the offer should be retrieved.\n**Notes:**\n\n* **Required** if multiple brands are configured in your Growth application.\n* **Recommended** to always provide.\n* If omitted and the customer has multiple subscriptions, the system attempts to retrieve the offer associated with one of their subscriptions.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "customer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The ID of the customer in the billing system (Chargebee customer ID).\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "custom" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "deprecated" : false,
                    "description" : "JSON object of custom attributes (key-value pairs) used for offer targeting or content. \\[Configure\\](https://www.chargebee.com/docs/retention/settings-and-installation/chargebee-retention-field-mappings) custom attributes in the dashboard. \\*\\*Note\\*\\* This parameter is ignored if it is not mapped to any field in the \\[settings\\](https://www.chargebee.com/docs/retention/chargebee-billing-integration.html#syncing-and-mapping-chargebee-fields-into-chargebee-retention).\n",
                    "example" : null
                  },
                  "request_context" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "A JSON object with standard context attributes (browser, device, locale, etc.) of the end user's session. This can help in offer targeting based on user environment.\n",
                    "properties" : {
                      "user_agent" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The user's browser or device user agent string. Helps determine browser and platform details.\nFor example, chrome/7.10\n",
                        "maxLength" : 255,
                        "example" : null
                      },
                      "locale" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The user's locale setting (e.g., en-US, fr-FR). Useful for regional offer targeting.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "timezone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The user's timezone identifier (e.g., America/New_York). Used for contextual targeting based on time.\n",
                        "maxLength" : 64,
                        "example" : null
                      },
                      "url" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The current page URL where the offer is being displayed. Useful for context-sensitive offers.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "referrer_url" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The referring page URL, i.e., the previous page that navigated the user to the current one. Can help with attribution analysis.\n",
                        "maxLength" : 250,
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "customer_id" ],
                "example" : null
              },
              "encoding" : {
                "request_context" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "personalized_offers" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">List of best offers to be shown to the customer. Currently this will always return one personalized offer. This will be empty if no best offers are found.</p>",
                      "items" : {
                        "$ref" : "#/components/schemas/PersonalizedOffer",
                        "description" : "Resource object representing personalized_offer"
                      },
                      "example" : null
                    },
                    "brand" : {
                      "$ref" : "#/components/schemas/Brand",
                      "description" : "<p class=\"mb-2\">Resource object representing brand</p>"
                    },
                    "expires_at" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The timestamp until which the offer remains active. After this time, you must retrieve the offer again via the List Personalised Offers API to get the latest.</p>",
                      "example" : null
                    }
                  },
                  "required" : [ "expires_at", "personalized_offers" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/offer_fulfillments" : {
      "post" : {
        "summary" : "Create an offer fulfillment",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API notifies that a user has accepted an offer, logs an accepted event immediately for reporting, and triggers a backend processing depending on the offer&#x27;s processing_type.\nYou can call this API when a user accepts an offer (e.g., the user clicked Accept Offer or a similar confirmation).\nThis API will record an accepted event as soon as the API is called and initiate the appropriate fulfillment mechanism according to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">processing_type</code>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_update</code>: Initiates subscription or billing record updates (e.g., applying a discount or changing a plan) asynchronously.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout</code>: Returns a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> object in the response, which contains a URL to render the hosted checkout flow.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">url_redirect</code>: Returns a redirect_url. You are responsible for managing fulfillment on your end and must call the Update Offer Fulfillment API to report either completion or failure.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhook</code>: Sends a webhook, and you must also manage fulfillment on your end. Be sure to call the Update Offer Fulfillment API to report completion or failure.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>: Sends an email containing the offer details as configured. You are responsible for handling fulfillment on your side and must call the Update Offer Fulfillment API to report completion or failure.\nYou can poll the Retrieve Offer Fulfillment endpoint for final status on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_update</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout flows</code>.\nUpon actual fulfillment completion, the system logs a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fulfilled</code> event and sends notifications (webhook, Slack, email, Segment) as configured.</li>\n</ul></div>",
        "operationId" : "create_an_offer_fulfillment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "personalized_offer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "ID of the personalized offer that was accepted.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "option_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "ID of the Offer Option that the user accepted.\n",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "required" : [ "option_id", "personalized_offer_id" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "202" : {
            "description" : "Accepted",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "offer_fulfillment" : {
                      "$ref" : "#/components/schemas/OfferFulfillment",
                      "description" : "<p class=\"mb-2\">Represents the fulfillment created for the offer.</p>"
                    },
                    "hosted_page" : {
                      "$ref" : "#/components/schemas/HostedPage",
                      "description" : "<p class=\"mb-2\">Represents the hosted page created for the offer. This is returned only if the selected offer option&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">processing_type</code>\nis checkout.</p>"
                    }
                  },
                  "required" : [ "offer_fulfillment" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/offer_fulfillments/{offer-fulfillment-id}" : {
      "get" : {
        "summary" : "Retrieve an offer fulfillment",
        "description" : "This API is used to retrieve the fulfillment record. This is typically used to check the latest status of an asynchronous offer fulfillment. You can use this after creating an offer fulfillment (billing update or checkout).\n",
        "operationId" : "retrieve_an_offer_fulfillment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "offer-fulfillment-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/offer-fulfillment-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "offer_fulfillment" : {
                      "$ref" : "#/components/schemas/OfferFulfillment",
                      "description" : "<p class=\"mb-2\">Represents the fulfillment created for the offer.</p>"
                    }
                  },
                  "required" : [ "offer_fulfillment" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      },
      "post" : {
        "summary" : "Update an offer fulfillment",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">This API is used to update the status of offer fulfillment for the processing types <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">url_redirect</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhook</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code> as Chargebee cannot automatically fulfill these offers.\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status = failed</code>, you must include a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failure_reason</code> to explain why the fulfillment did not succeed. The system logs a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fulfilled</code> event when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status = completed</code> or a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code> event when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status = failed</code>.\n<strong class=\"font-semibold\">Note</strong>: If the offer fulfillment is not marked as completed or failed within 7 days, Chargebee will mark the offer fulfillment as failed with the error code as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">external_fulfillment_failed</code>.</p></div>",
        "operationId" : "update_an_offer_fulfillment",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "offer-fulfillment-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/offer-fulfillment-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "ID of the fulfillment that is being updated.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Final state of the fulfillment.\n\\* failed -\n\nPass this if the fulfillment is failed.\n\\* completed -\n\nPass this if the fulfillment is completed.\n",
                    "enum" : [ "completed", "failed" ],
                    "example" : null
                  },
                  "failure_reason" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Explanation for failure; required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>\n.</p>",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "required" : [ "id", "status" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "offer_fulfillment" : {
                      "$ref" : "#/components/schemas/OfferFulfillment",
                      "description" : "<p class=\"mb-2\">Represents the fulfillment created for the offer.</p>"
                    }
                  },
                  "required" : [ "offer_fulfillment" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/offer_events" : {
      "post" : {
        "summary" : "Create an offer event",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">The Create Offer Event API records user interactions with an offer for tracking and analytics purposes.\nUse this API to log user-triggered engagement events such as:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">viewed</code> - when an offer is displayed to the user.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">dismissed</code> - when the user closes or ignores the offer.\nThese events are essential for accurate offer performance reporting and funnel analysis. Make sure to send them as they happen.</li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> System-driven events like accepted and fulfilled are captured automatically by the growth system through fulfillment workflows. You do not need to post these.</p></div>",
        "operationId" : "create_an_offer_event",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "personalized_offer_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The ID of the personalized offer the event pertains to.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The type of engagement event to be recorded.\n\\* dismissed -\n\nLogged when the user closes or ignores the offer without accepting\n\\* viewed -\n\nLogged when the user's UI renders or displays the offer\n",
                    "enum" : [ "viewed", "dismissed" ],
                    "example" : null
                  }
                },
                "required" : [ "personalized_offer_id", "type" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "204" : {
            "description" : "No Content"
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ],
        "servers" : [ {
          "url" : "{protocol}://{site}.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        }, {
          "url" : "{protocol}://{site}-test.grow.{environment}:{port}/api/v2",
          "variables" : {
            "protocol" : {
              "default" : "https",
              "enum" : [ "http", "https" ]
            },
            "site" : {
              "default" : "demo"
            },
            "environment" : {
              "default" : "chargebee.com",
              "enum" : [ "chargebee.com" ]
            },
            "port" : {
              "default" : "443",
              "enum" : [ "443", "8080" ]
            }
          }
        } ]
      }
    },
    "/webhook_endpoints/{webhook-endpoint-id}/delete" : {
      "post" : {
        "summary" : "Delete a webhook endpoint",
        "description" : "Deletes a webhook endpoint using its unique identifier. Use this API to remove obsolete or inactive webhook endpoints from your Chargebee site. Deleting an endpoint ensures it no longer receives event notifications.\n",
        "operationId" : "delete_a_webhook_endpoint",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "webhook-endpoint-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/webhook-endpoint-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "webhook_endpoint" : {
                      "$ref" : "#/components/schemas/WebhookEndpoint",
                      "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhook_endpoint</code>\nresource object that contains the configuration and details of the created webhook.</p>"
                    }
                  },
                  "required" : [ "webhook_endpoint" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/webhook_endpoints/{webhook-endpoint-id}" : {
      "get" : {
        "summary" : "Retrieve a webhook endpoint",
        "description" : "Retrieves the details of a specific webhook endpoint using its unique identifier. Use this API to inspect an endpoint's configuration, such as the target URL, subscribed events, and authentication settings.\n",
        "operationId" : "retrieve_a_webhook_endpoint",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "webhook-endpoint-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/webhook-endpoint-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "webhook_endpoint" : {
                      "$ref" : "#/components/schemas/WebhookEndpoint",
                      "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhook_endpoint</code>\nresource object that contains the configuration and details of the created webhook.</p>"
                    }
                  },
                  "required" : [ "webhook_endpoint" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update webhook endpoint",
        "description" : "Updates the configuration of an existing webhook endpoint using its unique identifier. You can use this API to change properties such as the name, URL, subscribed events, authentication credentials, or API version. This is useful when rotating endpoints, updating destination URLs, or modifying which events your system listens to.\n",
        "operationId" : "update_a_webhook_endpoint",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "webhook-endpoint-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/webhook-endpoint-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A name to identify the webhook endpoint.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "api_version" : {
                    "type" : "string",
                    "default" : "v2",
                    "deprecated" : false,
                    "description" : "The API version used to format the webhook payload. Ensure this version matches the client library used by your webhook server.\n\\* v1 -\n\nIf selected, the payload includes only attributes from API v1 resources.\n\\* v2 -\n\nIf selected, the payload includes only attributes from API v2 resources.\n",
                    "enum" : [ "v1", "v2" ],
                    "example" : null
                  },
                  "url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The target URL where webhook notifications will be sent.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nOnly URL ports <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">80</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">443</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">8080</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">8443</code> are allowed.</p></div>",
                    "maxLength" : 512,
                    "example" : null
                  },
                  "primary_url" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Controls whether card-related resources are included in the webhook payload. Card details are always masked.\n",
                    "example" : null
                  },
                  "send_card_resource" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Specifies whether card-related resources should be included in the webhook payload.\n",
                    "example" : null
                  },
                  "basic_auth_password" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The password used for basic authentication to secure webhook delivery.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "basic_auth_username" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Username for basic authentication used to secure webhook delivery.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "disabled" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether the webhook endpoint is disabled. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nto disable the endpoint, set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto enable the endpoint.</p>",
                    "example" : null
                  },
                  "enabled_events" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "A list of event types that trigger this webhook.  \n**Note**\nIf this field is left empty, the webhook will enable [all event types](/docs/api/webhook_endpoints) by default.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
                      "example" : null
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "webhook_endpoint" : {
                      "$ref" : "#/components/schemas/WebhookEndpoint",
                      "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhook_endpoint</code>\nresource object that contains the configuration and details of the created webhook.</p>"
                    }
                  },
                  "required" : [ "webhook_endpoint" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/webhook_endpoints" : {
      "get" : {
        "summary" : "List webhook endpoints",
        "description" : "Retrieves all webhook endpoints configured on your Chargebee site. The response includes each endpoint's ID, name, and target URL. Use this API to view, audit, or manage the list of webhook endpoints currently active or configured in your site.\n",
        "operationId" : "list_webhook_endpoints",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "webhook_endpoint" : {
                            "$ref" : "#/components/schemas/WebhookEndpoint",
                            "description" : "Resource object representing webhook_endpoint"
                          }
                        },
                        "required" : [ "webhook_endpoint" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create a webhook endpoint",
        "description" : "Create a new webhook API endpoint on your Chargebee Site.\n",
        "operationId" : "create_a_webhook_endpoint",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A name to identify the webhook endpoint.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "api_version" : {
                    "type" : "string",
                    "default" : "v2",
                    "deprecated" : false,
                    "description" : "The API version used to format the webhook payload. Ensure this version matches the client library used by your webhook server\n\\* v1 -\n\nIf selected, the payload includes only attributes from API v1 resources.\n\\* v2 -\n\nIf selected, the payload includes only attributes from API v2 resources.\n",
                    "enum" : [ "v1", "v2" ],
                    "example" : null
                  },
                  "url" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The target URL where webhook notifications will be sent.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nOnly URL ports <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">80</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">443</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">8080</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">8443</code> are allowed.</p></div>",
                    "maxLength" : 512,
                    "example" : null
                  },
                  "primary_url" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Indicates whether this webhook is marked as the primary endpoint. If only one exists, it is primary by default.\n",
                    "example" : null
                  },
                  "disabled" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates whether the webhook endpoint is disabled. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nto disable the endpoint, set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto enable the endpoint.</p>",
                    "example" : null
                  },
                  "basic_auth_password" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The password used for basic authentication to secure webhook delivery.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "basic_auth_username" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Username for basic authentication used to secure webhook delivery.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "send_card_resource" : {
                    "type" : "boolean",
                    "default" : false,
                    "deprecated" : false,
                    "description" : "Controls whether card-related resources are included in the webhook payload. Card details are always masked.\n",
                    "example" : null
                  },
                  "chargebee_response_schema_type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Indicates the response schema used in the webhook payload,  based on the product catalog version configured for the site.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThis field is only applicable if the site is in <a href=\"https://www.chargebee.com/docs/billing/1.0/product-catalog/product-catalog-coexistence-ui-changes\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">compat</code></a> mode.</p></div>\n* compat - <p class=\"mb-2\">The webhook payload uses a schema compatible with both Product Catalog 1.0 and 2.0. This is applicable only to sites automatically upgraded to Product Catalog 2.0.</p>\n* items - <p class=\"mb-2\">The webhook payload follows the <a href=\"https://www.chargebee.com/docs/billing/2.0/product-catalog/product-catalog\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Product Catalog 2.0</a>\nschema and uses the <a href=\"/docs/api/items\">Items API model</a>\n.</p>\n* plans_addons - <p class=\"mb-2\">The webhook payload follows the <a href=\"https://www.chargebee.com/docs/billing/1.0/product-catalog/product-catalog\">Product Catalog 1.0</a>\nschema and uses the <a href=\"/docs/api/v2/pcv-1/plans\">Plans</a>\nand <a href=\"/docs/api/v2/pcv-1/addons\">Addons</a>\nmodel.</p>",
                    "enum" : [ "plans_addons", "items", "compat" ],
                    "example" : null
                  },
                  "enabled_events" : {
                    "type" : "array",
                    "deprecated" : false,
                    "description" : "A list of event types that trigger this webhook.  \n**Note**\nIf this field is left empty, the webhook will enable [all event types](/docs/api/webhook_endpoints) by default.\n",
                    "items" : {
                      "type" : "string",
                      "deprecated" : false,
                      "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
                      "example" : null
                    },
                    "example" : null
                  }
                },
                "required" : [ "name", "url" ],
                "example" : null
              },
              "encoding" : { }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "webhook_endpoint" : {
                      "$ref" : "#/components/schemas/WebhookEndpoint",
                      "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhook_endpoint</code>\nresource object that contains the configuration and details of the created webhook.</p>"
                    }
                  },
                  "required" : [ "webhook_endpoint" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/usage_summary" : {
      "get" : {
        "summary" : "Retrieve usage summary for a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Retrieves aggregated usage data for a metered feature in a subscription over a specified reporting window.</p><p class=\"mb-2\">Unlike <a href=\"/docs/api/usage_charges/retrieve-usage-charges-for-subscription\" class=\"text-blue-600 hover:text-blue-800 underline\">Retrieve Current Usage Charges for a Subscription</a> API, which returns the current unbilled usage snapshot including charges, this endpoint returns aggregated usage for a requested timeframe.</p><p class=\"mb-2\">Use this endpoint to power experiences such as:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">plotting daily, weekly, or monthly usage trends</li>\n<li class=\"text-base leading-relaxed\">analyzing feature adoption over time</li>\n<li class=\"text-base leading-relaxed\">comparing recent usage against earlier periods</li>\n<li class=\"text-base leading-relaxed\">showing historical usage summaries to subscribers</li>\n</ul><h3>What this endpoint returns</h3><p class=\"mb-2\">Returns usage summary entries for the requested feature within the specified timeframe.</p><p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_start</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_end</code> are not provided, the reporting range <strong class=\"font-semibold\">defaults to the start of the subscription&#x27;s current term for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_start</code> and the current time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_end</code>.</strong></p><h3>How aggregation works</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">window_size</code> is omitted, the response returns a single aggregate for the full reporting range.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">window_size</code> is provided, the response returns one aggregated entry for each window in the reporting range.</li>\n</ul><p class=\"mb-2\">Aggregation windows begin at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_start</code> and continue consecutively until <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_end</code>.</p><p class=\"mb-2\">The usages in the window will be bucketed into <strong class=\"font-semibold\">rolling windows</strong> aligned to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_start</code>, <strong class=\"font-semibold\">not to calendar boundaries</strong>.</p><h4>Example</h4><p class=\"mb-2\">If:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_start</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">May 10 10:00:00 UTC</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_end</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">June 10 10:00:00 UTC</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">window_size</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">day</code></li>\n</ul><p class=\"mb-2\">The response returns windows such as:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">May 10 10:00:00 UTC</code> → <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">May 11 10:00:00 UTC</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">May 11 10:00:00 UTC</code> → <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">May 12 10:00:00 UTC</code></li>\n</ul><p class=\"mb-2\">and continues in the same pattern until the final window:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">June 9 10:00:00 UTC</code> → <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">June 10 10:00:00 UTC</code></li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\">If you need calendar-aligned reporting, set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_start</code> to the required boundary. For example, use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">00:00:00 UTC</code> for daily reporting aligned to calendar days, or the first day of the month at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">00:00:00 UTC</code> for monthly reporting aligned to calendar months.</p></div><p class=\"mb-2\">Each aggregation window follows inclusive-exclusive semantics:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_from</code> is inclusive</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_till</code> is exclusive</li>\n</ul><p class=\"mb-2\">In other words, each window is represented as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_from</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_till</code>.</p><p class=\"mb-2\">This means:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">an event with a timestamp exactly equal to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_from</code> is included in that window</li>\n<li class=\"text-base leading-relaxed\">an event with a timestamp exactly equal to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_till</code> is excluded from that window and counted in the next window, if one exists</li>\n<li class=\"text-base leading-relaxed\">an event with a timestamp exactly equal to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">timeframe_end</code> is excluded</li>\n</ul><p class=\"mb-2\">These inclusive-exclusive boundaries ensure that windows do not overlap and that events on boundaries are never double-counted.</p><div class=\"warning alert alert-warning\"><h3>Distinct-count behavior</h3><p class=\"mb-2\">If a feature uses distinct-count aggregation, the distinct count is evaluated separately within each returned window.</p><p class=\"mb-2\">This means the same entity can be counted once in multiple windows if it appears in each of them.</p><h4>Example</h4><p class=\"mb-2\">If the same user appears in both:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">one daily window on <strong class=\"font-semibold\">Jan 1</strong></li>\n<li class=\"text-base leading-relaxed\">another daily window on <strong class=\"font-semibold\">Jan 2</strong></li>\n</ul><p class=\"mb-2\">That user is counted once in the Jan 1 aggregate and once in the Jan 2 aggregate.</p></div></div>",
        "operationId" : "retrieve_usage_summary_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly,\nalways set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code> to the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code> obtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "feature_id",
          "in" : "query",
          "description" : "Unique identifier of the metered [feature](/docs/api/features/feature-object#id)\nfor which usage is aggregated\n",
          "required" : true,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        }, {
          "name" : "window_size",
          "in" : "query",
          "description" : "Specifies the aggregation interval for the reporting window. If omitted,\nthe response includes a single aggregate for the entire reporting window.\n\\* day -\n\nAggregates usage by day.\n\\* minute -\n\nAggregates usage by minute.\n\\* hour -\n\nAggregates usage by hour.\n\\* month -\n\nAggregates usage by month.\n\\* week -\n\nAggregates usage by week.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "month", "week", "day", "hour", "minute" ],
            "example" : null
          }
        }, {
          "name" : "timeframe_start",
          "in" : "query",
          "description" : "Start of the reporting window, in Unix epoch seconds. If not provided,\ndefaults to the start of the current subscription term.\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        }, {
          "name" : "timeframe_end",
          "in" : "query",
          "description" : "End of the reporting window, in Unix epoch seconds. If not provided,\ndefaults to the current time\n",
          "required" : false,
          "deprecated" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "usage_summary" : {
                            "$ref" : "#/components/schemas/UsageSummary",
                            "description" : "Resource object representing usage_summary"
                          }
                        },
                        "required" : [ "usage_summary" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/usage_charges" : {
      "get" : {
        "summary" : "Retrieve usage charges for a subscription",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Returns the current, unbilled usage charges for the metered features on a subscription.</p><p class=\"mb-2\">This endpoint returns usage for each feature’s current usage period. If entitlement or pricing changes during that period, the same feature can appear multiple times, with one usage_charge object returned for each interval.</p><p class=\"mb-2\">Use this endpoint to present the below information in your portal or customer-facing experiences.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">current usage to date</li>\n<li class=\"text-base leading-relaxed\">included entitlement</li>\n<li class=\"text-base leading-relaxed\">on-demand or overage usage, if any</li>\n<li class=\"text-base leading-relaxed\">the current chargeable amount, when applicable</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\">This endpoint does not return historical, billed, or invoice-backed usage.</p></div><p class=\"mb-2\">This endpoint returns usage for the <strong class=\"font-semibold\">active usage window of each feature</strong>, not necessarily for the full subscription term.</p><p class=\"mb-2\">To read the response correctly, keep these three concepts in mind:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Subscription current term</strong>: The overall billing term of the subscription, usually defined by the plan.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Current usage period</strong>: The active period for which usage is currently accruing and has not yet been billed for a feature.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Usage interval</strong>: A continuous segment within the current usage period where entitlement and pricing remain unchanged.</li>\n</ul><div id=\"transfer-more\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#transfer-more-content\" aria-expanded=\"false\" aria-controls=\"transfer-more-content\">Read more about time concepts<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"transfer-more-content\"><h3>1. Subscription current term</h3><p class=\"mb-2\">The <strong class=\"font-semibold\">subscription current term</strong> is the broader billing term of the subscription. It is usually determined by the lowest-frequency item on the subscription, typically the plan.</p><p class=\"mb-2\">It is included as context only.</p><div class=\"alert alert-info\"><p class=\"mb-2\">This endpoint does not return usage for the full subscription term unless that also happens to be the feature’s active usage window.</p></div><h3>2. Current usage period</h3><p class=\"mb-2\">The <strong class=\"font-semibold\">current usage period</strong> is the time range in which usage is actively accruing and has not yet been billed for a feature.</p><p class=\"mb-2\">This is the primary time window used by the API.</p><p class=\"mb-2\">How it is determined</p><p class=\"mb-2\"><strong class=\"font-semibold\">Feature with metered addon -</strong> The current usage period is the overage addon’s billing period.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Feature without metered addon -</strong> The current usage period is the currently active entitlement window for that feature.</p><h3>3. Usage intervals</h3><p class=\"mb-2\">A <strong class=\"font-semibold\">current usage period</strong> may be returned as a single interval or as multiple intervals.</p><p class=\"mb-2\">A <strong class=\"font-semibold\">usage interval</strong> is a continuous segment where the feature’s entitlement and pricing remain unchanged.</p><p class=\"mb-2\">If nothing changes during the period, the API returns one entry for that feature.</p><p class=\"mb-2\">If something changes, the API returns multiple entries for the same feature.</p><h4>Changes that can create multiple intervals</h4><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Entitlement changes mid-period</li>\n<li class=\"text-base leading-relaxed\">A metered addon is added, removed, or expires</li>\n<li class=\"text-base leading-relaxed\">Overage pricing changes mid-period</li>\n<li class=\"text-base leading-relaxed\">Pricing configuration changes during the active period</li>\n</ul><div id=\"read-more\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#read-more-content\" aria-expanded=\"false\" aria-controls=\"read-more-content\">Read more about example scenario<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"read-more-content\"><h3>Example Scenario</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Base Plan:</strong> Includes 100 GB/month (Starts 1 Jan).</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Mid-Period Change: Addon #1</strong> (+200 GB/month) is added on <strong class=\"font-semibold\">16 Jan 09:00:00</strong></li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Snapshot Date:</strong> API is called on <strong class=\"font-semibold\">20 Jan.</strong></li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Current Usage Period: 1 Jan 00:00:00 – 31 Jan 23:59:59</strong></p><h4>Usage Interval 1: 1 Jan 00:00:00 – 16 Jan 08:59:59</h4><p class=\"mb-2\">This interval reflects the subscription’s state before the addon was active.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Entitlement:</strong> 100 GB (Base Plan)</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Usage:</strong> 80 GB consumed</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Carry-forward:</strong> The remaining 20 GB of the base plan is carried into the next interval.</li>\n</ul><h4>Usage Interval 2: 16 Jan 09:00:00 – 20 Jan 23:59:59</h4><p class=\"mb-2\">This interval begins the moment the entitlement context changes and ends at the response snapshot (20 Jan).</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Entitlement:</strong> 220 GB total\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><em class=\"italic\">Calculation: 20 GB (remaining from Base Plan) + 200 GB (Addon #1)</em></li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Usage:</strong> 100 GB consumed during this specific 4-day window.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Note:</strong> Although the billing month ends on 31 Jan, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_to</code> date is capped at the snapshot date (Jan 20).</li>\n</ul><docs-snippet>screenshot|/images/retrieve_usage_charges_for_subscription_1.png</docs-snippet><h4>Response Behaviour</h4><p class=\"mb-2\">The API returns separate usage charge objects for each interval where entitlement remains stable.</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">First object - Initial Plan Period</strong></p>\n<p class=\"mb-2\">Covers the storage feature from <strong class=\"font-semibold\">1 Jan 00:00:00</strong> to <strong class=\"font-semibold\">16 Jan 08:59:59</strong>.</p>\n<p class=\"mb-2\">During this interval, total entitlement is <strong class=\"font-semibold\">100 GB</strong>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">80 GB</strong> is consumed, so <strong class=\"font-semibold\">20 GB</strong> remains and carries forward into the next interval.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Second object - Post-Addon Addition</strong></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Covers the storage feature from <strong class=\"font-semibold\">16 Jan 09:00:00</strong> to <strong class=\"font-semibold\">20 Jan 23:59:59</strong>.</li>\n<li class=\"text-base leading-relaxed\">During this interval, total entitlement is <strong class=\"font-semibold\">220 GB</strong>, calculated as:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">200 GB</strong> from Addon #1</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">20 GB</strong> carried forward from the plan</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">100 GB</strong> is consumed out of 220 GB; hence, no charges.</li>\n</ul>\n</li>\n</ol><h5><strong class=\"font-semibold\">Response for Jan 20</strong></h5><pre><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">&quot;list&quot;: [\n        &quot;usage_charge&quot;: {\n            &quot;subscription_id&quot;:&quot;sub-001&quot;,\n            &quot;feature_id&quot;: &quot;storage_abc&quot;,\n            “usage_from”:&quot;1 Jan 00:00:00&quot;, // For readability, the exact dates are shown here; the actual response will have timestamps.\n            “usage_to”:&quot;16 Jan 08:59:59&quot;,\n            &quot;included_usage&quot;: &quot;100&quot;,\n            &quot;total_usage&quot;: &quot;80&quot;,\n            &quot;on_demand_usage&quot;: &quot;0&quot;,              \n            &quot;amount&quot;: &quot;0&quot;,\n            &quot;metered_item_price_id&quot;:&quot;storage_001&quot;\n          },\n        &quot;usage_charge&quot;: {\n            &quot;subscription_id&quot;:&quot;sub-001&quot;,\n            &quot;feature_id&quot;: &quot;storage_abc&quot;,\n            “usage_from”:&quot;16 Jan 09:00:00&quot;,\n            “usage_to”:&quot;20 Jan 23:59:59&quot;,\n            &quot;included_usage&quot;: &quot;220&quot;,\n            &quot;total_usage&quot;: &quot;100&quot;,\n            &quot;on_demand_usage&quot;: &quot;0&quot;,                  \n            &quot;amount&quot;: &quot;0&quot;,\n            &quot;metered_item_price_id&quot;:&quot;storage_001&quot;\n          }\n  ]\n</code></pre><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> For readability, the example above uses dates such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1 Jan</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">16 Jan</code>. In the actual API response, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_from</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_to</code> are returned as timestamps.</p></div></div></div></div><h2>Integration notes</h2><p class=\"mb-2\">When processing the response:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Group entries by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></li>\n<li class=\"text-base leading-relaxed\">Sort intervals by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_from</code></li>\n<li class=\"text-base leading-relaxed\">Do not assume one entry per feature</li>\n<li class=\"text-base leading-relaxed\">Use <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code> only when present</li>\n<li class=\"text-base leading-relaxed\">Treat the response as a snapshot of current unbilled usage</li>\n</ul></div>",
        "operationId" : "retrieve_usage_charges_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "The number of resources to be returned.\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<p class=\"mb-2\">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code>\nto the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code>\nobtained in the previous iteration of the API call.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "feature_id",
          "in" : "query",
          "description" : "optional, string filter\n\nUnique identifier of the metered [feature](/docs/api/features/feature-object#id) for which usage is tracked.\n**Supported operators :**\nis\n\n**Example →**\n*feature_id\\[is\\] = \"fea-user-licenses\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "example" : "feat_123",
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "usage_charge" : {
                            "$ref" : "#/components/schemas/UsageCharge",
                            "description" : "Resource object representing usage_charge"
                          }
                        },
                        "required" : [ "usage_charge" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/applicable_alerts" : {
      "get" : {
        "summary" : "List applicable alerts for a subscription",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">Returns the effective set of alert configurations for a given subscription. This includes global alerts (filtered by the subscription&#x27;s plan) and any subscription-scoped alerts, giving you a single view of all threshold rules in force.</p><p class=\"mb-2\">Use this endpoint when building subscription dashboards or evaluating which alerts apply to a specific customer.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> This endpoint returns alert configurations only. To check the runtime state (whether alerts are currently <code>within_limit</code> or <code>in_alarm</code>), use <a href=\"/docs/api/alert_statuses/list-alert-statuses-for-a-subscription\">List alert statuses for a subscription</a>.</p></div></div>",
        "operationId" : "list_applicable_alerts_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "optional, integer\n\nMaximum number of results to return.\n\n**Example →**\n*limit = 25*\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string</p></dfn>\n<p class=\"mb-2\">Pagination cursor returned by a previous list call. Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code> value from the previous response.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nFilter by [status](/docs/api/alerts/alert-object#status).\n\n**Example →**\n*status\\[is\\] = \"enabled\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`enabled\\` - enabled \\* \\`disabled\\` - disabled\n",
                "enum" : [ "enabled", "disabled" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nFilter by [type](/docs/api/alerts/alert-object#type).\n\n**Example →**\n*type\\[is\\] = \"usage_exceeded\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`usage_exceeded\\` - usage_exceeded\n",
                "enum" : [ "usage_exceeded" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">An array of alert objects matching the filter criteria.</p>",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "alert" : {
                            "$ref" : "#/components/schemas/Alert",
                            "description" : "Resource object representing alert"
                          }
                        },
                        "required" : [ "alert" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "<p class=\"mb-2\">Returned only if more results are available. Pass this value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code> in the next request to fetch the next page.</p>",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/alerts/{alert-id}" : {
      "get" : {
        "summary" : "Retrieve an alert",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">Retrieves a single alert configuration by <code>alert_id</code>. This returns the rule definition only and does not include runtime evaluation state.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> To check whether a subscription is currently <code>within_limit</code> or <code>in_alarm</code> for this alert, use <a href=\"/docs/api/alert_statuses/retrieve-alert-status\">Retrieve alert status</a>.</p></div></div>",
        "operationId" : "retrieve_an_alert",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "alert-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/alert-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "alert" : {
                      "$ref" : "#/components/schemas/Alert",
                      "description" : "<p class=\"mb-2\">Resource object representing alert.</p>"
                    }
                  },
                  "required" : [ "alert" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Update an alert",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Updates an existing alert configuration. Use this to change the <code>threshold</code> values or toggle the <code>status</code> between <code>enabled</code> and <code>disabled</code>.</p></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Alert status on threshold change</p></strong><div class=\"impact-description\"><p class=\"mb-2\">When the threshold is updated for an alert, the <code>alarm_status</code> for all impacted subscriptions is reset to <code>within_limit</code>. The alert is only re-evaluated when new <a href=\"/docs/api/usage_events\" class=\"text-blue-600 hover:text-blue-800 underline\">usage events</a> are ingested for the associated metered feature.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Alert status on disable</p></strong><div class=\"impact-description\"><p class=\"mb-2\">When the alert <code>status</code> is changed to <code>disabled</code>, all further evaluation stops. No webhooks are fired for this alert while it is disabled. When the alert is re-enabled, the <code>alarm_status</code> is set to <code>within_limit</code> and is only re-evaluated upon new <a href=\"/docs/api/usage_events\" class=\"text-blue-600 hover:text-blue-800 underline\">usage event</a> ingestion.</p></div></div></div>",
        "operationId" : "update_an_alert",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "alert-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/alert-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "status" : {
                    "type" : "string",
                    "default" : "enabled",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">enabled</code> to activate the alert or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">disabled</code> to deactivate it.</p>\n* enabled - <p class=\"mb-2\">The alert is active and will trigger when the threshold is breached.</p>\n* disabled - <p class=\"mb-2\">The alert is inactive and will not trigger, regardless of usage.</p>",
                    "enum" : [ "enabled", "disabled" ],
                    "example" : null
                  },
                  "threshold" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "The threshold configuration that defines when this alert fires. Only the fields provided are updated.\n",
                    "properties" : {
                      "mode" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">How the threshold <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is interpreted.</p>\n* percentage - <p class=\"mb-2\">The threshold <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> represents a percentage of the plan quota (0–100).</p>\n* absolute - <p class=\"mb-2\">The threshold <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> represents an absolute usage quantity.</p>",
                        "enum" : [ "absolute", "percentage" ],
                        "example" : null
                      },
                      "value" : {
                        "type" : "number",
                        "format" : "double",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The numeric threshold at which the alert fires. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code> mode, this must be between 0 and 100 inclusive. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">absolute</code> mode, this must be &gt;= 0.</p>",
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "example" : null
              },
              "encoding" : {
                "threshold" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "alert" : {
                      "$ref" : "#/components/schemas/Alert",
                      "description" : "<p class=\"mb-2\">Resource object representing alert.</p>"
                    }
                  },
                  "required" : [ "alert" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/alerts/{alert-id}/delete" : {
      "post" : {
        "summary" : "Delete an alert",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">Deletes an alert configuration. Only subscription-scoped alerts can be deleted using this endpoint.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><p class=\"mb-2\">This operation cannot delete global alerts. To stop a global alert from firing, <a href=\"/docs/api/alerts/update-an-alert\">update the alert</a> and set <code>status</code> to <code>disabled</code> instead.</p></div></div>\n<div class=\"impacts-of-the-operation\"><h3>Impacts</h3><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Alert configuration</p></strong><div class=\"impact-description\"><p class=\"mb-2\">The alert configuration is permanently deleted from the system and cannot be recovered.</p></div></div><div class=\"impact\"><strong class=\"impact-title\"><p class=\"mb-2\">Alert statuses</p></strong><div class=\"impact-description\"><p class=\"mb-2\">All <a href=\"/docs/api/alert_statuses\" class=\"text-blue-600 hover:text-blue-800 underline\">alert statuses</a> associated with this alert are removed. No further evaluation takes place, and no <code>alert_status_changed</code> webhooks are fired for this alert going forward.</p></div></div></div>",
        "operationId" : "delete_an_alert",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "alert-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/alert-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "alert" : {
                      "$ref" : "#/components/schemas/Alert",
                      "description" : "<p class=\"mb-2\">Resource object representing alert.</p>"
                    }
                  },
                  "required" : [ "alert" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/alerts" : {
      "get" : {
        "summary" : "List alerts",
        "description" : "Returns a list of alert configurations meeting **all** the conditions specified in the filter parameters below. Results include both global and subscription-scoped alerts.  \n**Note:** To retrieve only the alerts that are in effect for a specific subscription (after resolving global rules and overrides), use [List applicable alerts](/docs/api/alerts/list-applicable-alerts) instead.\n",
        "operationId" : "list_alerts",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "optional, integer\n\nMaximum number of results to return.\n\n**Example →**\n*limit = 10*\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string</p></dfn>\n<p class=\"mb-2\">Pagination cursor returned by a previous list call. Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code> value from the previous response.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example →</strong>\n<em class=\"italic\">offset = &quot;MjAyNC0xMi0yMFQxMjozMjo1MSswMDowMHw5OTk5OTk5OTk=&quot;</em></p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter alerts by [id](/docs/api/alerts/alert-object#id).\n\n**Example →**\n*id\\[in\\] = \"alert___dev__3Nl7purV3LwbKYH\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nFilter by [type](/docs/api/alerts/alert-object#type).\n\n**Example →**\n*type\\[is\\] = \"usage_exceeded\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`usage_exceeded\\` - usage_exceeded\n",
                "enum" : [ "usage_exceeded" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "subscription_id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter by [subscription_id](/docs/api/alerts/alert-object#subscription_id) to find alerts scoped to a specific subscription.\n\n**Example →**\n*subscription_id\\[is\\] = \"sub_KyV2S7Qm8tL7p\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "minLength" : 1,
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nFilter by [status](/docs/api/alerts/alert-object#status).\n\n**Example →**\n*status\\[is\\] = \"enabled\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`enabled\\` - enabled \\* \\`disabled\\` - disabled\n",
                "enum" : [ "enabled", "disabled" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">An array of alert objects matching the filter criteria.</p>",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "alert" : {
                            "$ref" : "#/components/schemas/Alert",
                            "description" : "Resource object representing alert"
                          }
                        },
                        "required" : [ "alert" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "<p class=\"mb-2\">Returned only if more results are available. Pass this value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code> in the next request to fetch the next page.</p>",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      },
      "post" : {
        "summary" : "Create an alert",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">Creates a new alert configuration for a <a href=\"/docs/api/usages\">metered feature</a>. The alert can be <a href=\"/docs/api/alerts/alert-object#global-vs-subscription-alerts\">global or subscription-scoped</a> depending on whether <code>subscription_id</code> is provided.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> Creating an alert defines the threshold rule only. After an alert is created, Chargebee begins evaluating it as new <a href=\"/docs/api/usage_events\">usage events</a> are ingested for the associated metered feature. Alert statuses are created and updated during Alert evaluation. The runtime evaluation state for each subscription is available via the <a href=\"/docs/api/alert_statuses\">Alert Status</a> endpoints.</p></div></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code>metered_feature_id</code> must reference an existing metered feature configured on your site.</li>\n<li class=\"text-base leading-relaxed\"><code>type</code> must be <code>usage_exceeded</code>.</li>\n<li class=\"text-base leading-relaxed\">For <code>filter_conditions</code>, only <code>plan_price_id</code> is supported as the <code>field</code>, with operator <code>equals</code> or <code>not_equals</code>.</li>\n</ul></div>",
        "operationId" : "create_an_alert",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-event-actions",
          "in" : "header",
          "description" : "skip all actions to be done on the events\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-actions",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip all actions to be done on the events\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-email",
          "in" : "header",
          "description" : "skip only emails\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-email",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only emails\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-event-webhook",
          "in" : "header",
          "description" : "skip only webhooks\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-event-webhook",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "skip only webhooks\n",
            "enum" : [ "all-disabled" ],
            "example" : null
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/x-www-form-urlencoded" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "type" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The type of alert to create. Currently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_exceeded</code> is supported.</p>\n* usage_exceeded - <p class=\"mb-2\">The alert fires when usage of the metered feature exceeds the configured threshold.</p>",
                    "enum" : [ "usage_exceeded" ],
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A human-readable name for the alert. Maximum 50 characters.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "description" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An optional description providing additional context about the alert. Maximum 65,000 characters.\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "metered_feature_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The identifier of the [metered feature](/docs/api/usages) that this alert should monitor.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The identifier of the <a href=\"/docs/api/subscriptions\">subscription</a> to scope this alert to. If omitted, the alert is created as a global alert. If provided, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">filter_conditions</code> must not be set.</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "meta" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "An optional string field for storing custom metadata with the alert (for example, JSON serialized by your integration). Maximum 65,000 characters.\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "threshold" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "The threshold configuration that defines when this alert fires.\n",
                    "properties" : {
                      "mode" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">How the threshold <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is interpreted.</p>\n* percentage - <p class=\"mb-2\">The threshold <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> represents a percentage of the plan quota (0–100).</p>\n* absolute - <p class=\"mb-2\">The threshold <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> represents an absolute usage quantity.</p>",
                        "enum" : [ "absolute", "percentage" ],
                        "example" : null
                      },
                      "value" : {
                        "type" : "number",
                        "format" : "double",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The numeric threshold at which the alert fires. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code> mode, this must be between 0 and 100 inclusive. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">absolute</code> mode, this must be &gt;= 0.</p>",
                        "example" : null
                      }
                    },
                    "required" : [ "mode", "value" ],
                    "example" : null
                  },
                  "filter_conditions" : {
                    "type" : "object",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">An array of conditions that restrict which subscriptions a global alert applies to. Multiple conditions are evaluated with OR logic. Cannot be set when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is provided.</p>",
                    "properties" : {
                      "field" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The subscription attribute to filter on. Currently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price_id</code> is supported.</p>\n* plan_price_id - <p class=\"mb-2\">Filters by the plan price associated with the subscription.</p>",
                          "enum" : [ "plan_price_id" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "operator" : {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "description" : "<p class=\"mb-2\">The comparison operator for the filter condition.</p>\n* not_equals - <p class=\"mb-2\">The subscription attribute must not equal the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</p>\n* equals - <p class=\"mb-2\">The subscription attribute must equal the specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</p>",
                          "enum" : [ "equals", "not_equals" ],
                          "example" : null
                        },
                        "example" : null
                      },
                      "value" : {
                        "type" : "array",
                        "description" : "The value to compare against, for example, a specific plan price identifier. Maximum 50 characters.\n",
                        "items" : {
                          "type" : "string",
                          "deprecated" : false,
                          "maxLength" : 50,
                          "example" : null
                        },
                        "example" : null
                      }
                    },
                    "example" : null
                  }
                },
                "required" : [ "metered_feature_id", "name", "type" ],
                "example" : null
              },
              "encoding" : {
                "filter_conditions" : {
                  "style" : "deepObject",
                  "explode" : true
                },
                "threshold" : {
                  "style" : "deepObject",
                  "explode" : true
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "alert" : {
                      "$ref" : "#/components/schemas/Alert",
                      "description" : "<p class=\"mb-2\">Resource object representing alert.</p>"
                    }
                  },
                  "required" : [ "alert" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/subscriptions/{subscription-id}/alert_statuses" : {
      "get" : {
        "summary" : "List alert statuses for a subscription",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">Returns the runtime state of all alerts for a given subscription. Each entry in the response indicates whether the subscription is <code>within_limit</code> or <code>in_alarm</code> for a specific <a href=\"/docs/api/alerts\">alert</a>.</p><p class=\"mb-2\">Use this endpoint to build a subscription-level dashboard showing which thresholds have been breached and when.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> This endpoint returns runtime state, not alert configurations. To retrieve the alert rules that apply to a subscription, use <a href=\"/docs/api/alerts/list-applicable-alerts\">List applicable alerts</a>.</p></div></div>",
        "operationId" : "list_alert_statuses_for_a_subscription",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "subscription-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/subscription-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "optional, integer\n\nMaximum number of results to return.\n\n**Example →**\n*limit = 10*\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string</p></dfn>\n<p class=\"mb-2\">Pagination cursor returned by a previous list call. Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code> value from the previous response.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "alarm_status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nFilter by [alarm_status](/docs/api/alert_statuses/alert-status-object#alarm_status) to find alerts in a specific runtime state.\n\n**Example →**\n*alarm_status\\[is\\] = \"in_alarm\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`within_limit\\` - WITHIN_LIMIT \\* \\`in_alarm\\` - IN_ALARM\n",
                "enum" : [ "within_limit", "in_alarm" ],
                "example" : null
              }
            },
            "example" : null
          }
        }, {
          "name" : "alert_id",
          "in" : "query",
          "description" : "optional, string filter\n\nFilter by [alert_id](/docs/api/alert_statuses/alert-status-object#alert_id) to find the status for a specific alert.\n\n**Example →**\n*alert_id\\[is\\] = \"alert___dev__3Nl7purV3LwbKYH\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "in" : {
                "type" : "string",
                "pattern" : "^\\[(.*)(,.*)*\\]$",
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">An array of alert status objects, one per impacted subscription.</p>",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "alert_status" : {
                            "$ref" : "#/components/schemas/AlertStatus",
                            "description" : "Resource object representing alert_status"
                          }
                        },
                        "required" : [ "alert_status" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "<p class=\"mb-2\">Returned only if more results are available. Pass this value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code> in the next request to fetch the next page.</p>",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    },
    "/alerts/{alert-id}/alert_statuses" : {
      "get" : {
        "summary" : "List alert statuses for an alert",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">Returns the runtime state of a specific <a href=\"/docs/api/alerts\">alert</a> across all impacted subscriptions. Each entry indicates whether a subscription is <code>within_limit</code> or <code>in_alarm</code> for the given alert.</p><p class=\"mb-2\">Use this endpoint to monitor which subscriptions are currently breaching a threshold, for example when building internal dashboards or CSM workflows.</p></div>\n<div class=\"pre-requisites\"><h3>Prerequisites &amp; Constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code>alert_id</code> must reference a global alert. Subscription-scoped alerts return a 400 error since they apply to only one subscription — use <a href=\"/docs/api/alert_statuses/retrieve-alert-status\">Retrieve alert status</a> instead.</li>\n</ul></div>",
        "operationId" : "list_alert_statuses_for_an_alert",
        "parameters" : [ {
          "name" : "chargebee-request-origin-device",
          "in" : "header",
          "description" : "The device from which the customer has made the request\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-device",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The device from which the customer has made the request\n",
            "example" : "Android"
          }
        }, {
          "name" : "chargebee-request-origin-user",
          "in" : "header",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.\n",
            "example" : "user@example.com"
          }
        }, {
          "name" : "chargebee-request-origin-user-encoded",
          "in" : "header",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-user-encoded",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "format" : "email",
            "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.\n",
            "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
          }
        }, {
          "name" : "chargebee-request-origin-ip",
          "in" : "header",
          "description" : "The IP address of the customer where the request originated\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-request-origin-ip",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "The IP address of the customer where the request originated\n",
            "example" : "192.168.1.2",
            "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
          }
        }, {
          "name" : "chargebee-business-entity-id",
          "in" : "header",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
          "required" : false,
          "deprecated" : false,
          "$ref" : "#/components/parameters/chargebee-business-entity-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.\n",
            "maxLength" : 50,
            "example" : null
          }
        }, {
          "name" : "alert-id",
          "in" : "path",
          "required" : true,
          "deprecated" : false,
          "$ref" : "#/components/parameters/alert-id",
          "style" : "simple",
          "explode" : false,
          "schema" : {
            "type" : "string",
            "example" : null
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "description" : "optional, integer\n\nMaximum number of results to return.\n\n**Example →**\n*limit = 25*\n",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 10,
            "description" : "The number of resources to be returned.\n",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "<dfn class=\"text-muted\"><p class=\"mb-2\">optional, string</p></dfn>\n<p class=\"mb-2\">Pagination cursor returned by a previous list call. Use the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">next_offset</code> value from the previous response.</p>",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.\n",
            "maxLength" : 1000,
            "example" : null
          }
        }, {
          "name" : "alarm_status",
          "in" : "query",
          "description" : "optional, enumerated string filter\n\nFilter by [alarm_status](/docs/api/alert_statuses/alert-status-object#alarm_status) to find subscriptions in a specific runtime state.\n\n**Example →**\n*alarm_status\\[is\\] = \"in_alarm\"*\n",
          "required" : false,
          "deprecated" : false,
          "style" : "deepObject",
          "explode" : true,
          "schema" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "is" : {
                "type" : "string",
                "description" : "\\* \\`within_limit\\` - WITHIN_LIMIT \\* \\`in_alarm\\` - IN_ALARM\n",
                "enum" : [ "within_limit", "in_alarm" ],
                "example" : null
              }
            },
            "example" : null
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "list" : {
                      "type" : "array",
                      "description" : "<p class=\"mb-2\">An array of alert status objects, one per impacted subscription.</p>",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "alert_status" : {
                            "$ref" : "#/components/schemas/AlertStatus",
                            "description" : "Resource object representing alert_status"
                          }
                        },
                        "required" : [ "alert_status" ],
                        "example" : null
                      },
                      "example" : null
                    },
                    "next_offset" : {
                      "type" : "string",
                      "description" : "<p class=\"mb-2\">Returned only if more results are available. Pass this value as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offset</code> in the next request to fetch the next page.</p>",
                      "maxLength" : 1000,
                      "example" : null
                    }
                  },
                  "required" : [ "list" ],
                  "example" : null
                }
              }
            }
          },
          "400" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/400"
                }
              }
            }
          },
          "401" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/401"
                }
              }
            }
          },
          "403" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/403"
                }
              }
            }
          },
          "404" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/404"
                }
              }
            }
          },
          "405" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/405"
                }
              }
            }
          },
          "409" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/409"
                }
              }
            }
          },
          "422" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/422"
                }
              }
            }
          },
          "429" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/429"
                }
              }
            }
          },
          "500" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/500"
                }
              }
            }
          },
          "503" : {
            "description" : "on error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/503"
                }
              }
            }
          }
        },
        "deprecated" : false,
        "security" : [ {
          "BasicAuth" : [ ]
        } ]
      }
    }
  },
  "components" : {
    "schemas" : {
      "400" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "invalid_request", "untyped", "payment" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`payment_intent_invalid_amount\\` - Returned when processing amount is different from payment intent amountFor example if payment intent which is passed has authorized 10$ and if the charges initiated is for 12$. \\* \\`configuration_incompatible\\` - Returned when the request is not compatible with the configuration for the site or the configuration is incomplete. \\* \\`payment_intent_invalid\\` - Returned when validation or verification fails for provided payment intent.For example if payment intent which is passed is in not consumable state. \\* \\`invalid_request\\` - Returned when the request has incompatible values or does not match the API specification. As it is a generic error, handling this error is recommended only in combination with param attribute. \\* \\`payment_method_verification_failed\\` - Returned when validation or verification fails for the provided payment method. For example if the payment method is card, this will include all card parameter validation errors and also verification failures from the gateway. \\* \\`payment_processing_failed\\` - Returned when the payment collection fails. \\* \\`resource_limit_exhausted\\` - Returned when any limit constraint is violated by the request. For example this error is thrown when the coupon provided has already expired or its maximum redemption count has been reached. \\* \\`duplicate_entry\\` - Returned when the request provides a duplicate value for an attribute that is specified as unique for that site. For example in 'create subscription api' if you are passing the subscription id then this error will be thrown if a subscription exists in site with the same id. \\* \\`param_wrong_value\\` - Returned when the value does not meet the required specification for the parameter. For example, wrong email format. It is strongly recommended to do the validation at your end before calling Chargebee's API (other than specific cases like VAT number validation). \\* \\`payment_method_not_present\\` - Returned when the request requires payment collection but the 'payment method' details (such as card) is not present for the customer. This error will not occur if auto-collection is disabled for the customer. \\* \\`resource_limit_exceeded\\` \\* \\`payment_gateway_currency_incompatible\\` - Returned when the payment gateway configured is incompatible with the transactional currency. This error will not occur if auto-collection is disabled for the customer.\n",
            "enum" : [ "payment_intent_invalid_amount", "configuration_incompatible", "payment_intent_invalid", "invalid_request", "payment_method_verification_failed", "payment_processing_failed", "resource_limit_exhausted", "duplicate_entry", "param_wrong_value", "payment_method_not_present", "resource_limit_exceeded", "payment_gateway_currency_incompatible" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "401" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "untyped" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`api_authentication_failed\\` - Returned when authentication failed for the request. The possible reasons could be the api key is invalid or authentication header is not present in the request or the header's format is invalid. \\* \\`basic_authentication_failed\\` - Returned when authentication failed for the request. The possible reasons could be that one or both of the username and password are invalid\n",
            "enum" : [ "api_authentication_failed", "basic_authentication_failed" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "403" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "untyped", "operation_failed" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`request_blocked\\` - Returned when request is blocked for your site. The blocking could be only for a specific set of operation(s) . The reason would be provided as part of the message. You would have to contact support for additional details. \\* \\`api_authorization_failed\\` - Returned when the API key does not have sufficient privileges to perform the particular operation.\n",
            "enum" : [ "request_blocked", "api_authorization_failed" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "404" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "invalid_request", "untyped" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`resource_not_found\\` - Returned when any of resource(s) referred in the request is not found. \\* \\`site_not_found\\` - Returned when the site is not found.\n",
            "enum" : [ "resource_not_found", "site_not_found" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "405" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "invalid_request" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`http_method_not_supported\\` - Returned when the 'http method', specified in the request, is not allowed for this URL. It should not occur if you are using one of the standard client library.\n",
            "enum" : [ "http_method_not_supported" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "409" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "invalid_request" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`invalid_state_for_request\\` - Returned when the requested operation is not allowed for current state of the resource. This error will occur if the state of the resource has not been checked for the validity of the request. For example this error is returned when we try to schedule subscription changes at 'end of term' for canceled subscriptions.\n",
            "enum" : [ "invalid_state_for_request" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "422" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "invalid_request" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`unable_to_process_request\\` - Returned when the HTTP request body contains a well-formed, but semantically erroneous payload. For example this error is returned when a client attempts to reuse an idempotency key with a different request payload.\n",
            "enum" : [ "unable_to_process_request" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "429" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "operation_failed" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`third_party_api_request_limit_exceeded\\` - Returned when your request is blocked temporarily at a third-party service, due to the request count exceeding their acceptable limits. \\* \\`api_request_limit_exceeded\\` - Returned when requests have been blocked temporarily due to request count exceeding acceptable limits. \\* \\`lock_timeout\\` - Returned when there are multiple concurrent requests to the same resource.\n",
            "enum" : [ "third_party_api_request_limit_exceeded", "api_request_limit_exceeded", "lock_timeout" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "500" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "operation_failed" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`internal_error\\` - Returned when the request parameters were right but the operation couldn't be completed due to a bug in Chargebee side.\n",
            "enum" : [ "internal_error" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "503" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "type" : "string",
            "example" : null
          },
          "param" : {
            "type" : "string",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "enum" : [ "invalid_request", "operation_failed" ],
            "example" : null
          },
          "api_error_code" : {
            "type" : "string",
            "description" : "\\* \\`db_connection_failure\\` - Returned when db connection fails. \\* \\`site_read_only_mode\\` - Returned when your site is temporarily unavailable for write operations due to a scheduled maintenance. \\* \\`site_not_ready\\` - Returned when your site is temporarily unavailable due to a scheduled maintenance. \\* \\`internal_temporary_error\\` - Returned when temporary occured in Chargebee side. The request can be re-tried, with exponential backoff in case of repeat failures.\n",
            "enum" : [ "db_connection_failure", "site_read_only_mode", "site_not_ready", "internal_temporary_error" ],
            "example" : null
          }
        },
        "required" : [ "api_error_code", "message", "type" ],
        "example" : null
      },
      "AccountHolderType" : {
        "type" : "string",
        "deprecated" : true,
        "enum" : [ "individual", "company" ],
        "example" : null
      },
      "AccountReceivablesHandling" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "no_action", "schedule_payment_collection", "write_off" ],
        "example" : null
      },
      "AccountType" : {
        "type" : "string",
        "deprecated" : true,
        "enum" : [ "checking", "savings", "business_checking", "current" ],
        "example" : null
      },
      "Action" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "upsert", "remove" ],
        "example" : null
      },
      "ActionType" : {
        "type" : "string",
        "default" : "upsert",
        "deprecated" : true,
        "enum" : [ "upsert", "remove" ],
        "example" : null
      },
      "AddUsagesReminderEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "usage_reminder_info" : {
                "$ref" : "#/components/schemas/UsageReminderInfo"
              }
            },
            "required" : [ "customer", "subscription", "usage_reminder_info" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "AdditionalBillingLogiq" : {
        "type" : "object",
        "properties" : {
          "allow_price_override" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "allow_multiple_coupons" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "is_shipping_fields_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "is_reason_codes_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "is_proration_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "void_invoices_with_credit_notes" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "hide_zero_value_line_items" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "round_off_invoice_amount" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "collect_tax_registration" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "hide_chargebee_branding" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "show_update_address_and_payment_method" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "collect_invoice_on_add_or_update_payment_method" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "allow_fraud_monitor" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          }
        },
        "example" : null
      },
      "Address" : {
        "type" : "object",
        "description" : "Subscriptions can have addresses like \"Shipping Address\" associated with them. This is apart from the billing address as part of credit card information.\n",
        "properties" : {
          "label" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Label to identify the address. This is unique for all the address for a subscription.\n",
            "maxLength" : 50,
            "example" : null
          },
          "first_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "First name\n",
            "maxLength" : 150,
            "example" : null
          },
          "last_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Last name\n",
            "maxLength" : 150,
            "example" : null
          },
          "email" : {
            "type" : "string",
            "format" : "email",
            "deprecated" : false,
            "description" : "Email\n",
            "maxLength" : 70,
            "example" : null
          },
          "company" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Company name\n",
            "maxLength" : 250,
            "example" : null
          },
          "phone" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Phone number\n",
            "maxLength" : 50,
            "example" : null
          },
          "addr" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Address line 1\n",
            "maxLength" : 150,
            "example" : null
          },
          "extended_addr" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Address line 2\n",
            "maxLength" : 150,
            "example" : null
          },
          "extended_addr2" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Address line 3\n",
            "maxLength" : 150,
            "example" : null
          },
          "city" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the city\n",
            "maxLength" : 50,
            "example" : null
          },
          "state_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
            "maxLength" : 50,
            "example" : null
          },
          "state" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "State or Province\n",
            "maxLength" : 50,
            "example" : null
          },
          "country" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
            "maxLength" : 50,
            "example" : null
          },
          "zip" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
            "maxLength" : 20,
            "example" : null
          },
          "validation_status" : {
            "type" : "string",
            "default" : "not_validated",
            "deprecated" : false,
            "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* invalid -\n\nAddress is invalid.\n\\* valid -\n\nAddress was validated successfully.\n",
            "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "label", "subscription_id" ],
        "example" : null
      },
      "AdvanceInvoiceSchedule" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">The invoice for a subscription in Chargebee is generated at the time of subscription renewal. Invoices can also be <a href=\"https://www.chargebee.com/docs/advance-invoices.html\" target=\"_blank\" rel=\"noopener noreferrer\">generated in advance</a> for an upcoming renewal or set of renewals. With Advance Invoicing Schedules, you can set up a plan for when such advance invoices are generated for the lifetime of the subscription. This helps you:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Set up a contract with your customers so that they can be notified of their payment schedules in advance.</li>\n<li class=\"text-base leading-relaxed\">Allow customers who make offline payments to be alerted about their upcoming dues well ahead of actual subscription renewals.</li>\n<li class=\"text-base leading-relaxed\">Prevent post-renewal unpaid usage of your services by customers.</li>\n</ul><p class=\"mb-2\">Advance invoices can be scheduled in two ways:</p><h4>Specific Dates Schedule</h4><p class=\"mb-2\">Advance invoices for a subscription can be scheduled to be generated on specific <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#specific_dates_schedule_date\">dates</a> in the future. You must specify the <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#specific_dates_schedule_terms_to_charge\">number of billing cycles</a> to be invoiced on each date. A maximum of 5 dates can be specified.</p><h4>Fixed Interval Schedule</h4><p class=\"mb-2\">Advance invoices can be scheduled to be generated at fixed intervals of time, where each interval spans the same number of billing cycles of the subscription. The invoice for each interval is generated a specified number of days (<a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_days_before_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">days_before_interval</code></a>) before the start of the interval. You can configure the schedule to end on a certain date or after a specified number of advance invoices have been generated.</p><p class=\"mb-2\">The start date of the first interval depends on the number of days remaining from current time till the next renewal of the subscription. If this is more than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">days_before_interval</code>, the interval begins at the next renewal. On the other hand, if the number of days remaining before the next renewal is less than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">days_before_interval</code>, the first interval begins at the renewal following the next.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">System-generated and immutable unique Id for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">advance_invoice_schedule</code>\n.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "schedule_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The type of advance invoice or advance invoicing schedule.\n\\* specific_dates -\n\nThe advance charges occur on specific dates. For each date, [a fixed number of billing cycles](/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#specific_dates_schedule_terms_to_charge)\nis charged for. There can be up to 5 dates configured.\n\\* fixed_intervals -\n\nThe advance charges occur at [fixed intervals of time](/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_terms_to_charge)\n.\n",
            "enum" : [ "fixed_intervals", "specific_dates" ],
            "example" : null
          },
          "fixed_interval_schedule" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_intervals</code>\n, this object gives further details of the schedule.</p>",
            "properties" : {
              "end_schedule_on" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Specifies when the schedule should end.</p>\n* after_number_of_intervals - <p class=\"mb-2\">Advance invoices are generated a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specified number of times</code></p>\n* subscription_end - <p class=\"mb-2\">Advance invoices are generated for as long as the subscription is active.</p>\n* specific_date - <p class=\"mb-2\">End the advance invoicing schedule on a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific date</code>\n.</p>",
                "enum" : [ "after_number_of_intervals", "specific_date", "subscription_end" ],
                "example" : null
              },
              "number_of_occurrences" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The number of advance invoices to generate. The schedule is created such that the total number of billing cycles in the schedule does not exceed the <a href=\"/docs/api/subscriptions/subscription-object#remaining_billing_cycles\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remaining_billing_cycles</code></a>\nof the subscription.  This parameter is applicable only when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_end_schedule_on\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code></a>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">after_number_of_intervals</code></p>",
                "minimum" : 1,
                "example" : null
              },
              "days_before_renewal" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "The number of days before each interval that advance invoices are generated.\n",
                "minimum" : 1,
                "example" : null
              },
              "end_date" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The date when the schedule should end. Advance invoices are not generated beyond this date. It must be at least 1 day before the start of the last billing cycle of the subscription and also within 5 years from the current date. This parameter is only applicable when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#fixed_interval_schedule_end_schedule_on\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_interval_schedule[end_schedule_on]</code></a>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>\n.</p>",
                "example" : null
              },
              "created_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The date when this advance invoicing schedule was created.\n",
                "example" : null
              },
              "terms_to_charge" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "The number of billing cycles in one interval.\n",
                "minimum" : 1,
                "example" : null
              }
            },
            "required" : [ "created_at" ],
            "example" : null
          },
          "specific_dates_schedule" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "The advance charges occur on specific dates. For each date, \\[a fixed number of billing cycles\\](/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#specific_dates_schedule_terms_to_charge) is charged for. There can be up to 5 dates configured.\n",
            "properties" : {
              "terms_to_charge" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The number of billing cycles to charge for, on the date specified. Applicable only when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#schedule_type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code></a>\nis specific_dates.</p>",
                "example" : null
              },
              "date" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The unique id of the member of the advance_invoice_schedule array which corresponds to the specific_dates_schedule that you intend to modify. Only applicable when <a href=\"/docs/api/advance_invoice_schedules/advance_invoice_schedule-object#schedule_type\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">schedule_type</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_dates</code>\n.</p>",
                "example" : null
              },
              "created_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The date when this advance invoicing schedule was created.\n",
                "example" : null
              }
            },
            "required" : [ "created_at" ],
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "AlarmStatus" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "within_limit", "in_alarm" ],
        "example" : null
      },
      "Alert" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">An alert defines a threshold rule for a <a href=\"/docs/api/usages\">metered feature</a> within a <a href=\"/docs/api/subscriptions\">subscription</a>. When the usage of a metered feature crosses the configured threshold, Chargebee triggers a webhook notification, enabling you to take action such as notifying the customer, upgrading the plan, or blocking further usage.</p><p class=\"mb-2\">Common examples of alerts include:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Notifying a customer when they have consumed 90% of their monthly API call quota.</li>\n<li class=\"text-base leading-relaxed\">Alerting your operations team when a customer&#x27;s storage usage exceeds an absolute limit.</li>\n<li class=\"text-base leading-relaxed\">Triggering an automated upgrade workflow when usage crosses a defined threshold.</li>\n</ul><p class=\"mb-2\">The alert resource represents configuration only. To check the current runtime state of an alert for a subscription (whether it is <code>within_limit</code> or <code>in_alarm</code>), use the <a href=\"/docs/api/alert_statuses\">Alert Status</a> endpoints.</p><div id=\"global-vs-subscription-alerts\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#global-vs-subscription-alerts-content\" aria-expanded=\"false\" aria-controls=\"global-vs-subscription-alerts-content\"><h4>Global vs. subscription-scoped alerts</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"global-vs-subscription-alerts-content\"><p class=\"mb-2\">Alerts can be created at two levels:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Global alerts</strong> apply across all subscriptions that use the specified metered feature. To restrict a global alert to specific plans, use <code>filter_conditions</code> with the <code>plan_price_id</code> field. When multiple filter conditions are provided, they are evaluated with OR semantics: the alert applies if any condition matches.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Subscription-scoped alerts</strong> apply to a single subscription only. Set <code>subscription_id</code> when creating the alert. Subscription-scoped alerts cannot have <code>filter_conditions</code>.</li>\n</ul><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><p class=\"mb-2\">A global alert and a subscription-scoped alert are mutually exclusive in their parameters: if <code>subscription_id</code> is set, <code>filter_conditions</code> must not be provided, and vice versa.</p></div></div></div><div id=\"threshold-modes\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#threshold-modes-content\" aria-expanded=\"false\" aria-controls=\"threshold-modes-content\"><h4>Threshold modes</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"threshold-modes-content\"><p class=\"mb-2\">The <code>threshold</code> object defines when the alert should fire. It has two fields:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code>mode</code>: Either <code>percentage</code> or <code>absolute</code>.\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code>percentage</code>: The alert fires when usage reaches the specified percentage of the plan quota. The <code>value</code> must be between 0 and 100 (inclusive).</li>\n<li class=\"text-base leading-relaxed\"><code>absolute</code>: The alert fires when usage reaches an absolute quantity. The <code>value</code> must be &gt;= 0.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><code>value</code>: The numeric threshold at which the alert triggers.</li>\n</ul></div></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies the alert configuration.\n",
            "maxLength" : 40,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The type of alert. Determines the condition that triggers the alert.\n\\* usage_exceeded -\n\nThe alert fires when usage of the metered feature exceeds the configured threshold.\n",
            "enum" : [ "usage_exceeded" ],
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A human-readable name for the alert, shown in the Chargebee UI and webhook payloads. Maximum 50 characters.\n",
            "maxLength" : 50,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "An optional description providing additional context about the alert. Maximum 65,000 characters.\n",
            "maxLength" : 65000,
            "example" : null
          },
          "metered_feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the [metered feature](/docs/api/usages) that this alert monitors.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The identifier of the <a href=\"/docs/api/subscriptions\">subscription</a> this alert is scoped to. Present only for subscription-scoped alerts; <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code> for global alerts.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "enabled",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Whether the alert is currently active. A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">disabled</code> alert is not evaluated against usage data.</p>\n* enabled - <p class=\"mb-2\">The alert is active and will trigger when the threshold is breached.</p>\n* disabled - <p class=\"mb-2\">The alert is inactive and will not trigger, regardless of usage.</p>",
            "enum" : [ "enabled", "disabled" ],
            "example" : null
          },
          "meta" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "An optional string field for storing custom metadata with the alert (for example, JSON serialized by your integration). Maximum 65,000 characters.\n",
            "maxLength" : 65000,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp (UTC, in seconds) indicating when the alert was created.\n",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp (UTC, in seconds) indicating when the alert was last updated.\n",
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "metered_feature_id", "name", "type", "updated_at" ],
        "example" : null
      },
      "AlertStatus" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">An alert status represents the runtime evaluation of an <a href=\"/docs/api/alerts\">alert</a> for a specific <a href=\"/docs/api/subscriptions\">subscription</a>. While the <a href=\"/docs/api/alerts/alert-object\">alert</a> resource defines the threshold rule, the alert status tells you whether a subscription is currently <code>within_limit</code> or <code>in_alarm</code> for that rule.</p><p class=\"mb-2\">Each alert status tracks:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code>alarm_status</code>: The current state — <code>within_limit</code> (usage is below the threshold) or <code>in_alarm</code> (usage has breached the threshold).</li>\n<li class=\"text-base leading-relaxed\"><code>alarm_triggered_at</code>: The timestamp when the alert last entered the <code>in_alarm</code> state. This is <code>null</code> if the alert has never been triggered for this subscription.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> Alert statuses are computed by Chargebee based on usage data and the alert configuration. They are read-only — you cannot create or update an alert status directly. To change the threshold rule, use the <a href=\"/docs/api/alerts\">Alerts</a> API.</p></div></div>",
        "properties" : {
          "alert_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the [alert](/docs/api/alerts) configuration that this status corresponds to.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the [subscription](/docs/api/subscriptions) that this status is evaluated for.\n",
            "maxLength" : 50,
            "example" : null
          },
          "alarm_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The current runtime state of the alert for this subscription. Indicates whether the subscription's usage is within the configured threshold or has breached it.\n\\* within_limit -\n\nUsage is below the configured threshold. The alert has not been triggered for this subscription.\n\\* in_alarm -\n\nUsage has reached or exceeded the configured threshold. The alert has been triggered for this subscription.\n",
            "enum" : [ "within_limit", "in_alarm" ],
            "example" : null
          },
          "alarm_triggered_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Timestamp (UTC, in seconds) indicating when the alert last entered the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_alarm</code> state for this subscription. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code> if the alert has never been triggered.</p>",
            "example" : null
          }
        },
        "required" : [ "alarm_status", "alert_id", "subscription_id" ],
        "example" : null
      },
      "AlertStatusChangedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "alert" : {
                "$ref" : "#/components/schemas/Alert"
              },
              "alert_status" : {
                "$ref" : "#/components/schemas/AlertStatus"
              }
            },
            "required" : [ "alert", "alert_status" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Amendment" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "event_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "subscription_changed", "subscription_created", "subscription_cancelled", "subscription_reactivated_with_backdating", "subscription_activated_with_backdating", "subscription_created_with_backdating", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_canceled_with_backdating", "subscription_changed_with_backdating", "subscription_changes_scheduled", "subscription_cancellation_scheduled", "subscription_pause_scheduled", "subscription_scheduled_changes_removed", "subscription_scheduled_cancellation_removed", "subscription_scheduled_pause_removed", "subscription_reactivated" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "executed", "scheduled", "canceled" ],
            "example" : null
          },
          "sequence_number" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "minimum" : 1,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "effective_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "source" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "admin_console", "api", "scheduled_job", "hosted_page", "portal", "system", "none", "js_api", "migration", "bulk_operation", "external_service" ],
            "example" : null
          },
          "user" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 150,
            "example" : null
          },
          "api_key_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 150,
            "example" : null
          },
          "amendment_contents" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 30,
                  "example" : null
                },
                "subscription_amendment_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "action" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "added", "removed", "modified" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "customer", "subscription", "invoice", "quote", "credit_note", "transaction", "plan", "addon", "coupon", "order", "item_family", "item", "item_price", "plan_item", "addon_item", "charge_item", "plan_price", "addon_price", "charge_price", "differential_price", "attached_item", "feature", "subscription_entitlement", "item_entitlement", "business_entity", "price_variant", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction", "recorded_purchase", "omnichannel_subscription_item_scheduled_change", "sales_order", "omnichannel_one_time_order", "omnichannel_one_time_order_item", "usage_file", "business_rule", "ruleset", "alert_status" ],
                  "example" : null
                },
                "field" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "old_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "new_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "updated_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                }
              },
              "required" : [ "action", "created_at", "entity_type", "field", "id", "subscription_amendment_id" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "effective_at", "event_id", "id", "sequence_number", "source", "status", "subscription_id", "type" ],
        "example" : null
      },
      "ApiVersion" : {
        "type" : "string",
        "default" : "v1",
        "deprecated" : false,
        "enum" : [ "v1", "v2" ],
        "example" : null
      },
      "ApplyOn" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "invoice_amount", "specific_item_price" ],
        "example" : null
      },
      "ApplyRule" : {
        "type" : "object",
        "properties" : {
          "evaluate" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "rule_id" : {
            "type" : "string",
            "deprecated" : false,
            "example" : null
          },
          "ruleset_id" : {
            "type" : "string",
            "deprecated" : false,
            "example" : null
          },
          "skip_failed_rules" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "structured_expression" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "example" : null
          },
          "context" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "example" : null
          }
        },
        "example" : null
      },
      "ApprovalConditionInfo" : {
        "type" : "object",
        "properties" : {
          "operand" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "operator" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          }
        },
        "required" : [ "operand", "operator" ],
        "example" : null
      },
      "ApprovalEstimate" : {
        "type" : "object",
        "properties" : {
          "approval_required" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "approval_required" ],
        "example" : null
      },
      "ApprovalPreviewInfo" : {
        "type" : "object",
        "properties" : {
          "rule_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "version" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "rule_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "stages" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "approver_policy" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "users" : {
                  "type" : "array",
                  "deprecated" : false,
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 50,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "required" : [ "email", "name" ],
                    "example" : null
                  },
                  "example" : null
                }
              },
              "required" : [ "approver_policy", "name" ],
              "example" : null
            },
            "example" : null
          },
          "conditions" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "operand" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "operator" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 65000,
                  "example" : null
                }
              },
              "required" : [ "operand", "operator" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "rule_id", "rule_name", "version" ],
        "example" : null
      },
      "ApprovalStageInfo" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "approver_policy" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "users" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "email", "name" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "approver_policy", "name" ],
        "example" : null
      },
      "ApprovalUserInfo" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "email" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "email", "name" ],
        "example" : null
      },
      "AsyncJob" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "in_progress", "completed", "failed" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "completed_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "request" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "resource" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 100,
                "example" : null
              },
              "action_type" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "action_type", "resource" ],
            "example" : null
          },
          "result" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "content" : {
                "type" : "object",
                "additionalProperties" : true,
                "deprecated" : false,
                "example" : null
              },
              "content_list" : {
                "type" : "array",
                "deprecated" : false,
                "items" : {
                  "example" : null
                },
                "example" : null
              },
              "error" : {
                "type" : "object",
                "additionalProperties" : true,
                "deprecated" : false,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "request", "status" ],
        "example" : null
      },
      "AsyncRequest" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "resource" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "operation_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "enqueued", "in_process", "success", "failed" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "started_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "completed_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "result" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "example" : null
          },
          "error_detail" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "error_detail", "id", "operation_type", "resource", "result", "status", "updated_at" ],
        "example" : null
      },
      "AttachedItem" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Addon-item and charge-item prices are purchased with plan-item prices in subscriptions. You can automate this process by configuring certain addons and charges as &quot;attached&quot; to certain plans. This is done at the &quot;item&quot; level. In other words, addon- and charge-items can be attached to plan-items.</p><p class=\"mb-2\">Once the attachment is defined, while creating or updating a subscription, the addon- or charge-item prices are selected automatically based on the plan-item price selected . Let&#x27;s look at the details:</p><h3>Addons</h3><p class=\"mb-2\">Addons can be attached to plans as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recommended</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">optional</code>.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When an addon is attached as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recommended</code> for a plan, the addon is suggested to be applied to subscriptions for the plan in <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a> and <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Self-Serve Portal</a>. Alternatively, if you build your own payment pages or have a sales team, you can suggest recommended addons to your customers or salespeople on your website or CRM respectively</li>\n<li class=\"text-base leading-relaxed\">When an addon is attached as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">mandatory</code> for a plan, the addon gets applied to subscriptions for the plan compulsorily, unless <a href=\"/docs/api/subscriptions\">removed explicitly</a>. If you do not pass an item price for a mandatory addon when including the plan in a subscription, an addon-item price is automatically applied as explained below.</li>\n<li class=\"text-base leading-relaxed\">Attaching an addon as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">optional</code> neither marks it as recommended or mandatory but allows you a way to set a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code> for the addon, for when it is applied to subscriptions with the plan.</li>\n</ul><h2>How auto-selection of the addon-item price works</h2><p class=\"mb-2\">Once an addon has been attached as mandatory, the addon-item price to be applied to the plan-item price is selected based on the following rule: The addon-item price with the same currency as that of the plan-item price and the longest compatible period is selected.</p><p class=\"mb-2\">Here&#x27;s an example:</p><p class=\"mb-2\">Consider a plan <strong class=\"font-semibold\">Standard Cloud Storage</strong> has an addon <strong class=\"font-semibold\">Extra Storage</strong> attached to it. Note that each of the two are items. Now consider that they have item prices with the following periods and currencies:</p><p class=\"mb-2\"><strong class=\"font-semibold\">Item price for &quot;Standard Cloud Storage&quot; plan-item:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Standard Cloud Storage, 3 years, AUD.</li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Item prices for &quot;Extra Storage&quot; addon-item:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Extra Storage, 1 year, EUR.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 1 year, USD.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 1 year, AUD.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 18 months, AUD.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 2 years, AUD.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 30 months, AUD.</li>\n</ul><p class=\"mb-2\">For the plan-item price (Standard Cloud Storage, 3 years, AUD), the addon-item prices with matching currencies are the last 4 from the above list:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Extra Storage, 1 year, AUD.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 18 months, AUD.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 2 years, AUD.</li>\n<li class=\"text-base leading-relaxed\">Extra Storage, 30 months, AUD.</li>\n</ul><p class=\"mb-2\">From among them, the last two have periods that are incompatible with the plan-item price period of 3 years. From the remaining 2 addon-item prices, the one with the longest period is of 18 months. So, &quot;Extra Storage, 18 months, AUD&quot; is selected for mandatory application to the plan item price.</p><h3>Charges</h3><p class=\"mb-2\">Charges can also be attached to plans. When doing so, you specify <a href=\"/docs/api/attached_items/attached_item-object#charge_on_event\">the event</a> at which the charge is to be applied to the subscription. For some events that can occur multiple times in a subscription lifetime, you can also set whether to apply the charge each time the event occurs or just once.</p><p class=\"mb-2\">There may be multiple item prices for a given attached charge. The item price that matches the currency of the plan-item price is automatically selected for application.</p><p class=\"mb-2\">Here&#x27;s an example:</p><p class=\"mb-2\">Consider a plan <strong class=\"font-semibold\">Standard Cloud Storage</strong> has a charge named <strong class=\"font-semibold\">Implementation Fee</strong> attached to it. Now consider their item prices below, with the following periods and currencies:</p><p class=\"mb-2\"><strong class=\"font-semibold\">Item price for &quot;Standard Cloud Storage&quot; plan-item:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Standard Cloud Storage, 3 years, AUD.</li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Item prices for &quot;Implementation Fee&quot; charge-item:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Implementation Fee, USD.</li>\n<li class=\"text-base leading-relaxed\">Implementation Fee, AUD.</li>\n<li class=\"text-base leading-relaxed\">Implementation Fee, EUR.</li>\n</ul><p class=\"mb-2\">From among the charge-item prices above, the one compatible with the plan-item price is &quot;Implementation Fee, AUD&quot; since it has the same currency as the plan-item price.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique id for the attached item. Set to a random, immutable value automatically when the attached item is created.\n",
            "maxLength" : 100,
            "example" : null
          },
          "parent_item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the plan-item to which the item is attached.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id of the item being attached.\n",
            "maxLength" : 100,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The type of attachment for the addon. Only applicable for  addon-items.</p>\n* recommended - <p class=\"mb-2\">The addon is recommended to go with the plan-item when using <a href=\"https://www.chargebee.com/docs/2.0/configure-inapp.html#fundamental-settings_recommending-addons-in-checkout\" target=\"_blank\">Checkout</a>\nor <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription\" target=\"_blank\">Portal</a>\n.</p>\n* optional - <p class=\"mb-2\">The addon is neither mandatory, nor recommended. This allows you to attach an addon so you can specify a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nfor the addon, for when it is applied to subscriptions with the plan.</p>\n* mandatory - <p class=\"mb-2\">The addon is attached automatically to the subscription for the plan-item unless <a href=\"/docs/api/subscriptions\">explicitly removed</a>\nvia API.</p>",
            "enum" : [ "recommended", "mandatory", "optional" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The item state.\n\\* active -\n\nNew subscriptions can be created with the item.\n\\* deleted -\n\nNo subscriptions allowed for the item.\n\\* archived -\n\nNo new subscriptions allowed for the item.\n",
            "enum" : [ "active", "archived", "deleted" ],
            "example" : null
          },
          "quantity" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "The default quantity of the addon to be attached when the quantity is not specified while [creating](/docs/api/subscriptions/create-subscription-for-items)\n/[updating](/docs/api/subscriptions/update-subscription-for-items)\nthe subscription.\n",
            "minimum" : 1,
            "example" : null
          },
          "quantity_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the quantity of the addon. Returned for quantity-based addons when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
            "maxLength" : 33,
            "example" : null
          },
          "billing_cycles" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The number of subscription billing cycles for which this item is attached when applied to a subscription. Applicable only for items of type addon. Requires <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">addon billing cycles</a>\nto be enabled for the site.</p>\n<p class=\"mb-2\">The value set explicitly for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nwhile <a href=\"/docs/api/subscriptions/subscription-object#subscription_items\">applying the addon to a subscription</a>\ntakes precedence over this attribute. This attribute, in turn, has a higher precedence than <a href=\"/docs/api/item_prices\">the value set for the addon-item price</a>\n.</p>",
            "minimum" : 1,
            "example" : null
          },
          "charge_on_event" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates when the item is charged. This attribute only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* on_demand - <p class=\"mb-2\">Item can be charged on demand</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>",
            "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
            "example" : null
          },
          "charge_once" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This attribute only applies to charge-items.</p>",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which this attached item was created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which this attached item was last updated.\n",
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the\n[business entity](/docs/api/getting-started)\nof this subscription. This is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.\n",
            "maxLength" : 50,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the attached item has been deleted or not.\n",
            "example" : null
          }
        },
        "required" : [ "charge_on_event", "charge_once", "created_at", "deleted", "id", "item_id", "parent_item_id", "type" ],
        "example" : null
      },
      "AttachedItemCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "attached_item" : {
                "$ref" : "#/components/schemas/AttachedItem"
              }
            },
            "required" : [ "attached_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "AttachedItemDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "attached_item" : {
                "$ref" : "#/components/schemas/AttachedItem"
              }
            },
            "required" : [ "attached_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "AttachedItemUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "attached_item" : {
                "$ref" : "#/components/schemas/AttachedItem"
              }
            },
            "required" : [ "attached_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Attribute" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "name", "value" ],
        "example" : null
      },
      "AuthorizationSucceededEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              }
            },
            "required" : [ "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "AuthorizationVoidedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              }
            },
            "required" : [ "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "AutoCollection" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "on", "off" ],
        "example" : null
      },
      "AvalaraSaleType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
        "example" : null
      },
      "BillingAlignmentMode" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "immediate", "delayed" ],
        "example" : null
      },
      "BillingConfiguration" : {
        "type" : "object",
        "properties" : {
          "is_calendar_billing_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "billing_dates" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "start_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "end_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "is_calendar_billing_enabled" ],
        "example" : null
      },
      "BillingDateMode" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "using_defaults", "manually_set" ],
        "example" : null
      },
      "BillingDayOfWeekMode" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "using_defaults", "manually_set" ],
        "example" : null
      },
      "BillingPeriodUnit" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "day", "week", "month", "year" ],
        "example" : null
      },
      "BillingStartOption" : {
        "type" : "string",
        "default" : "on_specific_date",
        "deprecated" : false,
        "enum" : [ "immediately", "on_specific_date" ],
        "example" : null
      },
      "Brand" : {
        "type" : "object",
        "description" : "The brand to which this offer belongs, including its unique id and human-readable name\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The ID of the brand to which these offers belong.\n",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The name of the brand to which these offers belong.\n",
            "maxLength" : 150,
            "example" : null
          }
        },
        "required" : [ "id", "name" ],
        "example" : null
      },
      "BrandConfiguration" : {
        "type" : "object",
        "properties" : {
          "logo_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 300,
            "example" : null
          },
          "scaled_logo_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 300,
            "example" : null
          },
          "scaled_logo_width" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "logo_size" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "small", "medium", "large" ],
            "example" : null
          },
          "icon_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 300,
            "example" : null
          },
          "scaled_icon_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 300,
            "example" : null
          },
          "scaled_icon_width" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "icon_size" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "small", "medium", "large" ],
            "example" : null
          },
          "favicon_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 300,
            "example" : null
          },
          "scaled_favicon_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 300,
            "example" : null
          },
          "color" : {
            "type" : "string",
            "default" : "#2196F3",
            "deprecated" : false,
            "maxLength" : 7,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "modified_at" ],
        "example" : null
      },
      "BrandStyle" : {
        "type" : "object",
        "properties" : {
          "handle" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 255,
            "example" : null
          },
          "custom_domain" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 255,
            "example" : null
          },
          "website_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "created_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 255,
            "example" : null
          },
          "primary_color" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "assets" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "configuration" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          }
        },
        "required" : [ "handle", "name" ],
        "example" : null
      },
      "BusinessEntity" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-mbe\"></span><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity</code> resource represents a business unit or brand under your organization. Key resources in Chargebee Billing (such as <code><a href=\"/docs/api/customers\">customer</a></code>, <code><a href=\"/docs/api/subscriptions\">subscriptions</a></code>, <code><a href=\"/docs/api/invoices\">invoices</a></code>, and <code><a href=\"/docs/api/transactions\">transactions</a></code>) along with the associated site configurations, fall under a <a href=\"https://www.chargebee.com/docs/2.0/mbe.html\" target=\"_blank\">business entity</a>. Each Chargebee Billing <a href=\"https://www.chargebee.com/docs/2.0/sites-intro.html\">site</a> has one business entity by default. You may create multiple business entities in the following scenarios:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Multiple Business Units</strong>: You may be running your business under different regional units with different &quot;invoice-from&quot; addresses. This is usually done to manage taxation and bookkeeping. In such a case, you may create a business entity for each business unit.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Multiple Brands</strong>: You may have multiple brands within your business, such as those acquired via mergers and acquisitions. You may create a business entity for each brand.</li>\n</ul><p class=\"mb-2\">Creating multiple business entities lets you separate configuration and data for your business units or brands so that you can manage their billing and revenue operations independently.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong></p><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/mbe.html\" target=\"_blank\">More information</a> on business entities and the configuration options available.</p></div><div id=\"mbe-header\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#mbe-header-content\" aria-expanded=\"false\" aria-controls=\"mbe-header-content\">Specifying business entity in API operations<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"mbe-header-content\"><p class=\"mb-2\">All API operations in Chargebee have site <a href=\"/docs/api/business_entities\">context</a>. Context restrictions cannot be assigned to <a href=\"https://www.chargebee.com/docs/2.0/api_keys.html\" target=\"_blank\">API keys</a>. However, if your site has multiple business entities, you can specify the business entity <a href=\"/docs/api/business_entities\">context</a> for an API call by passing a <a href=\"/docs/api/advanced-features\">custom HTTP request header</a>.</p></div></div><div id=\"mbe-operations\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#mbe-operations-content\" aria-expanded=\"false\" aria-controls=\"mbe-operations-content\">API behavior based on business entity specified<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"mbe-operations-content\"><p class=\"mb-2\">The table below explains how Chargebee responds to various API calls depending on whether the business entity ID is specified as part of the API call.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Some of the words used here are defined in the <a href=\"/docs/api/business_entities\">Terminology section</a>.</p></div><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><tbody><tr><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Operation/Type of operation</strong></th><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Behavior</strong></th><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Examples</strong></th></tr><tr><td colSpan=\"1\" rowspan=\"1\">Any operation that creates a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource</td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided</strong>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is created and linked to it.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is not provided</strong>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is created under the <a href=\"/docs/api/business_entities\">default business entity</a> of the site.</li>\n</ul></td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/create-a-customer\">Create a customer</a>\n</li>\n<li class=\"text-base leading-relaxed\">When <a href=\"/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges\">Create a checkout for charge items and quick charge</a>s or <a href=\"/docs/api/hosted_pages/create-checkout-for-a-new-subscription\">Create checkout for a new subscription</a> is called, providing a value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer[id]</code> that is not already present in the site. This creates a new <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource.</li>\n</ul></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">Create a resource other than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code></td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided</strong>, and it is the same as that <a href=\"/docs/api/business_entities\">linked</a> to the <a href=\"/docs/api/business_entities\">target resource</a>: the resource is created and linked to the business entity provided.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided</strong>, and it is not the same as that linked to the target resource, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">404 Not Found</code> response is sent because the resource cannot be found in the <a href=\"/docs/api/business_entities\">context</a> of the business entity specified.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is not provided</strong>, the resource is created and linked to the business entity of the target resource.</li>\n</ul></td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/subscriptions/create-subscription-for-items\">Create a subscription</a>: the target resource is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/comments/create-a-comment\">Create a comment</a>: the target resource is specified in the value provided for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">Create an invoice for items and one-time charges</a>: depending on the ID specified, the target resource is either a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> or a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>.</li>\n</ul></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">Update/delete a resource</td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided</strong>, and it is the same as that <a href=\"/docs/api/business_entities\">linked</a> to the resource, the operation proceeds successfully.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided</strong>, and it is not the same as that <a href=\"/docs/api/business_entities\">linked</a> to the resource, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">404 Not Found</code> response is sent because the resource cannot be found in the <a href=\"/docs/api/business_entities\">context</a> of the business entity specified.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is not provided</strong>, the operation proceeds successfully.</li>\n</ul></td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/update-a-customer\">Update a customer</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/subscriptions/update-subscription-for-items\">Update a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/payment_sources/update-a-card-payment-source\">Update a card payment source</a>\n</li>\n</ul></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">List resources</td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided,</strong> then only those resources linked to the business entity are returned since the <a href=\"/docs/api/business_entities\">context</a> of the operation is now restricted to the business entity specified.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is not provided</strong>, then all resources in the site are returned.</li>\n</ul></td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/list-customers\">List customers</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/payment_sources/list-payment-sources\">List payment sources</a>\n</li>\n</ul></td></tr><tr><td colSpan=\"1\" rowspan=\"1\">Retreive a resource</td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided</strong>, and it is the same as that <a href=\"/docs/api/business_entities\">linked</a> to the resource, the resource is retrieved successfully.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is provided</strong>, and it is not the same as that <a href=\"/docs/api/business_entities\">linked</a> to the resource, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">404 Not Found</code> response is sent because the resource cannot be found in the <a href=\"/docs/api/business_entities\">context</a> of the business entity specified.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_id</code> <strong class=\"font-semibold\">is not provided</strong>, the resource is retrieved successfully.</li>\n</ul></td><td colSpan=\"1\" rowspan=\"1\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/retrieve-a-customer\">Retrieve a customer</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/comments/retrieve-a-comment\">Retrieve a comment</a>\n</li>\n</ul></td></tr></tbody></table></div></div></div><div id=\"mbe-terms\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#mbe-terms-content\" aria-expanded=\"false\" aria-controls=\"mbe-terms-content\">Terminology<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"mbe-terms-content\"><p class=\"mb-2\">This section defines some useful terms for describing how business entities work.</p><h4>Linked business entity</h4><p class=\"mb-2\">Any resource is always associated with precisely one and only one business entity. We call it the linked business entity of the resource, or simply, the business entity of the resource.</p><h4>Default business entity</h4><p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is created and no business entity is specified, it is linked to the business entity designated as the default business entity of the site. A site always has a default business entity. Please choose the first business entity details carefully, as it can&#x27;t be changed later, and this will be your default entity when no business entity is specified.</p><h4>Context of an operation</h4><p class=\"mb-2\">Any site has data in it. This includes all the various resources such as customers, subscriptions, invoices, comments, and so on. The &quot;context&quot; of an API operation is the subset of site data it has access to. An API operation can only read or write data within its context. By default, an API operation has &quot;site context&quot;, which means it has access to the entire site&#x27;s data. However, when a business entity is <a href=\"/docs/api/business_entities\">specified</a> in an API operation, it has &quot;business entity context&quot;, which means that the operation only has access to the data linked to the business entity.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong></p><p class=\"mb-2\">Consider the <a href=\"/docs/api/customers/list-customers\">List customers API</a>. When you call the API without specifying a business entity, its context is that of the site and therefore returns customer resources for the entire site. However, when you specify a business entity, the context is only that of the business entity, and therefore the customer resources of only the selected business entity are returned.</p><p class=\"mb-2\">Let&#x27;s look at the <a href=\"/docs/api/hosted_pages/create-checkout-for-a-new-subscription\">Create checkout for a new subscription API</a>. Say you&#x27;re calling this API and providing the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer[id]</code> parameter. When no business entity is specified, the operation has <em class=\"italic\">site context</em> and therefore looks up the ID among all the customer resources in the site. However, when a business entity is provided, the operation has <em class=\"italic\">business entity context</em> and looks up the ID only among the customers linked to that business entity.</p></div><h4>Target resource</h4><p class=\"mb-2\">While creating an API resource other than a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>, you specify a target resource under which it should be created. For example:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">While <a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">creating an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> resource for a one-time charge</a>, you must specify either the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> or the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource to which it belongs. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource, in this case, is the target resource of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>.</li>\n<li class=\"text-base leading-relaxed\">While <a href=\"/docs/api/subscriptions/create-subscription-for-items\">creating a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code></a>, the target resource of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource is always a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource.</li>\n<li class=\"text-base leading-relaxed\">While <a href=\"/docs/api/quotes/create-a-quote-for-update-subscription-items\">creating a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code> resource of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_subscription</code></a>, the target resource is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource.</li>\n</ul></div></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique and immutable identifier for the business entity. It is always autogenerated.\n",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A human-friendly name for the business entity.\n",
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current status of the business entity.\n\\* active -\n\nThe business entity is active and can be used.\n\\* inactive -\n\nThe business entity is inactive and cannot be used.\n",
            "enum" : [ "active", "inactive" ],
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Indicates that the business entity has been deleted.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when this business entity was created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time period when the business entity was updated.\n",
            "example" : null
          }
        },
        "required" : [ "created_at", "deleted", "id", "name", "status" ],
        "example" : null
      },
      "BusinessEntityCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "business_entity" : {
                "$ref" : "#/components/schemas/BusinessEntity"
              }
            },
            "required" : [ "business_entity" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "BusinessEntityDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "business_entity" : {
                "$ref" : "#/components/schemas/BusinessEntity"
              }
            },
            "required" : [ "business_entity" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "BusinessEntityTransfer" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-mbe\"></span><p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_transfer</code>\nencapsulates the details of the movement of a resource (such as <code><a href=\"/docs/api/customers\">customer</a></code>\nand <code><a href=\"/docs/api/subscriptions\">subscription</a></code>\n) from one <code><a href=\"/docs/api/business_entities\">business_entity</a></code>\nto another.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Related Endpoints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/business_entities/transfer-resources-to-another-business-entity\">Transfer resource to another business entity</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/business_entities/list-the-business-entity-transfers\">List business entity transfers</a>\n</li>\n</ul></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Unique identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">business_entity_transfer</code>.\nChargebee automatically generates this.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "resource_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The type of the resource that was transferred.</p>\n* customer - <p class=\"mb-2\">Represents the transfer of a <code><a href=\"/docs/api/customers\">customer</a></code>\nresource.</p>\n* subscription - <p class=\"mb-2\">Represents the transfer of a <code><a href=\"/docs/api/subscriptions\">subscriptions</a></code>\nresource linked to a <code><a href=\"/docs/api/customers\">customer</a></code>\nresource.</p>",
            "enum" : [ "customer", "subscription" ],
            "example" : null
          },
          "resource_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the deprecated version of the resource. This is the resource linked to the source <code><a href=\"/docs/api/business_entities\">business_entity</a></code>\n.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "active_resource_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the active version of the resource. This is the resource linked to the destination <code><a href=\"/docs/api/business_entities\">business_entity</a></code>\n.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "destination_business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique identifier of the <code><a href=\"/docs/api/business_entities\">business_entity</a></code>\nto which the resource has been transferred.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "source_business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique identifier of the <code><a href=\"/docs/api/business_entities\">business_entity</a></code>\nfrom which the resource has been transferred.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "reason_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The reason for transferring the resource to another business entity.\n\\* correction -\n\nCorrection of a wrongly assigned business entity.\n",
            "enum" : [ "correction" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this business entity transfer record was created.\n",
            "example" : null
          }
        },
        "required" : [ "active_resource_id", "created_at", "destination_business_entity_id", "id", "reason_code", "resource_id", "resource_type", "source_business_entity_id" ],
        "example" : null
      },
      "BusinessEntityUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "business_entity" : {
                "$ref" : "#/components/schemas/BusinessEntity"
              }
            },
            "required" : [ "business_entity" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "BusinessProfile" : {
        "type" : "object",
        "example" : null
      },
      "BusinessRule" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "latest_version" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "active" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "approval_status" : {
            "type" : "string",
            "default" : "not_required",
            "deprecated" : false,
            "enum" : [ "pending", "approved", "rejected", "not_required" ],
            "example" : null
          },
          "released_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "created_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "tags" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "structured_expression" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "example" : null
          },
          "actions_on_success" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "actions_on_failure" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "active", "approval_status", "created_at", "created_by", "id", "name", "updated_at" ],
        "example" : null
      },
      "CancelOption" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "immediately", "end_of_term", "specific_date", "end_of_billing_term" ],
        "example" : null
      },
      "Card" : {
        "type" : "object",
        "description" : "#### Deprecated\n\nThe [Payment Sources API](/docs/api/payment_sources)\n, with its additional options and improvements, obsoletes the Cards APIs. [Learn more](/docs/api/getting-started)\n.\n\nThe following table lists the Payment Sources API operations alongside the equivalent Card API operations:  \n\n|                             API at Card resource                             |                                                                                                                                    Use instead                                                                                                                                     |\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Retrieve card for a customer](/docs/api/cards/retrieve-card-for-a-customer) | [Retrieve a payment source](/docs/api/payment_sources/retrieve-a-payment-source)                                                                                                                                                                                                   |\n| [Update card for a customer](/docs/api/cards/update-card-for-a-customer)     | * [Create using temporary token](/docs/api/payment_sources/create-using-gateway-temporary-token) * [Create using permanent token](/docs/api/payment_sources/create-using-permanent-token) * [Create a card payment source](/docs/api/payment_sources/create-a-card-payment-source) |\n| [Switch gateway](/docs/api/cards/switch-gateway)                             | [Switch gateway account](/docs/api/payment_sources/switch-gateway-account)                                                                                                                                                                                                         |\n| [Copy card](/docs/api/cards/copy-card)                                       | [Export payment source](/docs/api/payment_sources/export-payment-source)                                                                                                                                                                                                           |\n| [Delete card for a customer](/docs/api/cards/delete-card-for-a-customer)     | [Delete a payment source](/docs/api/payment_sources/delete-a-payment-source)                                                                                                                                                                                                       |\n\n",
        "properties" : {
          "payment_source_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the payment source\n",
            "maxLength" : 40,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current status of the card.\n\\* valid -\n\nA valid and active credit card\n\\* expiring -\n\nA card which is expiring in the current month.\n\\* expired -\n\nAn expired card\n",
            "enum" : [ "valid", "expiring", "expired" ],
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the gateway this payment source is stored with.\n\\* twikey -\n\nTwikey is a payment service provider that specializes in processing direct debit payments across the EU.\n\\* bluesnap -\n\nBlueSnap is a payment gateway.\n\\* jp_morgan -\n\nJ.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different [payment_source_type](/docs/api/payment_sources/payment_source-object#type).  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/jp-morgan-bacs&ref=feature) to enable the J.P. Morgan Mobility Payment Solutions gateway via payFURL for your test and live sites.\n\\* tco -\n\n2Checkout is a payment gateway.\n\\* deutsche_bank -\n\nDeutsche Bank is the leading German bank with strong European roots and a global network.  \nThis feature is a **Private Beta Release**.\n\\* bluepay -\n\nBluePay is a payment gateway.\n\\* paypal_express_checkout -\n\nPayPal Express Checkout is a payment gateway.\n\\* paypal_payflow_pro -\n\nPayPal Payflow Pro is a payment gateway.\n\\* razorpay -\n\nRazorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n\\* global_payments -\n\nGlobal Payments is a payment service provider.\n\\* dlocal -\n\nDlocal provides payment solutions for global commerce by accepting local payment methods.\n\\* not_applicable -\n\nIndicates that payment gateway is not applicable for this resource.\n\\* checkout_com -\n\nCheckout.com is a payment gateway.\n\\* adyen -\n\nAdyen is a payment gateway.\n\\* braintree -\n\nBraintree is a payment gateway.\n\\* nmi -\n\nNMI is a payment gateway.\n\\* worldpay -\n\nWorldPay is a payment gateway\n\\* paystack -\n\nPaystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/paystack&ref=feature) to enable Paystack for your test and live sites.\n\\* pay_com -\n\nPay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.\n\\* moneris_us -\n\nMoneris USA is a payment gateway.\n\\* pin -\n\nPin is a payment gateway\n\\* authorize_net -\n\nAuthorize.net is a payment gateway\n\\* stripe -\n\nStripe is a payment gateway.\n\\* moneris -\n\nMoneris is a payment gateway.\n\\* chargebee -\n\nChargebee test gateway.\n\\* cybersource -\n\nCyberSource is a payment gateway.\n\\* ecentric -\n\nEcentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n\\* first_data_global -\n\nFirst Data Global Gateway Virtual Terminal Account\n\\* exact -\n\nExact Payments is a payment gateway.\n\\* nuvei -\n\nNuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/nuvei&ref=feature) to enable Nuvei for your test and live sites.\n\\* eway -\n\neWAY Account is a payment gateway.\n\\* metrics_global -\n\nMetrics global is a leading payment service provider providing unified payment services in the US.\n\\* amazon_payments -\n\nAmazon Payments is a payment service provider.\n\\* windcave -\n\nWindcave provides an end to end payment processing solution in ANZ and other leading global markets.\n\\* quickbooks -\n\nIntuit QuickBooks Payments gateway\n\\* wepay -\n\nWePay is a payment gateway.\n\\* ezidebit -\n\nEzidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.  \nThis feature is a **Private Beta Release**.\n\\* wirecard -\n\nWireCard Account is a payment service provider.\n\\* chargebee_payments -\n\nChargebee Payments gateway\n\\* sage_pay -\n\nSage Pay is a payment gateway.\n\\* elavon -\n\nElavon Virtual Merchant is a payment solution.\n\\* paypal_pro -\n\nPayPal Pro Account is a payment gateway.\n\\* orbital -\n\nChase Paymentech(Orbital) is a payment gateway.\n\\* paypal -\n\nPayPal Commerce is a payment gateway.\n\\* beanstream -\n\nBambora(formerly known as Beanstream) is a payment gateway.\n\\* hdfc -\n\nHDFC Account is a payment gateway.\n\\* ingenico_direct -\n\nWorldline Online Payments is a payment gateway.\n\\* ogone -\n\nIngenico ePayments (formerly known as Ogone) is a payment gateway.\n\\* migs -\n\nMasterCard Internet Gateway Service payment gateway.\n\\* vantiv -\n\nVantiv is a payment gateway.\n\\* bank_of_america -\n\nBank of America Gateway\n\\* eway_rapid -\n\neWAY Rapid is a payment gateway.\n\\* gocardless -\n\nGoCardless is a payment service provider.\n\\* mollie -\n\nMollie is a payment gateway.\n\\* paymill -\n\nPAYMILL is a payment gateway.\n\\* balanced_payments -\n\nBalanced is a payment gateway\n\\* solidgate -\n\nSolidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release**.\n\\* ebanx -\n\nEBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.\n",
            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account to which this payment source is stored with.\n",
            "maxLength" : 50,
            "example" : null
          },
          "ref_tx_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reference transaction id which used for transactions\n",
            "maxLength" : 50,
            "example" : null
          },
          "first_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Cardholder's first name\n",
            "maxLength" : 50,
            "example" : null
          },
          "last_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Cardholder's last name\n",
            "maxLength" : 50,
            "example" : null
          },
          "iin" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The Issuer Identification Number, i.e. the first six digits of the card number\n",
            "maxLength" : 6,
            "minLength" : 6,
            "example" : null
          },
          "last4" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Last four digits of the card number\n",
            "maxLength" : 4,
            "minLength" : 4,
            "example" : null
          },
          "card_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Card type\n\\* cabal -\n\nA Cabal card.\n\\* hipercard -\n\nAn Hipercard.\n\\* dankort -\n\nA Dankort card.\n\\* bancontact -\n\nA Bancontact card.\n\\* american_express -\n\nAn American Express card.\n\\* maestro -\n\nA Maestro card.\n\\* mada -\n\nA Mada card.\n\\* nativa -\n\nA Nativa card.\n\\* cmr_falabella -\n\nA CMR Falabella card.\n\\* not_applicable -\n\nUsed for offline entries in transactions. Not applicable for cards\n\\* elo -\n\nA Elo card.\n\\* diners_club -\n\nA Diner's Club card.\n\\* discover -\n\nA Discover card.\n\\* other -\n\nCard belonging to types other than those listed above.\n\\* mastercard -\n\nA MasterCard.\n\\* jcb -\n\nA JCB card.\n\\* cartes_bancaires -\n\nA Cartes Bancaires card.\n\\* argencard -\n\nAn Argencard.\n\\* cencosud -\n\nA Cencosud card.\n\\* tarjeta_naranja -\n\nA Tarjeta Naranja card.\n\\* visa -\n\nA Visa card.\n\\* carnet -\n\nA Carnet card.\n\\* rupay -\n\nA Rupay card.\n",
            "enum" : [ "visa", "mastercard", "american_express", "discover", "jcb", "diners_club", "bancontact", "cmr_falabella", "tarjeta_naranja", "nativa", "cencosud", "cabal", "argencard", "elo", "hipercard", "carnet", "rupay", "maestro", "dankort", "cartes_bancaires", "mada", "other", "not_applicable" ],
            "example" : null
          },
          "funding_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Card Funding type\n\\* credit -\n\nA credit card.\n\\* prepaid -\n\nA prepaid card.\n\\* debit -\n\nA debit card.\n\\* not_applicable -\n\nUsed for ACH. Not applicable for cards\n\\* not_known -\n\nAn unknown card.\n",
            "enum" : [ "credit", "debit", "prepaid", "not_known", "not_applicable" ],
            "example" : null
          },
          "expiry_month" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Card expiry month.\n",
            "maximum" : 12,
            "minimum" : 1,
            "example" : null
          },
          "expiry_year" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Card expiry year.\n",
            "example" : null
          },
          "issuing_country" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "[two-letter(alpha2)](https://www.iso.org/iso-3166-country-codes.html)\nISO country code.\n",
            "maxLength" : 50,
            "example" : null
          },
          "billing_addr1" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Address line 1, as available in card billing address.\n",
            "maxLength" : 150,
            "example" : null
          },
          "billing_addr2" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Address line 2, as available in card billing address.\n",
            "maxLength" : 150,
            "example" : null
          },
          "billing_city" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "City, as available in card billing address.\n",
            "maxLength" : 50,
            "example" : null
          },
          "billing_state_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
            "maxLength" : 50,
            "example" : null
          },
          "billing_state" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The state/province name.\n",
            "maxLength" : 50,
            "example" : null
          },
          "billing_country" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
            "maxLength" : 50,
            "example" : null
          },
          "billing_zip" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Postal or Zip code, as available in card billing address.\n",
            "maxLength" : 20,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this card resource is created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this credit card resource was last updated.\n",
            "example" : null
          },
          "ip_address" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The IP address of the customer. Used primarily for referral integration and EU VAT validation.\n",
            "maxLength" : 50,
            "example" : null
          },
          "powered_by" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Card is powered by payment method.\n\\* card -\n\ncard\n\\* ideal -\n\nideal\n\\* payconiq -\n\npayconiq\n\\* sofort -\n\nsofort\n\\* bancontact -\n\nbancontact\n\\* giropay -\n\ngiropay\n\\* latam_local_card -\n\nlatam_local_card\n\\* not_applicable -\n\nnot_applicable\n",
            "enum" : [ "ideal", "sofort", "bancontact", "giropay", "card", "latam_local_card", "payconiq", "not_applicable" ],
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "masked_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Masked credit card number that is safe to show.\n",
            "maxLength" : 19,
            "example" : null
          }
        },
        "required" : [ "created_at", "customer_id", "expiry_month", "expiry_year", "funding_type", "gateway", "iin", "last4", "payment_source_id", "status" ],
        "example" : null
      },
      "CardAddedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CardDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CardExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CardExpiryReminderEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CardUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Category" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "introductory", "promotional", "developer_determined" ],
        "example" : null
      },
      "ChangeOption" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "immediately", "end_of_term", "specific_date" ],
        "example" : null
      },
      "Channel" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "web", "app_store", "play_store" ],
        "example" : null
      },
      "ChargeEntitlement" : {
        "type" : "object",
        "properties" : {
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "parent_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "line_item_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "quantity" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "feature_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          }
        },
        "example" : null
      },
      "ChargeModel" : {
        "type" : "string",
        "deprecated" : true,
        "enum" : [ "full_charge", "prorate" ],
        "example" : null
      },
      "ChargeOnEvent" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination", "on_demand" ],
        "example" : null
      },
      "ChargeOnOption" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "immediately", "on_event" ],
        "example" : null
      },
      "ChargebeeResponseSchemaType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "plans_addons", "items", "compat" ],
        "example" : null
      },
      "ChargesHandling" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "invoice_immediately", "add_to_unbilled_charges" ],
        "example" : null
      },
      "Comment" : {
        "type" : "object",
        "description" : "Comments are additional information that you can add to your resources. Comments can be added to provide context for any operation that was performed.\n\nWhen you make an API call on any resource, for example, Subscriptions -\\> Change term end, you can add more context to that operation by calling the comments API as a follow up call.\n\nBesides the user generated comments, Chargebee also generates \"System\" comments when a change for a resource happens at the backend. These comments are all read-only.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier for the comment.\n",
            "maxLength" : 40,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of the entity this comment generated for\n\\* item -\n\nEntity that represents item\n\\* invoice -\n\nInvoice description\n\\* product -\n\nEntity that represents product\n\\* plan -\n\nEntity that represents a subscription plan\n\\* item_family -\n\nEntity that represents item family\n\\* transaction -\n\nEntity that represents a transaction.\n\\* quote -\n\nEntity that represents a quote\n\\* order -\n\nEntity that represents an order\n\\* item_price -\n\nEntity that represents item price\n\\* customer -\n\nEntity that represents a customer\n\\* variant -\n\nEntity that represents product variants\n\\* business_entity -\n\nEntity that represents item of type business entity\n\\* coupon -\n\nEntity that represents a discount coupon\n\\* subscription -\n\nEntity that represents a subscription of a customer\n\\* addon -\n\nEntity that represents an addon\n\\* credit_note -\n\nCredit note description\n",
            "enum" : [ "customer", "subscription", "invoice", "quote", "credit_note", "transaction", "plan", "addon", "coupon", "order", "business_entity", "item_family", "item", "item_price", "price_variant" ],
            "example" : null
          },
          "added_by" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The user who created the comment. If created via API, this contains the name given for the API key used.\n",
            "maxLength" : 100,
            "example" : null
          },
          "notes" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Actual notes for the comment.\n",
            "maxLength" : 1000,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which this comment was created\n",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "default" : "user",
            "deprecated" : false,
            "description" : "Type of comment this is.\n\\* system -\n\nComment generated by Chargebee when any backend changes happen for an entity\n\\* user -\n\nComment generated by user either via API or Admin console.\n",
            "enum" : [ "user", "system" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier of the entity.\n",
            "maxLength" : 100,
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [business entity](/docs/api/business_entities)\nassociated with this comment.\n",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "created_at", "entity_id", "entity_type", "id", "notes", "type" ],
        "example" : null
      },
      "Configuration" : {
        "type" : "object",
        "description" : "This resource returns your domain and product catalog version details - [Product Catalog 1.0](https://www.chargebee.com/docs/1.0/product-catalog.html)\n(v1) and [Product Catalog 2.0](https://www.chargebee.com/docs/2.0/product-catalog.html)\n(v2).\n",
        "properties" : {
          "domain" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The Chargebee <a href=\"https://www.chargebee.com/docs/2.0/sites-intro.html\">site</a>\nfor which the information has been requested. It is the same as the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{site}</code>\nprovided as a path parameter.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "product_catalog_version" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The Product Catalog version of the site\n\\* v2 -\n\nIndicates Product Catalog 2.0\n\\* v1 -\n\nIndicates Product Catalog 1.0\n",
            "enum" : [ "v1", "v2" ],
            "example" : null
          },
          "chargebee_response_schema_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the API response format based on the product catalog version of the site.\n\\* compat -\n\nThe response supports both Product Catalog 1.0 and 2.0 formats. It is applicable only to sites that have been automatically upgraded to Product Catalog 2.0.\n\\* items -\n\nThe response format follows [product catalog 2.0](https://www.chargebee.com/docs/billing/2.0/product-catalog/product-catalog)\n, using [items](/docs/api/items)\n.\n\\* plans_addons -\n\nThe response format follows [product catalog 1.0](https://www.chargebee.com/docs/billing/1.0/product-catalog/product-catalog)\n, using [plans](/docs/api/v2/pcv-1/plans)\nand [addons](/docs/api/v2/pcv-1/addons)\n.\n",
            "enum" : [ "plans_addons", "items", "compat" ],
            "example" : null
          }
        },
        "example" : null
      },
      "Contact" : {
        "type" : "object",
        "description" : "Contacts are the list of persons/organizations to whom billing and accounting emails will be sent.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique reference ID provided for the contact.\n",
            "maxLength" : 150,
            "example" : null
          },
          "first_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "First name of the contact.\n",
            "maxLength" : 150,
            "example" : null
          },
          "last_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Last name of the contact.\n",
            "maxLength" : 150,
            "example" : null
          },
          "email" : {
            "type" : "string",
            "format" : "email",
            "deprecated" : false,
            "description" : "Email of the contact.\n",
            "maxLength" : 70,
            "example" : null
          },
          "phone" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Phone number of the contact.\n",
            "maxLength" : 50,
            "example" : null
          },
          "label" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Label/Tag provided for contact.\n",
            "maxLength" : 50,
            "example" : null
          },
          "enabled" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Contact enabled / disabled\n",
            "example" : null
          },
          "send_account_email" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Whether Account Emails option is enabled for the contact.\n",
            "example" : null
          },
          "send_billing_email" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Whether Billing Emails option is enabled for the contact.\n",
            "example" : null
          }
        },
        "required" : [ "email", "enabled", "id", "send_account_email", "send_billing_email" ],
        "example" : null
      },
      "ContractTerm" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Subscriptions can run indefinitely or they may run for a fixed number of billing cycles. Subscription can have &quot;contract terms&quot;, which define a lock-in period on the subscription for a certain number of billing cycles. This prevents the subscription from being canceled by the customer when it is within the contract term.</p><p class=\"mb-2\">The <strong class=\"font-semibold\">contract term</strong> resource described below defines the properties of this lock-in period. This includes the <a href=\"/docs/api/contract_terms/contract_term-object#remaining_billing_cycles\">number of billing cycles</a>, the <a href=\"/docs/api/contract_terms/contract_term-object#total_contract_value\">total contract value</a>, the <a href=\"/docs/api/contract_terms/contract_term-object#action_at_term_end\">action to be taken</a> at the end of the contract term, and so on. To allow for exceptions, you also have the option of terminating an <a href=\"/docs/api/contract_terms/contract_term-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code></a> contract term and charging a <a href=\"/docs/api/contract_terms\">termination fee</a>.</p><p class=\"mb-2\">A contract term starts in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> state and ends in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">completed</code> state. If the contract was canceled due to non-payment or other reasons, it can end in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">canceled</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terminated</code> state. A given contract term is always associated with one, and only one subscription. A subscription, however, can be associated with only one <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> contract term. Over time, a subscription can be associated with several non-<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> contract terms. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> contract term for a subscription is available as an <a href=\"/docs/api/subscriptions/subscription-object#contract_term\">object</a> within the subscription.</p><p class=\"mb-2\">To enable and configure contract terms, follow these steps in the Chargebee UI:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Click <strong class=\"font-semibold\">Settings</strong> on the left navigation.</li>\n<li class=\"text-base leading-relaxed\">Click <strong class=\"font-semibold\">Configure Chargebee</strong>.</li>\n<li class=\"text-base leading-relaxed\">Under <strong class=\"font-semibold\">Billing</strong>, click <strong class=\"font-semibold\">Contract Terms</strong>.</li>\n<li class=\"text-base leading-relaxed\">Enable and configure the feature as needed.</li>\n</ol><p class=\"mb-2\">Once contract terms have been configured, the following actions can be performed using the API:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Define a contract term</strong> for a subscription and <strong class=\"font-semibold\">set renewal options</strong> for the contract term. The following endpoints support this:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/subscriptions/create-subscription-for-items\">Create a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/subscriptions/update-subscription-for-items\">Update a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/subscriptions/reactivate-a-subscription\">Reactivate a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/ramps/create-a-ramp\">Create a subscription ramp</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/ramps/update-a-subscription-ramp\">Update a subscription ramp</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Retrieving</strong> a historical record of all contract terms for a subscription can be done via the following endpoint:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/subscriptions/list-contract-terms-for-a-subscription\">List contract terms for a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Canceling a contract term</strong> can be done via the following endpoints:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/subscriptions/update-subscription-for-items\">Update a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/subscriptions/cancel-subscription-for-items\">Cancel a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/ramps/update-a-subscription-ramp\">Update a subscription ramp</a>\n</li>\n</ul><h4>Including a termination fee</h4><p class=\"mb-2\">When a contract is canceled mid-term, you can set a termination fee to be levied. Here&#x27;s how:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/item_prices/create-an-item-price\">Create</a> an item price for an item of <a href=\"/docs/api/items/item-object#type\">type</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code> with <a href=\"/docs/api/item_prices/create-an-item-price#price\">price</a> set to the termination fee.</li>\n<li class=\"text-base leading-relaxed\">Do one of the following:</li>\n</ol><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/attached_items/create-an-attached-item\">Attach the charge-item to a plan</a>, setting the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code> parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_termination</code>. OR</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/subscriptions/create-subscription-for-items\">Include the charge-item price on a subscription</a>, setting the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[charge_on_event][i]</code> parameter to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_termination</code>.</li>\n</ul><p class=\"mb-2\">Once the above steps are done, the termination fee will be charged automatically if you <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminate the contract in the middle of its term</a>.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Id that uniquely identifies the contract term in the site.\n",
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current status of contract\n\\* active -\n\nAn actively running contract term.\n\\* cancelled -\n\nThe contract term was ended because: - a change in the subscription caused a [subscription term reset](/docs/api/v2/pcv-1/subscriptions/update-a-subscription#force_term_reset).\n\n* the subscription was cancelled due to non-payment.\n\n\\* terminated -\n\nThe contract term was terminated ahead of completion.\n\\* completed -\n\nThe contract term has run its full duration.\n",
            "enum" : [ "active", "completed", "cancelled", "terminated" ],
            "example" : null
          },
          "contract_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The start date of the contract term\n",
            "example" : null
          },
          "contract_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The end date of the contract term\n",
            "example" : null
          },
          "billing_cycle" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "The number of billing cycles of the subscription that the contract term is for.\n",
            "minimum" : 0,
            "example" : null
          },
          "action_at_term_end" : {
            "type" : "string",
            "default" : "renew",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
            "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
            "example" : null
          },
          "total_contract_value" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The sum of the <a href=\"/docs/api/invoices/invoice-object#total\">totals</a>\nof all the invoices raised as part of the contract term. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms, this is a predicted value. The value depends on the <a href=\"/docs/api/contract_terms\">type of currency</a>.\nIf the subscription was <a href=\"/docs/api/contract_terms\">imported</a>\nwith the contract term, then this value includes the value passed for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised</code>\n.</p>",
            "minimum" : 0,
            "example" : null
          },
          "total_contract_value_before_tax" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">It refers to the total amount of revenue that is expected to be generated from a specific contract term, calculated as the sum of all invoices raised during the term, regardless of payment status. It is based on past performance and the specified currency in the contract. If the subscription was imported, the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised_before_tax</code>\nis included in the calculation of the total contract value before tax. It&#x27;s important to note that this value excludes any applicable taxes.</p>",
            "minimum" : 0,
            "example" : null
          },
          "cancellation_cutoff_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date when the contract term was created.\n",
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [Id](/docs/api/subscriptions/subscription-object#id)\nof the subscription that this contract term is for.\n",
            "maxLength" : 50,
            "example" : null
          },
          "remaining_billing_cycles" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The number of subscription billing cycles remaining after the current one for the contract term. This attribute is only returned for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms.</p>",
            "minimum" : 0,
            "example" : null
          }
        },
        "required" : [ "action_at_term_end", "billing_cycle", "contract_end", "contract_start", "created_at", "id", "status", "subscription_id", "total_contract_value", "total_contract_value_before_tax" ],
        "example" : null
      },
      "ContractTermCancelOption" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "terminate_immediately", "end_of_contract_term", "specific_date", "end_of_subscription_billing_term" ],
        "example" : null
      },
      "ContractTermCancelledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "contract_term" : {
                "$ref" : "#/components/schemas/ContractTerm"
              }
            },
            "required" : [ "contract_term" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ContractTermCompletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "contract_term" : {
                "$ref" : "#/components/schemas/ContractTerm"
              }
            },
            "required" : [ "contract_term" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ContractTermCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "contract_term" : {
                "$ref" : "#/components/schemas/ContractTerm"
              }
            },
            "required" : [ "contract_term" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ContractTermRenewedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "contract_term" : {
                "$ref" : "#/components/schemas/ContractTerm"
              }
            },
            "required" : [ "contract_term" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ContractTermTerminatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "contract_term" : {
                "$ref" : "#/components/schemas/ContractTerm"
              }
            },
            "required" : [ "contract_term" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Coupon" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "<div class=\"api-description\"><h2>Overview</h2><p class=\"mb-2\">Coupons are deductions applied to invoices or invoice line items. They&#x27;re designed to be consumed by your customers directly. A coupon deduction can either be for a fixed amount or for a percentage of the amount of the invoice or line item.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">If you wish to provide discounts to your customers via API or the Chargebee app, see <a href=\"/docs/api/discounts\">Discounts API</a></p></div><h2>Order of application of coupons and discounts</h2><p class=\"mb-2\">When both <a href=\"/docs/api/coupons\">coupons</a> and <a href=\"/docs/api/discounts\">discounts</a> are applied simultaneously to a <a href=\"/docs/api/subscriptions\">subscription</a> or <a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">one-time invoice</a>, they&#x27;re applied in the following order:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><tbody><tr><td class=\"ak-renderer-table-number-column\"></td><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Summary</strong></th><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Description</strong></th></tr><tr><td class=\"ak-renderer-table-number-column\">1</td><td colSpan=\"1\" rowspan=\"1\">Line-level, fixed amount coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">2</td><td colSpan=\"1\" rowspan=\"1\">Line-level, fixed amount discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">3</td><td colSpan=\"1\" rowspan=\"1\">Line-level, percentage coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">4</td><td colSpan=\"1\" rowspan=\"1\">Line-level, percentage discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">5</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, fixed amount coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">6</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, fixed amount discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">7</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, percentage coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">8</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, percentage discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr></tbody></table></div><p class=\"mb-2\">For example, consider the following scenario:</p><p class=\"mb-2\">A subscription is created with:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">a plan price of $200 per month</li>\n<li class=\"text-base leading-relaxed\">an addon price of $20 per month</li>\n<li class=\"text-base leading-relaxed\">a flat $5 invoice discount</li>\n<li class=\"text-base leading-relaxed\">a 1% off coupon on the addon</li>\n<li class=\"text-base leading-relaxed\">a flat $2 coupon on the invoice</li>\n</ul><p class=\"mb-2\">The above coupons and discount are applied in the following order:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><tbody><tr><td class=\"ak-renderer-table-number-column\"></td><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Discount or coupon applied</strong></th><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Subtotal at each step</strong></th></tr><tr><td class=\"ak-renderer-table-number-column\">1</td><td colSpan=\"1\" rowspan=\"1\">Initial subtotal (plan price + addon price)</td><td colSpan=\"1\" rowspan=\"1\">$200 + $20 = $220</td></tr><tr><td class=\"ak-renderer-table-number-column\">2</td><td colSpan=\"1\" rowspan=\"1\">1% off coupon on the addon</td><td colSpan=\"1\" rowspan=\"1\">$200 + $(20 - 0.02) = $200 + $19.98 = $219.98</td></tr><tr><td class=\"ak-renderer-table-number-column\">3</td><td colSpan=\"1\" rowspan=\"1\">Flat $2 coupon on the invoice</td><td colSpan=\"1\" rowspan=\"1\">$219.98 - $2 = $217.98</td></tr><tr><td class=\"ak-renderer-table-number-column\">4</td><td colSpan=\"1\" rowspan=\"1\">Flat $5 invoice discount</td><td colSpan=\"1\" rowspan=\"1\">$217.98 - $5 = <strong class=\"font-semibold\">$212.98</strong></td></tr></tbody></table></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The display name used in web interface for identifying the coupon.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the name of the coupon set contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the name of the coupon set in the path parameter before making an API call.</p></div>",
            "maxLength" : 50,
            "example" : null
          },
          "invoice_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Display name used in invoice. If it is not configured then name is used in invoice.\n",
            "maxLength" : 100,
            "example" : null
          },
          "discount_type" : {
            "type" : "string",
            "default" : "percentage",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the type of discount to be applied.</p>\n* percentage - <p class=\"mb-2\">A percentage of the original price is deducted as a discount. The discount percentage is specified in <code><a href=\"/docs/api/coupons/coupon-object#discount_percentage\">discount_percentage</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#percentage-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code>\ncoupons.</p></div>\n* fixed_amount - <p class=\"mb-2\">A fixed amount is deducted as a discount. The discount amount is specified in <code><a href=\"/docs/api/coupons/coupon-object#discount_amount\">discount_amount</a></code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#fixed-amount-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\ncoupons.</p></div>\n* offer_quantity - <p class=\"mb-2\">A specified number of units of the item price are offered for free. The number of free units is specified in <code><a href=\"/docs/api/coupons/coupon-object#discount_quantity\">discount_quantity</a></code>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\noption is valid only when <code><a href=\"/docs/api/coupons/coupon-object#apply_on\">apply_on</a></code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code>\nand the <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/2.0/coupons.html#offer-quantity-coupons\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\ncoupons.</p></div>",
            "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
            "example" : null
          },
          "discount_percentage" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "description" : "The percentage of the original amount that should be deducted from it.\n",
            "maximum" : 100,
            "minimum" : 0.01,
            "example" : null
          },
          "discount_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The value of the deduction. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
            "minimum" : 0,
            "example" : null
          },
          "discount_quantity" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the number of free units provided for the <a href=\"/docs/api/item_prices\">item price</a>\n, without affecting the total quantity sold. This parameter is applicable only when the <code><a href=\"/docs/api/coupons/coupon-object#discount_type\">discount_type</a></code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\n.</p>",
            "minimum" : 1,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) of the coupon. Applicable for *fixed_amount*\ncoupons alone.\n",
            "maxLength" : 3,
            "example" : null
          },
          "duration_type" : {
            "type" : "string",
            "default" : "forever",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the time duration for which this coupon is attached to the subscription.</p>\n* forever - <p class=\"mb-2\">The coupon is attached to the subscription and applied on the invoices until explicitly removed.</p>\n* one_time - <p class=\"mb-2\">The coupon stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>",
            "enum" : [ "one_time", "forever", "limited_period" ],
            "example" : null
          },
          "valid_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date from which the coupon can be applied to subscriptions.\n",
            "example" : null
          },
          "valid_till" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Date upto which the coupon can be applied to new subscriptions.\n",
            "example" : null
          },
          "max_redemptions" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Maximum number of times this coupon can be redeemed.  \n**Note:**\n\nIf not specified, the coupon can be redeemed an indefinite number of times.\n",
            "minimum" : 1,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "active",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Status of the coupon.</p>\n* future - <p class=\"mb-2\">The coupon is scheduled to start at a future date and cannot be applied to a subscription. From the valid_from date, the status changes to active.</p>\n* expired - <p class=\"mb-2\">Cannot be applied to a subscription. A coupon may expire due to  exceeding <code><a href=\"/docs/api/coupons/coupon-object#max_redemptions\">max_redemptions</a></code>\nor <code><a href=\"/docs/api/coupons/coupon-object#valid_till\">valid_till</a></code>\ndate is past. Existing associations remain unaffected.</p>\n* archived - <p class=\"mb-2\">Cannot be applied to a subscription. Existing associations remain unaffected.</p>\n* active - <p class=\"mb-2\">Can be applied to a subscription.</p>\n* deleted - <p class=\"mb-2\">Indicates the coupon has been deleted.</p>",
            "enum" : [ "active", "expired", "archived", "deleted", "future" ],
            "example" : null
          },
          "apply_on" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The amount on the invoice to which the coupon is applied.</p>\n* invoice_amount - <p class=\"mb-2\">The coupon is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* each_specified_item - <p class=\"mb-2\">Applies the coupon to specified items (plans, addons, or charges), with the discount applied to each matching <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>.</p>\n<p class=\"mb-2\">Requires applicability to be configured using <a href=\"/docs/api/coupons/coupon-object#item_constraints\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_constraints</code></a>—for example <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">all</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">criteria</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_ids</code>.</p>\n<p class=\"mb-2\">When you attach this coupon to a subscription, at least one of that subscription&#x27;s plans, addons, or charges must match those rules. If none do, the request fails.</p>",
            "enum" : [ "invoice_amount", "each_specified_item" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this coupon is created.\n",
            "example" : null
          },
          "archived_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this coupon was archived.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Timestamp indicating when this coupon was last updated.\nNote that this does not change when the <code><a href=\"/docs/api/coupons/coupon-object#redemptions\">redemptions</a></code>\nattribute is changed. This attribute will be present only if the resource has been updated after 2016-11-09.</p>",
            "example" : null
          },
          "period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The duration of time for which the coupon is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">duration_type</a></code>\nis <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">limited_period</a></code>\n.</p>",
            "minimum" : 1,
            "example" : null
          },
          "period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unit of time for period. Applicable only when <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">duration_type</a></code>\nis <code><a href=\"/docs/api/coupons/coupon-object#duration_type\">limited_period</a></code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "redemptions" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "The number of times this coupon has been redeemed.\n",
            "minimum" : 0,
            "example" : null
          },
          "invoice_notes" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
            "maxLength" : 2000,
            "example" : null
          },
          "meta_data" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the coupon. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the coupon has been deleted or not.\n",
            "example" : null
          },
          "item_constraints" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of item constraints.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Item type for which this criteria is applicable for.\n\\* charge -\n\nCharge\n\\* plan -\n\nPlan\n\\* addon -\n\nAddon\n",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "constraint" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Constraint applicable for the item\n\\* specific -\n\nCoupon applicable to specific items.\n\\* all -\n\nCoupon applicable to all items.\n\\* criteria -\n\nCoupon applicable based on criteria.\n\\* none -\n\nCoupon not applicable to any items.\n",
                  "enum" : [ "none", "all", "specific", "criteria" ],
                  "example" : null
                },
                "item_price_ids" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "List of item price ids for which this coupon is applicable.\n",
                  "items" : {
                    "example" : null
                  },
                  "example" : null
                }
              },
              "required" : [ "constraint", "item_type" ],
              "example" : null
            },
            "example" : null
          },
          "item_constraint_criteria" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of item constraint criteria.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Item type for which this criteria is applicable for.\n\\* charge -\n\nCharge is a type of item\n\\* plan -\n\nPlan is a type of item\n\\* addon -\n\nAddon is a type of item\n",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "currencies" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "List of currencies ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) for which this coupon is applicable.\n",
                  "items" : {
                    "example" : null
                  },
                  "example" : null
                },
                "item_family_ids" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "List of families for which this coupon is applicable.\n",
                  "items" : {
                    "example" : null
                  },
                  "example" : null
                },
                "item_price_periods" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "List of frequencies for which this coupon is applicable. Allowed frequencies are \\[day, week, month, year\\].\n",
                  "items" : {
                    "example" : null
                  },
                  "example" : null
                }
              },
              "required" : [ "item_type" ],
              "example" : null
            },
            "example" : null
          },
          "coupon_constraints" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of constraints applicable on the redemption of this coupon.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The resource type for the constraint. This, along with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\n, helps define the specific rule applied.</p>\n* customer - <p class=\"mb-2\">The constraint is based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords.</p>",
                  "enum" : [ "customer" ],
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Type of coupon constraints</p>\n* unique_by - <p class=\"mb-2\">Indicates - when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">that the coupon can be redeemed only once for every unique value of a specified <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nattribute. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nattribute is specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>\n, then the coupon can be redeemed only once for every unique value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer.email</code>.\nIn other words, when there are multiple <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords with the same value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>\n, once the coupon has been redeemed for one of those customer records, no further redemptions of the coupon are allowed for any of those <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecords.</li>\n</ul>\n* new_customer - <p class=\"mb-2\">The coupon is applicable only for new customer(s). A customer will be considered as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">new_customer</code>\nwhen they do not have any prior non-void, non-zero-dollar invoices.</p>\n* existing_customer - <p class=\"mb-2\">The coupon is applicable only for existing customer(s). A customer will be considered as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">existing_customer</code>\nwhen they have at least one non-void, non-zero-dollar invoice.</p>\n* max_redemptions - <p class=\"mb-2\">The coupon can be redeemed up to a set number of times for a specific resource type. The maximum redemptions are specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\n, and the resource type is specified using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code>\nthen the coupon can only be redeemed up to 10 times for any particular <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code>\nrecord.</p>",
                  "enum" : [ "max_redemptions", "unique_by", "existing_customer", "new_customer" ],
                  "example" : null
                },
                "value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The value of the coupon constraint. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">constraints[type]</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unique_by</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">max_redemptions</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be any integer in the range <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon.max_redemptions</code>, inclusive.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">new_customer</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">existing_customer</code> then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">based_on_invoice</code>.</p>\n</li>\n</ul>",
                  "maxLength" : 65000,
                  "example" : null
                }
              },
              "required" : [ "entity_type", "type" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "apply_on", "created_at", "deleted", "discount_type", "duration_type", "id", "name" ],
        "example" : null
      },
      "CouponCode" : {
        "type" : "object",
        "description" : "Coupon codes are used along with existing coupons in Chargebee. You can create a coupon set using a bunch of coupon codes and this coupon set will be associated with an existing coupon. A coupon code can only be applied to a single subscription and cannot be re-used.\n\nUsing coupon codes you can distribute several unique codes for a single main coupon, when you are running promotions.\n",
        "properties" : {
          "code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique coupon code that can be redeemed only once.\n",
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "not_redeemed",
            "deprecated" : false,
            "description" : "Status of the coupon code.\n\\* not_redeemed -\n\nCan be applied to a subscription.\n\\* redeemed -\n\nCannot be applied to a subscription as the coupon code has been already used.\n\\* archived -\n\nCannot be applied to a subscription as it has been made inactive.\n",
            "enum" : [ "not_redeemed", "redeemed", "archived" ],
            "example" : null
          },
          "coupon_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Id of the main coupon resource.\n",
            "maxLength" : 100,
            "example" : null
          },
          "coupon_set_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies a coupon_set\n",
            "maxLength" : 50,
            "example" : null
          },
          "coupon_set_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Coupon set name to which this coupon code would be grouped under. If the coupon set with the passed name is not present, a new coupon set will be created.\n",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "code", "coupon_id", "coupon_set_id", "coupon_set_name", "status" ],
        "example" : null
      },
      "CouponCodesAddedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              },
              "coupon_set" : {
                "$ref" : "#/components/schemas/CouponSet"
              }
            },
            "required" : [ "coupon", "coupon_set" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponCodesDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              },
              "coupon_set" : {
                "$ref" : "#/components/schemas/CouponSet"
              },
              "coupon_code" : {
                "$ref" : "#/components/schemas/CouponCode"
              }
            },
            "required" : [ "coupon", "coupon_code", "coupon_set" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponCodesUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              },
              "coupon_set" : {
                "$ref" : "#/components/schemas/CouponSet"
              }
            },
            "required" : [ "coupon", "coupon_set" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              }
            },
            "required" : [ "coupon" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              }
            },
            "required" : [ "coupon" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponSet" : {
        "type" : "object",
        "description" : "A coupon set contains a bunch of coupon codes that can be redeemed by your customers when they are checking out. It belongs to an existing coupon and will usually be combined with other coupons that share similar promotion or discount offers. Using this resource, you can create, update, retrieve, delete coupon sets and add coupon codes to a coupon set.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies a coupon_set\n",
            "maxLength" : 50,
            "example" : null
          },
          "coupon_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Coupon id linked to coupon set\n",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the coupon set\n",
            "maxLength" : 50,
            "example" : null
          },
          "total_count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "No of coupon codes present in coupon set\n",
            "example" : null
          },
          "redeemed_count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "No of redeemed codes\n",
            "example" : null
          },
          "archived_count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "No of archived codes\n",
            "example" : null
          },
          "meta_data" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the coupon set. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
            "example" : null
          }
        },
        "required" : [ "coupon_id", "id", "name" ],
        "example" : null
      },
      "CouponSetCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              },
              "coupon_set" : {
                "$ref" : "#/components/schemas/CouponSet"
              }
            },
            "required" : [ "coupon", "coupon_set" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponSetDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              },
              "coupon_set" : {
                "$ref" : "#/components/schemas/CouponSet"
              }
            },
            "required" : [ "coupon", "coupon_set" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponSetUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              },
              "coupon_set" : {
                "$ref" : "#/components/schemas/CouponSet"
              }
            },
            "required" : [ "coupon", "coupon_set" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CouponUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "coupon" : {
                "$ref" : "#/components/schemas/Coupon"
              }
            },
            "required" : [ "coupon" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CpqQuoteSignature" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "draft",
            "deprecated" : false,
            "enum" : [ "draft", "active", "signed", "expired", "cancelled", "declined" ],
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 255,
            "example" : null
          },
          "document_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 255,
            "example" : null
          },
          "customer_acceptance_method" : {
            "type" : "string",
            "default" : "esign_and_pay",
            "deprecated" : false,
            "enum" : [ "esign_and_pay", "esign", "pay" ],
            "example" : null
          },
          "quote_type" : {
            "type" : "string",
            "default" : "consolidated",
            "deprecated" : false,
            "enum" : [ "consolidated", "detailed" ],
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "timezone" : {
            "type" : "string",
            "default" : "UTC",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "provider_request_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 255,
            "example" : null
          },
          "provider_document_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 255,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "customer_acceptance_method", "id", "modified_at", "quote_type", "status" ],
        "example" : null
      },
      "CreditNote" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">A <a href=\"https://www.chargebee.com/docs/credit-notes.html\" target=\"_blank\">Credit Note</a> is a document that specifies the money owed by a business to its customer. The seller usually issues a Credit Note for the same or lower amount than the invoice, and then repays the money to the customer or set it off against other &#x27;due&#x27; invoices.</p><h3>Credit Note Types</h3><p class=\"mb-2\">Credit notes in Chargebee are categorized into three types:\n1. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>: Adjustment credit notes are used to adjust the amount of an existing invoice in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code> <a href=\"/docs/api/invoices/invoice-object#status\">status</a>. Use this type of credit note to reduce the invoice amount, typically as a discount to the customer.\nAdjustment credit notes are automatically created in the following cases:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When an invoice is written off.</li>\n<li class=\"text-base leading-relaxed\">When a subscription is modified with proration enabled, and the invoice for the current term is in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code> <a href=\"/docs/api/invoices/invoice-object#status\">status</a>.\n2. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>: Refundable credit notes allow you to return a certain amount to the customer. These credits can be:</li>\n<li class=\"text-base leading-relaxed\">Retained for automatic application on future invoices.</li>\n<li class=\"text-base leading-relaxed\">Applied to existing unpaid invoices.</li>\n<li class=\"text-base leading-relaxed\">Refunded to the customer.\nRefundable credit notes are automatically created in the following cases:</li>\n<li class=\"text-base leading-relaxed\">When an invoice is refunded.</li>\n<li class=\"text-base leading-relaxed\">When a subscription is changed or canceled with proration enabled, the invoice for the current term is in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> <a href=\"/docs/api/invoices/invoice-object#status\">status</a>. Refundable credits are applied to future invoices or can be refunded to the original payment method.\n3. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">store</code>: Store credit notes are created for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">partially_paid</code> invoice <a href=\"/docs/api/invoices/invoice-object#status\">status</a> during subscription changes, such as upgrades, downgrades, or cancellations.\nKey characteristics of store credits:</li>\n<li class=\"text-base leading-relaxed\">No tax component is included at the time of creation.</li>\n<li class=\"text-base leading-relaxed\">A credit note document is generated, similar to refundable credits.</li>\n<li class=\"text-base leading-relaxed\">Store credits are applied before tax calculations on future invoices.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf you have enabled <em class=\"italic\">consolidated invoicing</em>\n, to know the subscriptions attached with a credit note you have to refer <a href=\"/docs/api/credit_notes/credit_note-object#line_items\">line_item&#x27;s</a>\n<em class=\"italic\">subscription_id</em>\n. The credit note&#x27;s <em class=\"italic\">subscription_id</em>\nshould <strong class=\"font-semibold\">not</strong>\nbe used (which will be <em class=\"italic\">null</em>\nif the credit note has lines from multiple subscriptions).</p></div><div id=\"ref-invoice-impact\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#ref-invoice-impact-content\" aria-expanded=\"false\" aria-controls=\"ref-invoice-impact-content\"><p class=\"mb-2\">Impact on reference invoice</p><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"ref-invoice-impact-content\"><p class=\"mb-2\">The following updates are made to the reference invoice when a credit note is created/imported:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The adjustment credit note details are added to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">adjustment_credit_notes[]</code> attribute of the invoice.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> is reduced by the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is updated to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> if the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> equals the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code>.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> does not change if the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code> is greater than credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total</code>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">If the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refundable</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The refundable credit note details are added to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes[]</code> attribute of the invoice.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> does not change.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">If the credit note <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">store</code>:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The store credit note details are added to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes[]</code> attribute of the invoice.</li>\n<li class=\"text-base leading-relaxed\">The invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> does not change.</li>\n</ul>\n</li>\n</ul></div></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Credit-note id.\n",
            "maxLength" : 50,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the customer this credit note belongs to.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the subscription this Credit Note belongs to.\n**Note:**\nIf *consolidated invoicing*\nis enabled, to know the subscriptions attached with this Credit Note you have to refer [line_item's](/docs/api/credit_notes/credit_note-object#line_items)\n*subscription_id* .\nThis attribute should **not**\nbe used (which will be *null*\nif this credit note has lines from multiple subscriptions).\n",
            "maxLength" : 50,
            "example" : null
          },
          "reference_invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the invoice against which this Credit Note is issued\n",
            "maxLength" : 50,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The credit note type. [Learn more](/docs/api/credit_notes/credit-note-object)\nabout credit note types.\n\\* store -\n\nStore Credit Note\n\\* refundable -\n\nRefundable Credit Note\n\\* adjustment -\n\nAdjustment Credit Note\n",
            "enum" : [ "adjustment", "refundable", "store" ],
            "example" : null
          },
          "reason_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The reason for issuing this credit note. The following reason codes are supported now\\[Deprecated; use the [create_reason_code](/docs/api/credit_notes/credit_note-object#create_reason_code)\nparameter instead\\]\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* order_change -\n\nOrder Change\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* fraudulent -\n\nFRAUDULENT\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* waiver -\n\nWaiver\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* order_cancellation -\n\nOrder Cancellation\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n",
            "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The credit note status.\n\\* voided -\n\nWhen the Credit Note has been cancelled.\n\\* refund_due -\n\nWhen the credits are yet to be used, or have been partially used.\n\\* refunded -\n\nWhen the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded).\n\\* adjusted -\n\nWhen the Credit Note has been adjusted against an invoice.\n",
            "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
            "example" : null
          },
          "vat_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "VAT number of the customer for whom this credit note is raised.\n",
            "maxLength" : 20,
            "example" : null
          },
          "date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date the credit note is issued.\n",
            "example" : null
          },
          "price_type" : {
            "type" : "string",
            "default" : "tax_exclusive",
            "deprecated" : false,
            "description" : "The price type of the credit note.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n",
            "enum" : [ "tax_exclusive", "tax_inclusive" ],
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) for the credit note\n",
            "maxLength" : 3,
            "example" : null
          },
          "total" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Credit Note amount in cents.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_allocated" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "The amount allocated to invoices from the credit note.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_refunded" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "The refunds issued from this credit note.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_available" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "The yet to be used credits of this credit note.\n",
            "minimum" : 0,
            "example" : null
          },
          "refunded_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time this credit note gets fully used. Please note that this field is not present when partial refunds are issued.\n",
            "example" : null
          },
          "voided_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating the date and time this credit note gets voided.\n",
            "example" : null
          },
          "generated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date/time when the credit note was raised. This date/time can be backdated, which means that the date/time can be earlier than the date/time the credit note was created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this credit note was last updated. This attribute will be present only if the resource has been updated after 2016-09-28.\n",
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com)\nfor more information.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "line_items_next_offset" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This attribute is returned only if additional resources are available. Use this value as the input parameter for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items_offset</code> to retrieve the next set of resources.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only when Enterprise-scale Invoicing is enabled.</li>\n<li class=\"text-base leading-relaxed\">Enterprise-scale Invoicing is currently in <strong class=\"font-semibold\">Private Beta</strong>. Please reach out to <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this feature.</li>\n</ul></div>",
            "maxLength" : 1000,
            "example" : null
          },
          "sub_total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The Credit Note sub-total\n",
            "minimum" : 0,
            "example" : null
          },
          "sub_total_in_local_currency" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Invoice subtotal in the currency of the place of supply.\n",
            "minimum" : 0,
            "example" : null
          },
          "total_in_local_currency" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total invoice amount in the currency of the place of supply.\n",
            "minimum" : 0,
            "example" : null
          },
          "local_currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed.\n",
            "maxLength" : 3,
            "example" : null
          },
          "round_off_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates the rounded-off amount. For example, if your invoice amount is $99.99, and the amount is rounded off to $100.00, in this case, $100.00 is your invoice amount, $0.01 is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.\nIf there is no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round-off amount</code>\n, it will display <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\n.</p>",
            "maximum" : 99,
            "minimum" : -99,
            "example" : null
          },
          "fractional_correction" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Indicates the fractional correction amount.\n",
            "maximum" : 50000,
            "minimum" : -50000,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates that this resource has been deleted.\n",
            "example" : null
          },
          "tax_category" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the customer's category for the Goods and Services Tax (GST). This field is returned only if you've configured GST for the India region.\n",
            "example" : null
          },
          "local_currency_exchange_rate" : {
            "type" : "number",
            "format" : "decimal",
            "deprecated" : false,
            "description" : "This parameter represents the exchange rate as a relative price of the base currency that appears as local currency in invoices and credit notes. The local currency exchange rate specifically refers to the exchange rate of a country's currency when converting it to another currency.\n\nFor example, if you want to convert US dollars to euros, the local currency exchange rate would be the rate at which you can convert US dollars to euros.\n",
            "maximum" : 1000000000,
            "minimum" : 0.0000000010,
            "example" : null
          },
          "create_reason_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Credit Notes \\> Create Credit Note**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive\n",
            "maxLength" : 100,
            "example" : null
          },
          "vat_number_prefix" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
            "maxLength" : 10,
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/advanced-features\">business entity</a>\nof this credit_note. This is always the same as the business entity of the invoice referred to by <code><a href=\"/docs/api/credit_notes/credit_note-object#reference_invoice_id\">reference_invoice_id</a></code>.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The line items of this credit note\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies a line_item\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the subscription this line item belongs to.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Start date of this line item.\n",
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "End date of this line item.\n",
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Unit amount of the line item.\n",
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 1,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a>\nwhich is represented by this line item. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nline items, this value is updated from <a href=\"/docs/api/usages\">usages</a>\nonce when the invoice is generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\nand finally when the invoice is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>\n.</p>",
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                  "example" : null
                },
                "pricing_model" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n",
                  "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                  "example" : null
                },
                "is_taxed" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Specifies whether this line item is taxed or not\n",
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The tax amount charged for this item\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "Rate of tax used to calculate tax for this lineitem\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total discounts for this line\n",
                  "minimum" : 0,
                  "example" : null
                },
                "item_level_discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Line Item-level discounts for this line.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "metered" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "is_percentage_pricing" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "reference_line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Invoice Reference Line Item ID\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this line item.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "entity_description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this item.\n",
                  "maxLength" : 500,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the modelled entity this line item is based on.\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n",
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "tax_exempt_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* zero_value_item - <p class=\"mb-2\">If the total invoice value/amount is equal to zero. E.g., If the total order value is $10 and a $10 coupon has been applied against that order, the total order value becomes $0. Hence the invoice value also becomes $0.</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* tax_not_configured_external_provider - <p class=\"mb-2\">If the tax is not configured for the country in 3rd party tax provider.</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>",
                  "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the customer this line item belongs to\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of tiers applicable for this line item\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies a line_item\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lower limit of a range of units for the tier\n",
                  "minimum" : 0,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The upper limit of a range of units for the tier\n",
                  "example" : null
                },
                "quantity_used" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The number of units purchased in a range.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "quantity_used_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of discount(s) applied for each line item of this credit note.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique id of the line item that this deduction is for.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "discount_amount", "discount_type", "line_item_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applied on line items\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique reference id of the line item for which the tax is applicable\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "tax_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The rate of tax used to calculate tax amount\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period end of the tax rate for the line item.\n",
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period start of the tax rate for the line item.\n",
                  "example" : null
                },
                "prorated_taxable_amount" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "description" : "Indicates the prorated line item amount in cents.\n",
                  "maximum" : 1000000000,
                  "minimum" : -1000000000,
                  "example" : null
                },
                "is_partial_tax_applied" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                  "example" : null
                },
                "is_non_compliance_tax" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                  "example" : null
                },
                "taxable_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The tax amount. This is set to the corresponding value on the invoice (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item_taxes[i].tax_amount</code>), prorated by the ratio of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.total</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.total</code>.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_juris_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The type of tax jurisdiction\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* state -\n\nThe tax jurisdiction is a state\n\\* county -\n\nThe tax jurisdiction is a county\n\\* country -\n\nThe tax jurisdiction is a country\n\\* city -\n\nThe tax jurisdiction is a city\n\\* special -\n\nSpecial tax jurisdiction.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* other -\n\nJurisdictions other than the ones listed above.\n",
                  "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                  "example" : null
                },
                "tax_juris_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax jurisdiction\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_juris_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The tax jurisdiction code\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_amount_in_local_currency" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "local_currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                  "maxLength" : 3,
                  "example" : null
                }
              },
              "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_addresses" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of addresses used for tax calculation on line items.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Line item reference\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "first_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "First name of the customer\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "last_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Last name of the customer\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "format" : "email",
                  "deprecated" : false,
                  "description" : "Email address of the customer\n",
                  "maxLength" : 70,
                  "example" : null
                },
                "company" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the company\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "phone" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Phone number of the customer\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "line1" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 1\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line2" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 2\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line3" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 3\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "city" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the city\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "state_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "state" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "State or Province\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "country" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The billing address of the customer, specified as an [ISO 3166 alpha-2 code](https://www.iso.org/iso-3166-country-codes.html).\nEntering an invalid code will return an error.  \nIf [EU VAT](https://www.chargebee.com/docs/eu-vat.html) (2021 or later) or [Brexit configuration](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) is enabled, 'United Kingdom-Northern Ireland' is a valid option.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "zip" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                  "maxLength" : 20,
                  "example" : null
                },
                "validation_status" : {
                  "type" : "string",
                  "default" : "not_validated",
                  "deprecated" : false,
                  "description" : "The address verification status.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n",
                  "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of discounts applied to this credit note\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description for this deduction.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>",
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "coupon_set_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "amount", "entity_type" ],
              "example" : null
            },
            "example" : null
          },
          "taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The tax-lines of this credit note\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied. E.g. GST.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The tax amount. This is set to the corresponding value on the invoice (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.taxes[i].amount</code>), prorated by the ratio of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note.total</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.total</code>.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description of the tax item.\n",
                  "maxLength" : 250,
                  "example" : null
                }
              },
              "required" : [ "amount", "name" ],
              "example" : null
            },
            "example" : null
          },
          "tax_origin" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "contains information about the tax details which is applied on the invoice.\n",
            "properties" : {
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The country code in ([ISO 3166-1 alpha-2 format](https://www.iso.org/iso-3166-country-codes.html)\n) where the tax originated from.\n",
                "maxLength" : 50,
                "example" : null
              },
              "registration_number" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "It represents the tax registration number for the entity used to collect tax.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "example" : null
          },
          "linked_refunds" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Payment Refunds issued from this credit note\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "txn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies the transaction.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "applied_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The transaction amount applied to this invoice\n",
                  "minimum" : 0,
                  "example" : null
                },
                "applied_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Time when the transaction amount applied to this invoice.\n",
                  "example" : null
                },
                "txn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The status of this transaction.</p>\n* needs_attention - <p class=\"mb-2\">When connection with the Gateway gets terminated abruptly. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\nstatus Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nYou can use this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(Gateway Transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nfor a <a href=\"/docs/api/transactions/transaction-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code></a>\ntransaction to be reconciled at par with the gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransaction status</p></div>\n* voided - <p class=\"mb-2\">The transaction got voided or authorization expired at gateway.</p>\n* late_failure - <p class=\"mb-2\">Indicates that a successful payment transaction has failed now due to a late failure notification from the payment gateway, typically caused by issues like insufficient funds or a closed bank account.</p>\n* timeout - <p class=\"mb-2\">Transaction failed because of Gateway not accepting the connection.</p>\n* success - <p class=\"mb-2\">The transaction is successful.</p>\n* failure - <p class=\"mb-2\">Transaction failed. Refer the &#x27;error_code&#x27; and &#x27;error_text&#x27; fields to know the reason for failure</p>\n* in_progress - <p class=\"mb-2\">Transaction is being processed by the gateway. This typically happens for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.</p>",
                  "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                  "example" : null
                },
                "txn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates when this transaction occurred.\n",
                  "example" : null
                },
                "txn_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of the transaction\n",
                  "minimum" : 0,
                  "example" : null
                },
                "refund_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Reason code for the refund. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Credit Notes \\> Refund Credit Note**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "applied_amount", "applied_at", "txn_id" ],
              "example" : null
            },
            "example" : null
          },
          "linked_tax_withheld_refunds" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The details of refunds recorded against the <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">invoice.linked_taxes_withheld</a></code>\ncomponent of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>\n<a href=\"/docs/api/credit_notes/credit_note-object#reference_invoice_id\">associated</a>\nwith this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note</code>.</p>\n<span featureId=\"cb-tax-withheld\" isMicro=\"true\"></span>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">An auto-generated unique identifier for the tax withheld. The value starts with the prefix <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_</code>.\nFor example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_16BdDXSlbu4uV1Ee6</code>\n.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount withheld by the customer as tax from the invoice. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The description for this tax withheld.\n",
                  "maxLength" : 65000,
                  "example" : null
                },
                "date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Date or time associated with the tax withheld.\n",
                  "example" : null
                },
                "reference_number" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique external reference number for the tax withheld. Typically, this is the reference number used by the system you are integrating the API with. Depending on your integration, this could be the reference number issued by the taxation authority to identify the customer or the specific tax transaction.\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "id" ],
              "example" : null
            },
            "example" : null
          },
          "allocations" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Invoice allocations made from this credit note.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "invoice_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Unique identifier of the invoice.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "allocated_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Amount of this refund transaction.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "allocated_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates when this refund occured.\n",
                  "example" : null
                },
                "invoice_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Closing date of the invoice. Typically this is the date on which invoice is generated\n",
                  "example" : null
                },
                "invoice_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Current status of the invoice.</p>\n* not_paid - <p class=\"mb-2\">Indicates the payment is not made and all attempts to collect is failed.</p>\n* paid - <p class=\"mb-2\">Indicates a paid invoice.</p>\n* voided - <p class=\"mb-2\">Indicates a voided invoice.</p>\n* posted - <p class=\"mb-2\">Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period</p>\n* pending - <p class=\"mb-2\">The <a href=\"/docs/api/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when it has line items that belong to items that are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> or when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.create_pending_invoices</code>attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\nThe <a href=\"/docs/api/v2/pcv-1/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\">Metered Billing</a> is enabled for the site.</p>\n* payment_due - <p class=\"mb-2\">Indicates the payment is not yet collected and is being retried as per retry settings.</p>",
                  "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                  "example" : null
                },
                "tax_application" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies how tax is handled for invoice allocations made from this credit note.\n\\* pre_tax -\n\nAllocations are applied before tax calculation.\n\\* post_tax -\n\nAllocations are applied after tax calculation.\n",
                  "enum" : [ "pre_tax", "post_tax" ],
                  "example" : null
                }
              },
              "required" : [ "allocated_amount", "allocated_at", "invoice_id", "invoice_status" ],
              "example" : null
            },
            "example" : null
          },
          "shipping_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Shipping address for the credit note.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The state/province name.\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "billing_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Billing address for the credit note.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "State or Province\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "einvoice" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "An e-invoice or electronic invoice is a structured representation of an invoice that is interoperable between computerized invoicing systems. Depending on the country, e-invoicing can be necessary to meet financial/taxation authority regulations.\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nfor the e-invoice. This is auto-generated by Chargebee.</p>",
                "maxLength" : 50,
                "example" : null
              },
              "reference_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Identifier returned by the connected e-invoicing provider for this submission (for example, a document submission id). Chargebee uses this value when communicating with the provider to retrieve submission status and related artifacts.\n",
                "maxLength" : 50,
                "example" : null
              },
              "reference_number" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This attribute is used to populate the unique reference number assigned to an invoice on the Invoice Registration Portal (IRP) network. It is essential for identifying and tracking invoices that are processed through the IRP network.\n\nIn the future, this field may be used to store similar reference numbers for other networks.\n",
                "maxLength" : 100,
                "example" : null
              },
              "status" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The status of processing the e-invoice. To obtain detailed information about the current <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n, see <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">message</code>\n.</p>\n* message_acknowledgement - <p class=\"mb-2\">An acknowledgment confirming that the application response was successfully received by the receiving entity.</p>\n* under_query - <p class=\"mb-2\">The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.</p>\n* rejected - <p class=\"mb-2\">The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.</p>\n* scheduled - <p class=\"mb-2\">Sending the e-invoice to the customer has been scheduled.</p>\n* paid - <p class=\"mb-2\">The receiving entity has confirmed that the e-invoice has been paid.</p>\n* conditionally_accepted - <p class=\"mb-2\">The e-invoice has been accepted with conditions.</p>\n* accepted - <p class=\"mb-2\">The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.</p>\n* skipped - <p class=\"mb-2\">The e-invoice was not sent. This could be due to missing information or because the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nis not registered on the e-invoicing network.</p>\n* success - <p class=\"mb-2\">The e-invoice has been successfully delivered to the customer.</p>\n* failed - <p class=\"mb-2\">The e-invoice was sent and there was an error due to which it was not delivered.</p>\n* in_progress - <p class=\"mb-2\">The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.</p>\n* in_process - <p class=\"mb-2\">The e-invoice is currently being processed by the receiving entity.</p>\n* registered - <p class=\"mb-2\">The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.</p>",
                "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                "example" : null
              },
              "message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Detailed information about the status of the e-invoice. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">skipped</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>\n, this contains the reason or error details. The following are some valid examples:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Invoice successfully sent to customer via the e-invoicing network 9090:123456</li>\n<li class=\"text-base leading-relaxed\">Invoice successfully sent to customer via email id abc@acme.com</li>\n</ul>",
                "maxLength" : 3000,
                "example" : null
              },
              "provider_references" : {
                "type" : "array",
                "deprecated" : false,
                "items" : {
                  "example" : null
                },
                "example" : null
              }
            },
            "required" : [ "id", "status" ],
            "example" : null
          },
          "site_details_at_creation" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "It contains site-specific information, including timezone and organisational address.\n",
            "properties" : {
              "timezone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "It represents the timezone of the site at the time of entity creation.\n",
                "maxLength" : 50,
                "example" : null
              },
              "organization_address" : {
                "type" : "object",
                "additionalProperties" : true,
                "deprecated" : false,
                "description" : "It represents the address configured for the site during entity creation.\n",
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "customer_id", "deleted", "id", "price_type", "status", "sub_total", "type" ],
        "example" : null
      },
      "CreditNoteCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              }
            },
            "required" : [ "credit_note" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CreditNoteCreatedWithBackdatingEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              }
            },
            "required" : [ "credit_note" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CreditNoteDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              }
            },
            "required" : [ "credit_note" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CreditNoteEstimate" : {
        "type" : "object",
        "properties" : {
          "reference_invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "adjustment", "refundable", "store" ],
            "example" : null
          },
          "price_type" : {
            "type" : "string",
            "default" : "tax_exclusive",
            "deprecated" : false,
            "enum" : [ "tax_exclusive", "tax_inclusive" ],
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 3,
            "example" : null
          },
          "sub_total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "amount_allocated" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "amount_available" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "round_off_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 1,
                  "deprecated" : false,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "example" : null
                },
                "pricing_model" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                  "example" : null
                },
                "is_taxed" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "item_level_discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "metered" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "is_percentage_pricing" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "reference_line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "entity_description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 500,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "tax_exempt_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "example" : null
                },
                "quantity_used" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "quantity_used_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_discounts" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "discount_amount", "discount_type", "line_item_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_taxes" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "tax_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "prorated_taxable_amount" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "maximum" : 1000000000,
                  "minimum" : -1000000000,
                  "example" : null
                },
                "is_partial_tax_applied" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "is_non_compliance_tax" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "taxable_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "tax_juris_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                  "example" : null
                },
                "tax_juris_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_juris_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_amount_in_local_currency" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "local_currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 3,
                  "example" : null
                }
              },
              "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "coupon_set_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "amount", "entity_type" ],
              "example" : null
            },
            "example" : null
          },
          "taxes" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                }
              },
              "required" : [ "amount", "name" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "amount_allocated", "amount_available", "currency_code", "price_type", "reference_invoice_id", "sub_total", "total", "type" ],
        "example" : null
      },
      "CreditNoteUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              }
            },
            "required" : [ "credit_note" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CreditOptionForCurrentTermCharges" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "none", "prorate", "full" ],
        "example" : null
      },
      "CreditType" : {
        "type" : "string",
        "default" : "general",
        "deprecated" : false,
        "enum" : [ "loyalty_credits", "referral_rewards", "general" ],
        "example" : null
      },
      "CsvTaxRule" : {
        "type" : "object",
        "properties" : {
          "tax_profile_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "country" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "state" : {
            "type" : "string",
            "default" : "*",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "zip_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "zip_code_start" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "zip_code_end" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "tax1_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "tax1_rate" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "maximum" : 100,
            "minimum" : 0,
            "example" : null
          },
          "tax1_juris_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
            "example" : null
          },
          "tax1_juris_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "tax1_juris_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "tax2_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "tax2_rate" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "maximum" : 100,
            "minimum" : 0,
            "example" : null
          },
          "tax2_juris_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
            "example" : null
          },
          "tax2_juris_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "tax2_juris_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "tax3_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "tax3_rate" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "maximum" : 100,
            "minimum" : 0,
            "example" : null
          },
          "tax3_juris_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
            "example" : null
          },
          "tax3_juris_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "tax3_juris_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "tax4_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "tax4_rate" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "maximum" : 100,
            "minimum" : 0,
            "example" : null
          },
          "tax4_juris_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
            "example" : null
          },
          "tax4_juris_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "tax4_juris_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 250,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "active", "expired", "scheduled" ],
            "example" : null
          },
          "time_zone" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 4,
            "example" : null
          },
          "valid_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "valid_till" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "service_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "digital", "other", "not_applicable" ],
            "example" : null
          },
          "rule_weight" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "overwrite" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "overwrite", "tax1_name", "tax1_rate" ],
        "example" : null
      },
      "Currency" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Chargebee&#x27;s Multi-currency feature allows you to create Plans in multiple currencies, enabling your customers to conveniently pay in their preferred local currency. Please review this <a href=\"https://www.chargebee.com/docs/2.0/multi-currency-pricing.html\">documentation</a> to understand the multi-currency feature in Chargebee.</p><p class=\"mb-2\">This currency resource contains exchange rate configurations associated with a specific currency. The multi-currency feature must be <a href=\"https://www.chargebee.com/docs/2.0/multi-currency-pricing.html#1-adding-and-managing-currencies\">enabled</a>, and all prerequisites must be addressed to successfully add a new currency via the API.\nTo invoke a single currency-specific API like update, retrieve, and more, the currency ID has to be passed as a path parameter. You can use list API to fetch the IDs of each currency configured in your site to use with the currency-specific APIs below. Chargebee supports billing in over <a href=\"https://www.chargebee.com/docs/2.0/supported-currencies.html\" target=\"_blank\">100 currencies</a>.\nOn this page, you can find information about how currency units are expressed in the API, as well as some pointers to keep in mind when using multiple currencies.</p><h2>Currency values</h2><p class=\"mb-2\">By default, the Chargebee API supports only whole numbers for currency values. To allow for fractional (decimal) values, you must enable the <a href=\"https://www.chargebee.com/docs/2.0/multi-decimal-support.html\" target=\"_blank\">multi-decimal pricing</a> feature. Additionally, the units in which currencies are expressed in the API depend on whether the currency is zero-decimal and whether multi-decimal pricing is enabled.</p><h3>Whole number currency values</h3><p class=\"mb-2\">By default, Chargebee supports currency values in whole numbers; fractions are not supported. In the API, currency values can be identified by checking their data types. For all whole number currency values in this API, the data type is indicated as &quot;in cents&quot; in this documentation.</p><p class=\"mb-2\">The specific unit used for the currency in the API depends on whether it is a zero-decimal currency:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Zero-decimal currencies</strong>: For currencies that do not have decimal subunits, such as the Japanese Yen (JPY), the amount must be provided in the major unit of the currency. The major unit of a currency is the unit represented by its <a href=\"https://www.iso.org/iso-4217-currency-codes.html\" target=\"_blank\">ISO 4217 code</a>. For example, to specify an amount of JPY 15, set the amount as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">15</code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Other currencies</strong>: For currencies that are not zero-decimal, Chargebee supports values up to two decimal places in the major unit of the currency. This value with two decimal places must be converted to an integer by multiplying it by 100. For example, $1.53 should be provided as 1.53 x 100, which is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">153</code>.</li>\n</ul><h3>Fractional currency values</h3><p class=\"mb-2\">When <a href=\"https://www.chargebee.com/docs/multi-decimal-support.html#configuring-multi-decimal-support\" target=\"_blank\">multi-decimal pricing</a> is enabled in Chargebee, you can work with fractional currency values using dedicated API parameters and attributes of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">String</code> type. Usually, these attributes and parameters have the suffix <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">_in_decimal</code> in their names. The value is expressed in the major unit of the currency, which is the unit represented by its <a href=\"https://www.iso.org/iso-4217-currency-codes.html\" target=\"_blank\">ISO 4217 code</a>. For example, $1.6782 should be provided as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1.6782</code>. The maximum number of decimal places supported by the API can be <a href=\"https://www.chargebee.com/docs/multi-decimal-support.html#configuring-multi-decimal-support\" target=\"_blank\">configured</a> in the admin console.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> For <strong class=\"font-semibold\">zero-decimal currencies</strong>, such as the Japanese Yen (JPY), decimal places are not allowed.</p><h4>Rounding of invoice line item amounts</h4><p class=\"mb-2\">While Chargebee supports multiple decimal places for currency values, at the <a href=\"/docs/api/invoices/invoice-object#line_items_amount\">invoice line item</a>\n-level, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\nattribute is always rounded off to two decimal places in the major unit of the currency. The major unit of a currency is the unit represented by its\n<a href=\"https://www.iso.org/iso-4217-currency-codes.html\" target=\"_blank\">ISO 4217 code</a>\n.</p><p class=\"mb-2\">The rounding logic used is <code><a href=\"https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html#ROUND_HALF_EVEN\" target=\"_blank\">ROUND_HALF_EVEN</a></code>\n. For example, if the <code><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">quantity</a></code>\nis 0.0765 and <code><a href=\"/docs/api/invoices/invoice-object#line_items_unit_amount\">unit_amount</a></code>\nis $10.674, the line item <code><a href=\"/docs/api/invoices/invoice-object#line_items_amount\">amount</a></code>\nis (0.0765 x $10.674) = $0.816561 and is rounded off to $0.82.</p><h2>Multi-currency support</h2><p class=\"mb-2\">By default, Chargebee is able to process transactions in only one currency. However, you can enable the <a href=\"https://www.chargebee.com/docs/2.0/multi-currency-pricing.html\" target=\"_blank\">multi-currency</a> feature to support more currencies. The first currency enabled in Chargebee also becomes the &quot;base currency&quot; by default. If you have multiple currencies enabled and want to change the base currency for your site, reach out to <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Support</a> for assistance.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Warning</strong></p><p class=\"mb-2\">For some API endpoints, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code> parameter becomes <em class=\"italic\">required</em> when the multi-currency feature is enabled. Before enabling the feature for your site, ensure that you update your code to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code> parameter when calling the endpoints listed in the next section.</p></div><h3>List of affected endpoints</h3><p class=\"mb-2\">The following endpoints require the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nparameter to be passed when the multi-currency feature has been enabled.</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Customer-related endpoints</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/promotional_credits/add-promotional-credits\">Add promotional credits for a customer</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/promotional_credits/deduct-promotional-credits\">Deduct promotional credits from a customer</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/promotional_credits/set-promotional-credits\">Set promotional credits for a customer</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/record-an-excess-payment-for-a-customer\">Record an excess payment for a customer</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Invoice-related endpoints</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">Create an invoice</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Product catalog-related endpoints</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/item_prices/create-an-item-price\">Create an item price</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/coupons/create-a-coupon-for-items\">Create a coupon</a>\n</li>\n</ul></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier of a currency.\n",
            "maxLength" : 40,
            "example" : null
          },
          "enabled" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This field mentions whether the foreign currency is active or archived. If the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nthe foreign currency is archived else it is active.</p>",
            "example" : null
          },
          "forex_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This represents the exchange rate type set for the currency.</p>\n* auto - <p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto</code>\n, conversion rate will be auto updated by Chargebee every day with third party providers (using external currency conversion providers).</p>\n* manual - <p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\n, you will be able to set the conversion rate for the currency. You need to update the exchange rate each time your exchange rate provider changes it.</p>",
            "enum" : [ "manual", "auto" ],
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A three letter currency code. For example, GBR, INR, and more.\n",
            "maxLength" : 3,
            "example" : null
          },
          "is_base_currency" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Check whether this is a base currency or not. The value of the attribute is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nwhen the currency matches the site&#x27;s base currency.</p>",
            "example" : null
          },
          "manual_exchange_rate" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This attribute shows the exchange rate in decimal. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">forex_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual</code>\nyou have to set the exchange rate for additional currencies in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manual_exchange_rate</code>\nfield.</p>",
            "maxLength" : 20,
            "example" : null
          }
        },
        "required" : [ "currency_code", "enabled", "id", "is_base_currency" ],
        "example" : null
      },
      "CustomFieldConfig" : {
        "type" : "object",
        "description" : "This resource represents the configuration for a specific [custom field](/docs/api/advanced-features#custom-fields).\n",
        "properties" : {
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Entity type that this configuration applies to.\n\\* item -\n\nItem entity.\n\\* invoice -\n\nInvoice entity.\n\\* omnichannel_one_time_order -\n\nOmnichannel one-time order entity.\n\\* subscription_entitlement -\n\nSubscription entitlement entity.\n\\* plan -\n\nPlan entity.\n\\* price_variant -\n\nPrice variant entity.\n\\* sales_order -\n\nSales order entity.\n\\* omnichannel_subscription_item_scheduled_change -\n\nScheduled change for an omnichannel subscription item entity.\n\\* transaction -\n\nTransaction entity.\n\\* quote -\n\nQuote entity.\n\\* plan_price -\n\nPlan price entity.\n\\* customer -\n\nCustomer entity.\n\\* business_rule -\n\nBusiness rule entity.\n\\* differential_price -\n\nDifferential price entity.\n\\* attached_item -\n\nAttached item entity.\n\\* coupon -\n\nCoupon entity.\n\\* subscription -\n\nSubscription entity.\n\\* addon -\n\nAddon entity.\n\\* addon_price -\n\nAddon price entity.\n\\* charge_item -\n\nCharge item entity.\n\\* feature -\n\nFeature entity.\n\\* omnichannel_transaction -\n\nOmnichannel transaction entity.\n\\* item_entitlement -\n\nItem entitlement entity.\n\\* usage_file -\n\nUsage file entity.\n\\* addon_item -\n\nAddon item entity.\n\\* charge_price -\n\nCharge price entity.\n\\* item_family -\n\nItem family entity.\n\\* ruleset -\n\nRuleset entity.\n\\* plan_item -\n\nPlan item entity.\n\\* order -\n\nOrder entity.\n\\* item_price -\n\nItem price entity.\n\\* omnichannel_subscription -\n\nOmnichannel subscription entity.\n\\* omnichannel_subscription_item -\n\nOmnichannel subscription item entity.\n\\* omnichannel_one_time_order_item -\n\nOmnichannel one-time order item entity.\n\\* business_entity -\n\nBusiness entity.\n\\* recorded_purchase -\n\nRecorded purchase entity.\n\\* credit_note -\n\nCredit note entity.\n",
            "enum" : [ "customer", "subscription", "invoice", "quote", "credit_note", "transaction", "plan", "addon", "coupon", "order", "item_family", "item", "item_price", "plan_item", "addon_item", "charge_item", "plan_price", "addon_price", "charge_price", "differential_price", "attached_item", "feature", "subscription_entitlement", "item_entitlement", "business_entity", "price_variant", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction", "recorded_purchase", "omnichannel_subscription_item_scheduled_change", "sales_order", "omnichannel_one_time_order", "omnichannel_one_time_order_item", "usage_file", "business_rule", "ruleset", "alert_status" ],
            "example" : null
          },
          "api_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier for the custom field, used in API requests and responses.\n",
            "maxLength" : 50,
            "example" : null
          },
          "display_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the field as it appears in the user interface.\n",
            "maxLength" : 50,
            "example" : null
          },
          "field_datatype" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Data type of the custom field value.\n\\* double -\n\nDouble-precision number.\n\\* long -\n\nInteger (long).\n\\* timestamp -\n\nTimestamp value.\n\\* date -\n\nDate value.\n\\* email -\n\nEmail address.\n\\* url -\n\nURL value.\n\\* string -\n\nString value.\n",
            "enum" : [ "string", "long", "double", "timestamp", "email", "url", "date" ],
            "example" : null
          },
          "edit_ui" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "UI component type used to input or edit the field value.\n\\* radio_button_horizontal -\n\nHorizontal radio button group.\n\\* radio_button_vertical -\n\nVertical radio button group.\n\\* text_area -\n\nMulti-line text input.\n\\* text -\n\nSingle-line text input.\n\\* date_field -\n\nDate picker input.\n\\* date_time_field -\n\nDate and time picker input.\n\\* password -\n\nPassword input (masked).\n\\* drop_down -\n\nDropdown select input.\n\\* check_box -\n\nCheck box input.\n\\* file -\n\nFile upload input.\n",
            "enum" : [ "text", "text_area", "date_time_field", "drop_down", "radio_button_horizontal", "radio_button_vertical", "date_field", "check_box", "file", "password" ],
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Description of the custom field.\n",
            "maxLength" : 250,
            "example" : null
          },
          "required" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Whether the custom field is mandatory or optional.\n",
            "example" : null
          },
          "props" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "JSON object containing additional properties for the field (for example, options for a dropdown).\n",
            "maxLength" : 5000,
            "example" : null
          },
          "field_order" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Display order of the field in the user interface.\n",
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "active",
            "deprecated" : false,
            "description" : "Whether the custom field configuration is active or archived.\n\\* archived -\n\nOnly available in the index list page; soft deleted.\n\\* active -\n\nVisible and ready to use.\n",
            "enum" : [ "active", "archived" ],
            "example" : null
          },
          "published_status" : {
            "type" : "string",
            "default" : "new",
            "deprecated" : false,
            "description" : "Publishing status of the custom field configuration.\n\\* new -\n\nNew configuration not yet published.\n\\* draft -\n\nConfiguration is in draft and not yet published.\n\\* published -\n\nConfiguration is published and in use.\n",
            "enum" : [ "new", "published", "draft" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the custom field configuration was created.\n",
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the custom field configuration was last updated.\n",
            "example" : null
          }
        },
        "required" : [ "api_name", "created_at", "display_name", "entity_type", "field_datatype", "modified_at", "props", "published_status", "required", "status" ],
        "example" : null
      },
      "CustomPricingUnit" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "external_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "active", "archived" ],
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "created_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "updated_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "created_at", "external_name", "id", "name" ],
        "example" : null
      },
      "Customer" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Represents a customer, which can be an individual or organization that subscribes to your products or services. The customer resource associates with <a href=\"/docs/api/subscriptions/subscription-object\">subscriptions</a>, <a href=\"/docs/api/cards/card-object\">card information</a>, and billing addresses. The customer details include their ID, name, contact information, and any <a href=\"/docs/api/advanced-features\">custom attributes</a> you&#x27;d like to associate with them.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Breaking Change</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/sites-intro.html\" target=\"_blank\"><strong class=\"font-semibold\">Sites</strong></a> <strong class=\"font-semibold\">created before March 1, 2014</strong>: <a href=\"/docs/api/cards/update-card-for-a-customer\">updating the card</a> deletes the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code> and replaces them with values from the request.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Sites created on or after March 1, 2014</strong>: updating the card doesn&#x27;t change the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>.</li>\n</ul></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource. You have the option to specify this value when creating a customer. If not specified, Chargebee automatically generates a unique identifier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource is <a href=\"/docs/api/business_entities/transfer-resources-to-another-business-entity\">transferred</a> to a different <code><a href=\"/docs/api/business_entities\">business_entity</a></code>, Chargebee assigns a new random identifier to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> attribute. The original identifier is preserved for the transferred copy of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource. (See also: <a href=\"/docs/api/business_entities\">Mechanics of business entity transfer</a>.)</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "first_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "First name of the customer\n",
            "maxLength" : 150,
            "example" : null
          },
          "last_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Last name of the customer\n",
            "maxLength" : 150,
            "example" : null
          },
          "email" : {
            "type" : "string",
            "format" : "email",
            "deprecated" : false,
            "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
            "maxLength" : 70,
            "example" : null
          },
          "phone" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Phone number of the customer\n",
            "maxLength" : 50,
            "example" : null
          },
          "company" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Company name of the customer.\n",
            "maxLength" : 250,
            "example" : null
          },
          "vat_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The VAT/tax registration number for the customer. For customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n), the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>\ncan be overridden by setting\n<code><a href=\"/docs/api/customers/customer-object#vat_number_prefix\">vat_number_prefix</a></code>\n.</p>",
            "maxLength" : 20,
            "example" : null
          },
          "auto_collection" : {
            "type" : "string",
            "default" : "on",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When the customer has a <code><a href=\"/docs/api/customers/customer-object#payment_method\">payment_method</a></code>\nof <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">card</code>\n, this attribute determines whether to automatically charge the card whenever an invoice <code><a href=\"/docs/api/invoices/invoice-object#status\">status</a></code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThis setting can be <a href=\"/docs/api/subscriptions/create-subscription-for-items#auto_collection\">overridden</a> for individual subscriptions of the customer.</p></div>\n* on - <p class=\"mb-2\">Chargebee automatically charges the card for invoices that enter <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>\n* off - <p class=\"mb-2\">Automatic charging is disabled; manual payment is required for due invoices.</p>",
            "enum" : [ "on", "off" ],
            "example" : null
          },
          "offline_payment_method" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The preferred offline payment method for the customer.\n\\* sepa_credit -\n\nSEPA Credit\n\\* cash -\n\nCash\n\\* no_preference -\n\nNo Preference\n\\* bank_transfer -\n\nBank Transfer\n\\* check -\n\nCheck\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* custom -\n\nCustom\n\\* boleto -\n\nBoleto\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n",
            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
            "example" : null
          },
          "net_term_days" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 0,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>\n<span featureId=\"cb-net-d-payment-terms\" isMicro=\"true\"></span>",
            "example" : null
          },
          "vat_number_validated_time" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Returns the recent VAT number validation time.\n",
            "example" : null
          },
          "vat_number_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Represents the VAT validation status. This is applicable if you have configured EU, UK or Australian taxes and the [VAT number validation](https://www.chargebee.com/docs/2.0/uk-vat.html#uk-vat-validation)\nis enabled.\n\\* not_validated -\n\nThis status is only applicable for countries in European Zone. This is applicable when both the customer's billing address and the organization's address should be of the same European Zone and EU tax should be configured with the \"Also validate VAT Number for Country of Business\" option in the disabled status.\n\\* undetermined -\n\nWhen Chargebee is not able to validate the VAT number it is stored as 'undetermined'. This can occur due to reasons like service outage etc. VAT numbers with 'undetermined' status will be in queue for validation on daily basis.\n\\* valid -\n\nIf the given VAT number is valid.\n\\* invalid -\n\nIf the given VAT number is invalid.\n",
            "enum" : [ "valid", "invalid", "not_validated", "undetermined" ],
            "example" : null
          },
          "allow_direct_debit" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Whether the customer can pay via Direct Debit\n",
            "example" : null
          },
          "is_location_valid" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only when the customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code> is New Zealand, Australia, or in the EU.</p></div>\n<p class=\"mb-2\">When the customer uses a <a href=\"/docs/api/payment_sources/payment_source-object#type\" target=\"_blank\">card</a> <a href=\"/docs/api/customers/customer-object#primary_payment_source_id\" target=\"_blank\">payment source</a>, this attribute specifies whether the country of the customer and the card issuer are the same.\nThe following three location indicators are compared:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The card issuer&#x27;s country.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.</li>\n<li class=\"text-base leading-relaxed\">The country to which <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">created_from_ip</code> belongs.</li>\n<li class=\"text-base leading-relaxed\">When all three are the same, this attribute is set to true, otherwise it is set to false.\nWhen all three are the same, this attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, otherwise it is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul>",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this customer resource is created.\n",
            "example" : null
          },
          "created_from_ip" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The IP address of the customer when this customer record was created. It&#x27;s mainly used for <a href=\"https://www.chargebee.com/docs/marketing-integration-index.html\" target=\"_blank\">referral integrations</a> and validating VAT if the customer is in the EU or UK.\nDepending on the method used to create the customer record, the field is set as follows:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">API</strong>: When creating the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource through the API, you must include the customer&#x27;s IP address in a <a href=\"/docs/api/advanced-features\">custom HTTP request header</a> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-ip</code>) for Chargebee to capture it.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Checkout</strong>: For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resources created through <a href=\"https://www.chargebee.com/docs/2.0/hosted-checkout.html\" target=\"_blank\">Chargebee Checkout</a>, Chargebee automatically captures the IP address of the customer.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">UI</strong>: When <a href=\"https://www.chargebee.com/docs/2.0/customers.html#creating-a-new-customer\" target=\"_blank\">creating a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code></a> resource via the Chargebee Billing UI, this field is not relevant and the value must be ignored.</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "exemption_details" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Indicates the exemption information. You can customize customer exemption based on specific Location, Tax level (Federal, State, County and Local), Category of Tax or specific Tax Name. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\nTo know more about what values you need to provide, refer to this [Avalara's API document](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/exemption/)\n.\n",
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "taxability" : {
            "type" : "string",
            "default" : "taxable",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies if the customer is liable for tax</p>\n* taxable - <p class=\"mb-2\">Computes tax for the customer based on the <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>.\nIn some cases, depending on the region, shipping_address is needed. If not provided, then billing_address is used to compute tax. If that&#x27;s not available either, the tax is taken as zero.</p>\n* exempt - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Customer is exempted from tax. When using Chargebee&#x27;s native <a href=\"https://www.chargebee.com/docs/tax.html\" target=\"_blank\" rel=\"noopener noreferrer\">Taxes</a> feature or when using the <a href=\"https://www.chargebee.com/docs/taxjar.html\" target=\"_blank\" rel=\"noopener noreferrer\">TaxJar integration</a>, no other action is needed.</li>\n<li class=\"text-base leading-relaxed\">However, when using our <a href=\"https://www.chargebee.com/docs/avalara.html\" target=\"_blank\" rel=\"noopener noreferrer\">Avalara integration</a>, optionally, specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code> attributes if you use Chargebee&#x27;s <a href=\"https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption\" target=\"_blank\">AvaTax for Sales</a> or specify <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> attribute if you use <a href=\"https://www.chargebee.com/docs/avatax-for-communication.html\" target=\"_blank\" rel=\"noopener noreferrer\">Chargebee&#x27;s AvaTax for Communications</a> integration. Tax may still be applied by Avalara for certain values of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_code</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exempt_number</code>/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">exemption_details</code> based on the state/region/province of the taxable address.</li>\n</ul>",
            "enum" : [ "taxable", "exempt" ],
            "example" : null
          },
          "entity_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The exemption category of the customer, for USA and Canada. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n\\* l -\n\nOther or custom\n\\* m -\n\nEducational organization\n\\* n -\n\nLocal government\n\\* h -\n\nCommercial agricultural production\n\\* i -\n\nIndustrial production/manufacturer\n\\* j -\n\nDirect pay permit\n\\* k -\n\nDirect mail\n\\* p -\n\nCommercial aquaculture\n\\* q -\n\nCommercial Fishery\n\\* r -\n\nNon-resident\n\\* d -\n\nForeign diplomat\n\\* e -\n\nCharitable or benevolent organization\n\\* f -\n\nReligious organization\n\\* g -\n\nResale\n\\* a -\n\nFederal government\n\\* b -\n\nState government\n\\* c -\n\nTribe/Status Indian/Indian Band\n\\* med2 -\n\nUS Medical Device Excise Tax with taxable sales tax\n\\* med1 -\n\nUS Medical Device Excise Tax with exempt sales tax\n",
            "enum" : [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p", "q", "r", "med1", "med2" ],
            "example" : null
          },
          "exempt_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Any string value that will cause the sale to be exempted. Use this if your finance team manually verifies and tracks exemption certificates. Applicable if you use Chargebee's [AvaTax for Sales integration](https://www.chargebee.com/docs/avalara.html#configuring-tax-exemption)\n.\n",
            "maxLength" : 100,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this customer was last updated. This attribute will be present only if the resource has been updated after 2016-09-28.\n",
            "example" : null
          },
          "locale" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.\n",
            "maxLength" : 50,
            "example" : null
          },
          "billing_date" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only when <a href=\"https://www.chargebee.com/docs/calendar-billing.html\">Calendar Billing</a> with support for customer-specific billing date is enabled and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date_mode</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manually_set</code>.</p></div>\n<p class=\"mb-2\">Specifies the day of the month for subscription renewals on month-based or year-based plans. Month-based and year-based plans are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nresources where the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">year</code>\nrespectively.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Month-based subscriptions</strong>: If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">15</code>, month-based renewals occur on the 15th of the month. It&#x27;s important to note that if the value is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">31</code>, renewals align with the last day of the month. Additionally, in February, a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">29</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">30</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">31</code> aligns renewals for the last day of February.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Year-based subscriptions</strong>: A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">15</code> and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_month</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">7</code> schedules the renewal on the 15th of July.</li>\n</ul></div>",
            "maximum" : 31,
            "minimum" : 1,
            "example" : null
          },
          "billing_month" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only when <a href=\"https://www.chargebee.com/docs/calendar-billing.htm\">Calendar Billing</a> with support for customer-specific billing date is enabled and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date_mode</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manually_set</code>.</p></div>\n<p class=\"mb-2\">Specifies the renewal month for subscriptions on year-based plans. Year-based plans are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nresources where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">year</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong>\nThe renewal date is 15th July when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">15</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_month</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">7</code>.</p></div>",
            "maximum" : 12,
            "minimum" : 1,
            "example" : null
          },
          "billing_date_mode" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only when <a href=\"https://www.chargebee.com/docs/calendar-billing.html\">Calendar Billing</a> with support for customer-specific billing date is enabled and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date_mode</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manually_set</code>.</p></div>\n<p class=\"mb-2\">Indicates whether this customer&#x27;s <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_month</code>\nvalues can be changed via the <a href=\"/docs/api/customers/change-billing-date\">Change billing date API</a>\n.</p>\n* manually_set - <p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_month</code>\ncan be adjusted via API.</p>\n* using_defaults - <p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_date</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_month</code>\nare fixed as per Chargebee <a href=\"https://www.chargebee.com/docs/2.0/calendar-billing-config.html#configuring-calendar-billing_configuring-site-wide-billing\">site settings</a>\nand not modifiable via API.</p>",
            "enum" : [ "using_defaults", "manually_set" ],
            "example" : null
          },
          "billing_day_of_week" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Applicable when *calendar billing*\n(with customer specific billing date support) is enabled. When set, renewals of all the weekly subscriptions of this customer will be aligned to this week day.\n\\* saturday -\n\nSaturday\n\\* monday -\n\nMonday\n\\* friday -\n\nFriday\n\\* sunday -\n\nSunday\n\\* wednesday -\n\nWednesday\n\\* thursday -\n\nThursday\n\\* tuesday -\n\nTuesday\n",
            "enum" : [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ],
            "example" : null
          },
          "billing_day_of_week_mode" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Indicates whether this customer's *billing_day_of_week*\nvalue is derived as per configurations or its specifically set (overriden). When specifically set, the *billing_day_of_week*\nwill not be reset even when all of the weekly subscriptions are cancelled.\n\\* using_defaults -\n\nBilling date is set based on defaults configured.\n\\* manually_set -\n\nBilling date is specifically set (default configuration is overridden)\n",
            "enum" : [ "using_defaults", "manually_set" ],
            "example" : null
          },
          "pii_cleared" : {
            "type" : "string",
            "default" : "active",
            "deprecated" : false,
            "description" : "Indicates whether this customer's personal information has been cleared\n\\* cleared -\n\nCleared\n\\* scheduled_for_clear -\n\nScheduled For Clear\n\\* active -\n\nActive\n",
            "enum" : [ "active", "scheduled_for_clear", "cleared" ],
            "example" : null
          },
          "auto_close_invoices" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Override for this customer, the [site-level setting](https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing)\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute is also available at the [subscription level](/docs/api/subscriptions/subscription-object#auto_close_invoices)\nwhich takes precedence.\n",
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com)\nfor more information.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "active_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: Present only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> has been <a href=\"/docs/api/business_entities/transfer-resources-to-another-business-entity\">transferred</a> between business entities.</p></div>\n<p class=\"mb-2\">Represents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the active version of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>: If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active_id</code> of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> resource are the same, this indicates that you are working with the active version of that customer resource.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "fraud_flag" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Indicates whether or not the customer has been [identified as fraudulent](https://www.chargebee.com/docs/payments/2.0/fraud-management/chargebee-fraud-management).\n\\* suspicious -\n\nThe customer has been identified as potentially fraudulent by the gateway\n\\* safe -\n\nThe customer has been marked as safe\n\\* fraudulent -\n\nThe customer has been marked as fraudulent\n",
            "enum" : [ "safe", "suspicious", "fraudulent" ],
            "example" : null
          },
          "primary_payment_source_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [identifier](/docs/api/payment_sources/payment_source-object#id)\nof the customer's [primary payment source](https://www.chargebee.com/docs/2.0/payment-method-overview.html#primary-and-backup-payment-methods)\n",
            "maxLength" : 40,
            "example" : null
          },
          "backup_payment_source_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [identifier](/docs/api/payment_sources/payment_source-object#id)\nof the customer's [backup payment source](https://www.chargebee.com/docs/2.0/payment-method-overview.html#primary-and-backup-payment-methods)\n.\n",
            "maxLength" : 40,
            "example" : null
          },
          "invoice_notes" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A note for the customer that appears on all their invoice PDFs. This is one of [several notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
            "maxLength" : 2000,
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the [business entity](/docs/api/advanced-features)\nof this subscription. This is always the same as the [business entity](/docs/api/subscriptions/subscription-object#customer_id)\nof the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "preferred_currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "**Note**\nApplicable only when the [Multi-Currency](https://www.chargebee.com/docs/2.0/multi-currency-pricing.html) feature is enabled.\n\nSpecifies the customer's preferred currency in [ISO 4217](https://www.chargebee.com/docs/supported-currencies.html)\nformat.\n",
            "maxLength" : 3,
            "example" : null
          },
          "promotional_credits" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The balance of [promotional credits](/docs/api/promotional_credits)\navailable to the customer.\n",
            "minimum" : 0,
            "example" : null
          },
          "unbilled_charges" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total unbilled charges for this customer\n",
            "minimum" : 0,
            "example" : null
          },
          "refundable_credits" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Refundable credits balance of this customer\n",
            "minimum" : 0,
            "example" : null
          },
          "excess_payments" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Total unused payments associated with the customer. These are automatically applied to new invoices subject to <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#credits-flexibility\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">limits set at the site level</a> which can be overridden for subscriptions via <a href=\"/docs/api/subscriptions/subscription-object#billing_override\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.billing_override</code></a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <a href=\"https://www.chargebee.com/docs/billing/2.0/site-configuration/multi-currency-pricing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">multiple currencies</a> are enabled, this value is the excess payments balance for the customer&#x27;s preferred currency. In other words, this value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">balances[i].excess_payments</code> where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">balances[i].currency_code</code> is the same as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">preferred_currency_code</code>.</li>\n</ul></div>",
            "minimum" : 0,
            "example" : null
          },
          "is_einvoice_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Determines whether the customer is e-invoiced. When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nor not set to any value, the customer is e-invoiced so long as e-invoicing is enabled for their country (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>\n). When set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the customer is not e-invoiced even if e-invoicing is enabled for their country.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">It is possible to set a value for this flag even when E-Invoicing is disabled. However, it comes into effect only when E-Invoicing is enabled.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
            "example" : null
          },
          "einvoicing_method" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Determines whether to send e-invoice manually or automatic.\n\\* automatic -\n\nUse this value to send e-invoice every time an invoice or credit note is created.\n\\* manual -\n\nWhen manual is selected the automatic e-invoice sending is disabled. Use this value to send e-invoice manually through UI or API.\n\\* site_default -\n\nThe default value of the site which can be overridden at the customer level.\n",
            "enum" : [ "automatic", "manual", "site_default" ],
            "example" : null
          },
          "meta_data" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the customer. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features) .\n",
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates that this resource has been deleted when the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n.</p>",
            "example" : null
          },
          "registered_for_gst" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Confirms that a customer is registered under GST. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the <a href=\"https://www.chargebee.com/docs/australian-gst.html#reverse-charge-mechanism\" target=\"_blank\" rel=\"noopener noreferrer\">Reverse Charge Mechanism</a>\nis applicable. This field is applicable only when Australian GST is configured for your site.</p>",
            "example" : null
          },
          "consolidated_invoicing" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates whether invoices raised on the same day for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer</code> are consolidated. When present, this value overrides the default configuration at the <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html#configuring-consolidated-invoicing\" target=\"_blank\">site-level</a>. This attribute is applicable only when <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html\" target=\"_blank\">Consolidated Invoicing</a> is enabled.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">Any invoices raised when a subscription activates from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, are not consolidated by default. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to enable consolidation for such invoices.</p></div>",
            "example" : null
          },
          "customer_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "**Note**\nApplicable only when the [Chargebee's AvaTax for Communications integration](https://www.chargebee.com/docs/avatax-for-communication.html) is enabled.\n\nIndicates the [Avalara customer type](https://developer.avalara.com/communications-integration/design-considerations/customer-type/)\n.\n\\* industrial -\n\nThe customer is an industrial business.\n\\* residential -\n\nThe customer is an individual user.\n\\* senior_citizen -\n\nThe customer is an individual that meets the jurisdiction requirements to be considered a senior citizen and qualifies for tax breaks.\n\\* business -\n\nThe customer represents a business.\n",
            "enum" : [ "residential", "business", "senior_citizen", "industrial" ],
            "example" : null
          },
          "business_customer_without_vat_number" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Confirms that a customer is a valid business without an EU/UK VAT number.\n",
            "example" : null
          },
          "client_profile_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "**Note**\nApplicable only when the [Chargebee's AvaTax for Communications integration](https://www.chargebee.com/docs/avatax-for-communication.html) is enabled.\n\nThe [Avalara client profile ID](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/client-profiles/)\nassigned to the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "use_default_hierarchy_settings" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Indicates whether the site-default settings are being used for controlling access to the customer's information.\nThe level of access is for data falling into two categories: - **Self-Serve Portal data:** subscriptions and invoices of the customer.\n\n* **Email Notifications:** subscription-, invoice- and payment-related notifications for the customer.\n",
            "example" : null
          },
          "vat_number_prefix" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
            "maxLength" : 10,
            "example" : null
          },
          "entity_identifier_scheme" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "entity_identifier_standard" : {
            "type" : "string",
            "default" : "iso6523-actorid-upis",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nCurrently only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there are additional entity identifiers for the customer not associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, they can be provided as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array.</p></div>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "billing_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Billing address for a customer.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "State or Province\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "referral_urls" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of referral urls for the customer (if applicable)\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "external_customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "External customer id in the referral system\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "referral_sharing_url" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Referral sharing url for the customer\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The referral url creation time\n",
                  "example" : null
                },
                "updated_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The referral url updation time\n",
                  "example" : null
                },
                "referral_campaign_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Referral campaign id\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "referral_account_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Referral account id\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "referral_external_campaign_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Referral external campaign id\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "referral_system" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Url for the referral system account\n\\* referral_saasquatch -\n\nReferral Saasquatch\n\\* friendbuy -\n\nFriendbuy\n\\* referral_candy -\n\nReferral Candy\n",
                  "enum" : [ "referral_candy", "referral_saasquatch", "friendbuy" ],
                  "example" : null
                }
              },
              "required" : [ "created_at", "referral_account_id", "referral_campaign_id", "referral_sharing_url", "referral_system", "updated_at" ],
              "example" : null
            },
            "example" : null
          },
          "contacts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "contacts\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Unique reference ID provided for the contact.\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "first_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "First name of the contact.\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "last_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Last name of the contact.\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "format" : "email",
                  "deprecated" : false,
                  "description" : "Email of the contact.\n",
                  "maxLength" : 70,
                  "example" : null
                },
                "phone" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Phone number of the contact.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "label" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Label/Tag provided for contact.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "enabled" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Contact enabled / disabled\n",
                  "example" : null
                },
                "send_account_email" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Whether Account Emails option is enabled for the contact.\n",
                  "example" : null
                },
                "send_billing_email" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Whether Billing Emails option is enabled for the contact.\n",
                  "example" : null
                }
              },
              "required" : [ "email", "enabled", "id", "send_account_email", "send_billing_email" ],
              "example" : null
            },
            "example" : null
          },
          "payment_method" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Primary Payment Source of the customer.\n",
            "properties" : {
              "type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Type of payment source\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* go_pay -\n\nPayments made via GoPay\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* after_pay -\n\nPayments made via Afterpay\n\\* pix -\n\nPayments made via Pix\n\\* pay_by_bank -\n\nPay By Bank\n\\* sofort -\n\nPayments made via Sofort.\n\\* twint -\n\nPayments made via Twint\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* giropay -\n\nPayments made via giropay.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* upi -\n\nUPI Payments.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* payme -\n\nPayments made via PayMe\n\\* pay_to -\n\nPayments made via PayTo\n\\* pay_co -\n\nPayments made via PayCo\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* swish -\n\nPayments made via Swish\n\\* venmo -\n\nPayments made via Venmo\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* online_banking_poland -\n\nPayments made via Online Banking Poland\n\\* trustly -\n\nTrustly\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n",
                "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                "example" : null
              },
              "gateway" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Name of the gateway the payment method is associated with.\n\\* ecentric -\n\nEcentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n\\* paypal_payflow_pro -\n\nPayPal Payflow Pro is a payment gateway.\n\\* sage_pay -\n\nSage Pay is a payment gateway.\n\\* wepay -\n\nWePay is a payment gateway.\n\\* wirecard -\n\nWireCard Account is a payment service provider.\n\\* migs -\n\nMasterCard Internet Gateway Service payment gateway.\n\\* ebanx -\n\nEBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.\n\\* beanstream -\n\nBambora(formerly known as Beanstream) is a payment gateway.\n\\* adyen -\n\nAdyen is a payment gateway.\n\\* razorpay -\n\nRazorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n\\* braintree -\n\nBraintree is a payment gateway.\n\\* nmi -\n\nNMI is a payment gateway.\n\\* chargebee_payments -\n\nChargebee Payments gateway\n\\* bluepay -\n\nBluePay is a payment gateway.\n\\* paypal -\n\nPayPal Commerce is a payment gateway.\n\\* bank_of_america -\n\nBank of America is a payment gateway.\n\\* paypal_pro -\n\nPayPal Pro Account is a payment gateway.\n\\* eway_rapid -\n\neWAY Rapid is a payment gateway.\n\\* nuvei -\n\nNuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/nuvei&ref=feature) to enable Nuvei for your test and live sites.\n\\* windcave -\n\nWindcave provides an end to end payment processing solution in ANZ and other leading global markets.\n\\* dlocal -\n\nDlocal provides payment solutions for global commerce by accepting local payment methods.\n\\* moneris_us -\n\nMoneris USA is a payment gateway.\n\\* exact -\n\nExact Payments is a payment gateway.\n\\* paypal_express_checkout -\n\nPayPal Express Checkout is a payment gateway.\n\\* tco -\n\n2Checkout is a payment gateway.\n\\* pay_com -\n\nPay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.\n\\* chargebee -\n\nChargebee test gateway.\n\\* stripe -\n\nStripe is a payment gateway.\n\\* eway -\n\neWAY Account is a payment gateway.\n\\* authorize_net -\n\nAuthorize.net is a payment gateway\n\\* moneris -\n\nMoneris is a payment gateway.\n\\* worldpay -\n\nWorldPay is a payment gateway\n\\* pin -\n\nPin is a payment gateway\n\\* gocardless -\n\nGoCardless is a payment service provider.\n\\* elavon -\n\nElavon Virtual Merchant is a payment solution.\n\\* cybersource -\n\nCyberSource is a payment gateway.\n\\* vantiv -\n\nVantiv is a payment gateway.\n\\* amazon_payments -\n\nAmazon Payments is a payment service provider.\n\\* global_payments -\n\nGlobal Payments is a payment service provider.\n\\* first_data_global -\n\nFirst Data Global Gateway Virtual Terminal Account\n\\* paystack -\n\nPaystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/paystack&ref=feature) to enable Paystack for your test and live sites.\n\\* orbital -\n\nChase Paymentech(Orbital) is a payment gateway.\n\\* checkout_com -\n\nCheckout.com is a payment gateway.\n\\* quickbooks -\n\nIntuit QuickBooks Payments gateway\n\\* mollie -\n\nMollie is a payment gateway.\n\\* bluesnap -\n\nBlueSnap is a payment gateway.\n\\* paymill -\n\nPAYMILL is a payment gateway.\n\\* twikey -\n\nTwikey is a payment service provider that specializes in processing direct debit payments across the EU.\n\\* ogone -\n\nIngenico ePayments (formerly known as Ogone) is a payment gateway.\n\\* not_applicable -\n\nIndicates that payment gateway is not applicable for this resource.\n\\* hdfc -\n\nHDFC Account is a payment gateway.\n\\* balanced_payments -\n\nBalanced is a payment gateway\n\\* ingenico_direct -\n\nWorldline Online Payments is a payment gateway.\n\\* metrics_global -\n\nMetrics global is a leading payment service provider providing unified payment services in the US.\n",
                "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
                "example" : null
              },
              "gateway_account_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The gateway account this payment method is stored with.\n",
                "maxLength" : 50,
                "example" : null
              },
              "status" : {
                "type" : "string",
                "default" : "valid",
                "deprecated" : false,
                "description" : "Current status of the payment source.\n\\* expired -\n\nA payment source that has expired\n\\* invalid -\n\nThe billing agreement cannot be used. It might become valid again either automatically or due to customer action.\n\\* valid -\n\nA payment source that is valid and active.\n\\* pending_verification -\n\nThe payment source needs to be verified\n\\* expiring -\n\nA payment source that is expiring (like card's status based on its expiry date).\n",
                "enum" : [ "valid", "expiring", "expired", "invalid", "pending_verification" ],
                "example" : null
              },
              "reference_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The reference id. In the case of Amazon and PayPal this will be the 'billing agreement id'. For GoCardless direct debit this will be 'mandate id'. In the case of card payments this will be the identifier provided by the gateway/card vault for the specific payment method resource.\n**Note:**\nThis is not the one time temporary token provided by gateways like Stripe.\n",
                "maxLength" : 200,
                "example" : null
              }
            },
            "required" : [ "gateway", "reference_id", "status", "type" ],
            "example" : null
          },
          "balances" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of balances for this customer.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "promotional_credits" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Promotional credits balance of this customer.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "excess_payments" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Total unused payments associated with the customer. These are automatically applied to new invoices subject to <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#credits-flexibility\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">limits set at the site level</a> which can be overridden for subscriptions via <a href=\"/docs/api/subscriptions/subscription-object#billing_override\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.billing_override</code></a>.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "refundable_credits" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Refundable credits balance of this customer. These are automatically applied to new invoices subject to <a href=\"https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#credits-flexibility\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">limits set at the site level</a> which can be overridden for subscriptions via <a href=\"/docs/api/subscriptions/subscription-object#billing_override\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.billing_override</code></a>.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "unbilled_charges" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Total unbilled charges for this customer.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) for balance.\n",
                  "maxLength" : 3,
                  "example" : null
                },
                "business_entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier of the [business entity](/docs/api/business_entities)\nassociated with this balance.\n",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "currency_code", "excess_payments", "promotional_credits", "refundable_credits", "unbilled_charges" ],
              "example" : null
            },
            "example" : null
          },
          "entity_identifiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Each element of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code>\narray identifies a specific customer entity with the e-invoicing system. If the customer has only one entity identifier whose <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>\nis the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>\n, then this array is not needed as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>\ncan be provided via <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier_scheme</code>.\nThis array holds any additional entity identifiers that the customer may have.</p>\n<span featureId=\"cb-einvoicing\" isMicro=\"true\"></span>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unique id for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nin Chargebee. When not provided, it is autogenerated.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The value of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>.\nThis identifies the customer entity on the Peppol network. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10101010-STO-10</code>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                  "maxLength" : 50,
                  "example" : null
                },
                "scheme" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The Peppol BIS scheme associated with the <code><a href=\"/docs/api/customers/customer-object#vat_number\">vat_number</a></code>\nof the customer. This helps identify the specific type of customer entity. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:VAT</code>\nis used for a German business entity while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DE:LWID45</code>\nis used for a German government entity. The value must be from the list of possible values and must correspond to the country provided under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address.country</code>.\nSee <a href=\"https://www.chargebee.com/docs/e-invoicing.html#supported-countries\" target=\"_blank\" rel=\"noopener noreferrer\">list of possible values</a>\n.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                  "maxLength" : 50,
                  "example" : null
                },
                "standard" : {
                  "type" : "string",
                  "default" : "iso6523-actorid-upis",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The standard used for specifying the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheme</code>.\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">iso6523-actorid-upis</code>\nis supported and is used by default when not provided.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip:</strong></p><p class=\"mb-2\">If there is only one entity identifier for the customer and the value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number</code>, then there is no need to provide the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code> array. See <a href=\"/docs/api/customers/customer-object#entity_identifiers\">description for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifiers[]</code></a>.</p></div>",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "id", "scheme" ],
              "example" : null
            },
            "example" : null
          },
          "tax_providers_fields" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "This represents information related to custom [Tax Provider Fields](/docs/api/subscriptions).\nIt includes the provider name, field Id, and its corresponding field value. It is used to send custom Tax provider fields to any tax provider.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "provider_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the tax vendor currently we support.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "field_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with us.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "field_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Field value of the corresponding tax field.\n",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "field_id", "field_value", "provider_name" ],
              "example" : null
            },
            "example" : null
          },
          "relationship" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "The \\[account hierarchy\\](https://www.chargebee.com/docs/account-hierarchy.html) relationship that the customer is part of.\n",
            "properties" : {
              "parent_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the immediate parent of this customer under account hierarchy. If the customer is the root of the hierarchy, this attribute isn&#x27;t returned.</p>",
                "maxLength" : 50,
                "example" : null
              },
              "payment_owner_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the customer responsible for paying the invoices for this customer.  This ID must match either this customer&#x27;s ID or the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code>\n.</p>",
                "maxLength" : 50,
                "example" : null
              },
              "invoice_owner_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the customer who receives the invoice for charges incurred by the customer. This ID must match either this customer or one of its ancestors.</p>",
                "maxLength" : 50,
                "example" : null
              }
            },
            "required" : [ "invoice_owner_id", "payment_owner_id" ],
            "example" : null
          },
          "parent_account_access" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When the customer is part of an <a href=\"https://www.chargebee.com/docs/account-hierarchy.html\" target=\"_blank\">account hierarchy</a>, this attribute defines the level of access that the parent account has to the customer&#x27;s information.\n<strong class=\"font-semibold\">Note:</strong>\nthe &#x27;parent&#x27; is the customer whose id is <a href=\"/docs/api/customers/customer-object#relationship_payment_owner_id\">payment_owner_id</a>.\nHowever, if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_owner_id</code>\nis the customer itself, then the parent is <a href=\"/docs/api/customers/customer-object#relationship_parent_id\">parent_id</a>\n.</p>",
            "properties" : {
              "portal_edit_child_subscriptions" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Determines the parent's access to the child's subscriptions in the Self-Serve Portal.\n\\* no -\n\nThe parent can't view or edit the child's subscriptions.\n\\* view_only -\n\nThe parent can only view the child's subscriptions.\n\\* yes -\n\nThe parent can view and edit the child's subscriptions.\n",
                "enum" : [ "yes", "view_only", "no" ],
                "example" : null
              },
              "portal_download_child_invoices" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Determines the parent's access to the child's invoices in the Self-Serve Portal.\n\\* no -\n\nThe parent can't view or download the child's invoices.\n\\* yes -\n\nThe parent can both view and download the child's invoices.\n\\* view_only -\n\nThe parent can view but not download the child's invoices.\n",
                "enum" : [ "yes", "view_only", "no" ],
                "example" : null
              },
              "send_subscription_emails" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Determines whether the parent receives email notifications for the child's subscriptions.\n",
                "example" : null
              },
              "send_invoice_emails" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Determines whether the parent receives email notifications for the child's invoices.\n",
                "example" : null
              },
              "send_payment_emails" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Determines whether, the parent receives email notifications for payment-related activities on the child's invoices.\n",
                "example" : null
              }
            },
            "required" : [ "send_invoice_emails", "send_payment_emails", "send_subscription_emails" ],
            "example" : null
          },
          "child_account_access" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "When the customer is part of an \\[account hierarchy\\](https://www.chargebee.com/docs/account-hierarchy.html) , this attribute defines the level of access that the customer has to its own information.\n",
            "properties" : {
              "portal_edit_subscriptions" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Determines the child's access to its own subscriptions in the Self-Serve Portal.\n\\* yes -\n\nThe child account can view and edit its subscriptions.\n\\* view_only -\n\nThe child account can only view its subscriptions.\n",
                "enum" : [ "yes", "view_only" ],
                "example" : null
              },
              "portal_download_invoices" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Determines the child's access to its own invoices in the Self-Serve Portal.\n\\* view_only -\n\nThe child account can view but not download its invoices.\n\\* yes -\n\nThe child account can both view and download its invoices.\n\\* no -\n\nThe child account cannot view or download its own invoices.\n",
                "enum" : [ "yes", "view_only", "no" ],
                "example" : null
              },
              "send_subscription_emails" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Determines whether the child account receives email notifications for its subscriptions.\n",
                "example" : null
              },
              "send_invoice_emails" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Determines whether the child account receives email notifications for its invoices.\n",
                "example" : null
              },
              "send_payment_emails" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Determines whether the child account receives email notifications for payment-related activities for its invoices.\n",
                "example" : null
              }
            },
            "required" : [ "send_invoice_emails", "send_payment_emails", "send_subscription_emails" ],
            "example" : null
          }
        },
        "required" : [ "allow_direct_debit", "auto_collection", "created_at", "deleted", "excess_payments", "id", "net_term_days", "promotional_credits", "refundable_credits", "unbilled_charges" ],
        "example" : null
      },
      "CustomerBusinessEntityChangedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "business_entity_transfer" : {
                "$ref" : "#/components/schemas/BusinessEntityTransfer"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "business_entity_transfer", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CustomerChangedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CustomerCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CustomerDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/Subscription"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "subscriptions" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CustomerEntitlement" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-entitlements\"></span><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> resource can be viewed as a subset of the <code><a href=\"/docs/api/subscription_entitlements\">subscription_entitlement</a></code> resource enhanced with the customer&#x27;s ID. It is introduced to help <a href=\"/docs/api/customer_entitlements/list-customer-entitlements\">retrieve</a> all subscription entitlements for a specific customer.</p></div>",
        "properties" : {
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [customer](/docs/api/customers)\nto which this entitlement belongs.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [subscription](/docs/api/subscriptions)\nto which this entitlement belongs.\n",
            "maxLength" : 50,
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [feature](/docs/api/features)\ntowards which this subscription entitlement has been granted.\n",
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The value denoting the effective entitlement level that the subscription has towards the feature.\n",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The display name for the entitlement level. The value is automatically generated based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>: the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> and the pluralized form of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code>. For example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>; it&#x27;s set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Not Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "is_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, indicates that the <code><a href=\"/docs/api/subscription_entitlements\">subscription_entitlement</a></code>\nis enabled.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong>:\n<a href=\"/docs/api/subscription_entitlements/enable-or-disable-subscription-entitlements\">Enable or disable subscription entitlement</a>.</p></div>",
            "example" : null
          }
        },
        "required" : [ "customer_id", "is_enabled" ],
        "example" : null
      },
      "CustomerEntitlementsUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "impacted_customer" : {
                "$ref" : "#/components/schemas/ImpactedCustomer"
              }
            },
            "required" : [ "impacted_customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CustomerMovedInEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CustomerMovedOutEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "CustomerType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "residential", "business", "senior_citizen", "industrial" ],
        "example" : null
      },
      "DedupeOption" : {
        "type" : "string",
        "deprecated" : true,
        "enum" : [ "skip", "update_existing" ],
        "example" : null
      },
      "DifferentialPrice" : {
        "type" : "object",
        "description" : "Differential pricing helps implement a pricing strategy for addons and charges based on the plans they're purchased with. A differential price a specific price for an addon- or charge-[item price](/docs/api/item_prices) when purchased along with a particular plan.\n\nDifferential pricing for addons\n-------------------------------\n\nConsider an addon called 24x7 Customer Support provided with a cloud storage service. You can configure differential prices for each of the addon-item prices based on the plan they are purchased with, as follows:  \n\n|---|-----------------------------------------------------|-----------------------------------------------|-----------------------------------------------------|\n|   | **Addon item price**                                | **Price when applied to *Standard*** **Plan** | **Price when applied to** ***Enterprise*** **Plan** |\n| 1 | 24x7 Customer Support, USD, Monthly, Flat fee, $100 | $90                                           | $150                                                |\n| 2 | 24x7 Customer Support, USD, Yearly, Flat fee, $1000 | $900                                          | $1500                                               |\n\nDifferential pricing for charges\n--------------------------------\n\nConsider a charge, called Setup fee, for installing and configuring a cloud-based project management platform. There are two modes in which you can set up differential pricing for a charge:\n\n#### Mode A: One charge differential price per plan-item\n\nThis mode is used to specify one differential price for the charge-item price per [plan-item](/docs/api/items) it is applied to.  \n\n|-------------------------------|---------------------------------------------------|-----------------------------------------------------|\n| **Charge-item price**         | **Price when applied to** ***Standard*** **plan** | **Price when applied to** ***Enterprise*** **plan** |\n| Setup fee, USD, Flat fee $500 | $400                                              | $700                                                |\n\n#### Mode B: Multiple charge differential prices per plan item\n\nThis mode is used to specify multiple differential prices for the charge per plan-item, based on the plan period.  \n\n|-------------------------------|-------------------------------------------------------------|-----------------------------------------------------------|\n| **Charge-item price**         | **Price when applied to** ***Standard*** **plan, 6 months** | **Price when applied to** ***Standard*** **plan, yearly** |\n| Setup fee, USD, Flat fee $500 | $400                                                        | $300                                                      |\n\nIn the above example, even if the \"6 month\" or \"yearly\" plan-item prices do not exist, the differential prices for the charge can still be created. They take effect whenever the plan-item prices are eventually created and used in subscriptions.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique and immutable ID for the differential price. It is auto-generated when the differential price is created.\n",
            "maxLength" : 100,
            "example" : null
          },
          "item_price_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The ID of the item price (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>\n) whose price should change according to the plan-item it is applied to.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "parent_item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The ID of the plan-item, in relation to which, the differential pricing for the addon or charge is defined. For example, this would be the id of the *Standard*\nor *Enterprise*\nplans-items mentioned in the [examples above](/docs/api/differential_prices)\n.\n",
            "maxLength" : 100,
            "example" : null
          },
          "price" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The differential price. If the pricing model of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, pass <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiers</code>\ninstead of this.</p>",
            "minimum" : 0,
            "example" : null
          },
          "price_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The price of the item when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
            "maxLength" : 39,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The item family state.\n\\* active -\n\nNew items can be created with the item family.\n\\* deleted -\n\nNo items allowed for the item family.\n",
            "enum" : [ "active", "deleted" ],
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when this differential price was last updated.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp at which this differential price was created.\n",
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp at which this differential price was last modified.\n",
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) of the plan\n",
            "maxLength" : 3,
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the\n[business entity](/docs/api/getting-started)\nof this subscription. This is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.\n",
            "maxLength" : 50,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the differential price has been deleted or not.\n",
            "example" : null
          },
          "tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">List of quantity-based pricing tiers for the differential price. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\ns. The tiers are exactly the same as those set for the item price. Only the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price</code>\nattribute for the various tiers can be overridden for the differential price.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lower limit of a range of units for the tier\n",
                  "minimum" : 1,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The upper limit of a range of units for the tier\n",
                  "example" : null
                },
                "price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n; the total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the <a href=\"/docs/api/currencies\">minor unit of the currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "parent_periods" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\nis a charge-item, you can specify the plan period for which the price applies. Although an array, currently you can specify only one period. In other words, only index <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nis allowed. Create another differential price to specify another period. Is permitted only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\nis a charge-item.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\n.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "period" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The billing period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ns. For example, a 6 month plan has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nas 6 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>\n.</p>",
                  "items" : {
                    "example" : null
                  },
                  "example" : null
                }
              },
              "required" : [ "period_unit" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "currency_code", "deleted", "id", "item_price_id", "modified_at", "parent_item_id" ],
        "example" : null
      },
      "DifferentialPriceCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "differential_price" : {
                "$ref" : "#/components/schemas/DifferentialPrice"
              }
            },
            "required" : [ "differential_price" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "DifferentialPriceDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "differential_price" : {
                "$ref" : "#/components/schemas/DifferentialPrice"
              }
            },
            "required" : [ "differential_price" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "DifferentialPriceUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "differential_price" : {
                "$ref" : "#/components/schemas/DifferentialPrice"
              }
            },
            "required" : [ "differential_price" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "DirectDebitScheme" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "ach", "bacs", "sepa_core", "autogiro", "becs", "becs_nz", "pad", "not_applicable" ],
        "example" : null
      },
      "Discount" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-discounts\"></span><p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code>, just like <code><a href=\"/docs/api/coupons\">coupons</a></code>, represents a deduction from the amounts in an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>. While coupons are typically used by your customers, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code>s can be directly applied to subscriptions by your sales team while negotiating new deals or upgrades. If the negotiations are on the price itself, the <a href=\"\nhttps://www.chargebee.com/docs/price-override.html#api\" target=\"_blank\">price override</a> feature helps adjust the price further.</p><p class=\"mb-2\">Although a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> appears as a deduction on an invoice, it is applied to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> while creating or updating the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>. Every <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> in Chargebee is attached to only one <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The sum of the line-item-level and invoice-level coupons together for a subscription, cannot exceed 10.</li>\n<li class=\"text-base leading-relaxed\">When discounts are enabled in Chargebee, the <a href=\"https://www.chargebee.com/docs/coupons.html#applying-multiple-coupons-to-a-subscription\" target=\"_blank\">multi-coupons feature</a> is automatically activated.</li>\n</ul></div><h2>Adding a discount</h2><h3>Subscriptions</h3><p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> can be added to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> by calling either <a href=\"/docs/api/subscriptions/create-subscription-for-items\">Create subscription</a> or <a href=\"/docs/api/subscriptions/update-subscription-for-items\">Update subscription</a>. Once added, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> is applied to all subsequent invoices if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code>. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>, the discount is applied (as a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.line_item_discount</code>) in each invoice of the subscription that contains the specified item.</p><h3>Invoices</h3><p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> can be added to an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code> using <a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">Create invoice for items and one-time charges</a> using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts</code> parameter.</p><h3>Quotes</h3><p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> can be added to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code> using the following operations:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/create-a-quote-for-a-new-subscription-items\">Create a quote for new subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/create-a-quote-for-update-subscription-items\">Create a quote for updating a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/create-a-quote-for-charge-and-charge-items\">Create a quote for charge and charge item</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/edit-create-subscription-quote-for-items\">Edit a quote for a new subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/edit-update-subscription-quote-for-items\">Edit a quote for updating a subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/edit-quote-for-charge-items-and-charges\">Edit a quote for charge items and charges</a>\n</li>\n</ul><h3>Estimates</h3><p class=\"mb-2\">A discount can be added to an estimate using the following endpoints:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/estimates/estimate-for-creating-a-subscription\">Estimate for creating a subscription.</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/estimates/estimate-for-creating-a-customer-and-subscription\">Estimate for creating a customer and subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/estimates/estimate-for-updating-a-subscription\">Estimate for updating a subscription</a>\n</li>\n</ul><h2>Removing a discount</h2><h3>Subscriptions</h3><p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> can be removed by calling <a href=\"/docs/api/subscriptions/update-subscription-for-items\">Update subscription</a> with the relevant <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[operation_type][]</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">remove</code>. Also, discounts that have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code> are removed automatically upon expiry.</p><h3>Quotes</h3><p class=\"mb-2\">A discount can be removed from a quote using the following operations:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/edit-create-subscription-quote-for-items\">Edit a quote for a new subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/quotes/edit-update-subscription-quote-for-items\">Edit a quote for updating a subscription</a>\n</li>\n</ul><h3>Estimates</h3><p class=\"mb-2\">A discount can be removed from an estimate using the following operation:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/estimates/estimate-for-updating-a-subscription\">Estimate for updating a subscription</a>\n</li>\n</ul><h2>Listing discounts</h2><p class=\"mb-2\">A discount is associated with exactly one subscription. You can fetch all the discounts currently attached to a subscription by calling the <a href=\"/docs/api/subscriptions/list-discounts-for-a-subscription\">List discounts for a subscription API</a> or by passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">include_discounts</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> while creating, importing, updating or retrieving a subscription.</p><h2>Order of application of coupons and discounts</h2><p class=\"mb-2\">When both <a href=\"/docs/api/coupons\">coupons</a> and <a href=\"/docs/api/discounts\">discounts</a> are applied simultaneously to a <a href=\"/docs/api/subscriptions\">subscription</a> or <a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">one-time invoice</a>, they&#x27;re applied in the following order:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><tbody><tr><td class=\"ak-renderer-table-number-column\"></td><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Summary</strong></th><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Description</strong></th></tr><tr><td class=\"ak-renderer-table-number-column\">1</td><td colSpan=\"1\" rowspan=\"1\">Line-level, fixed amount coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">2</td><td colSpan=\"1\" rowspan=\"1\">Line-level, fixed amount discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">3</td><td colSpan=\"1\" rowspan=\"1\">Line-level, percentage coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">4</td><td colSpan=\"1\" rowspan=\"1\">Line-level, percentage discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">5</td><td colSpan=\"1\" rowspan=\"1\">Line-level, offer quantity coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">6</td><td colSpan=\"1\" rowspan=\"1\">Line-level, offer quantity discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">7</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, fixed amount coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">8</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, fixed amount discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">9</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, percentage coupons</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr><tr><td class=\"ak-renderer-table-number-column\">10</td><td colSpan=\"1\" rowspan=\"1\">Invoice-level, percentage discounts</td><td colSpan=\"1\" rowspan=\"1\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_amount</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code></td></tr></tbody></table></div><p class=\"mb-2\">For example, consider the following scenario:</p><p class=\"mb-2\">A subscription is created with:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">a plan price of $200 per month</li>\n<li class=\"text-base leading-relaxed\">an addon price of $20 per month</li>\n<li class=\"text-base leading-relaxed\">a flat $5 invoice discount</li>\n<li class=\"text-base leading-relaxed\">a 1% off coupon on the addon</li>\n<li class=\"text-base leading-relaxed\">a flat $2 coupon on the invoice</li>\n</ul><p class=\"mb-2\">The above coupons and discount are applied in the following order:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><tbody><tr><td class=\"ak-renderer-table-number-column\"></td><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Discount or coupon applied</strong></th><th class=\"ak-renderer-tableHeader-sortable-column\" colSpan=\"1\" rowspan=\"1\"><strong class=\"font-semibold\">Subtotal at each step</strong></th></tr><tr><td class=\"ak-renderer-table-number-column\">1</td><td colSpan=\"1\" rowspan=\"1\">Initial subtotal (plan price + addon price)</td><td colSpan=\"1\" rowspan=\"1\">$200 + $20 = $220</td></tr><tr><td class=\"ak-renderer-table-number-column\">2</td><td colSpan=\"1\" rowspan=\"1\">1% off coupon on the addon</td><td colSpan=\"1\" rowspan=\"1\">$200 + $(20 - 0.02) = $200 + $19.98 = $219.98</td></tr><tr><td class=\"ak-renderer-table-number-column\">3</td><td colSpan=\"1\" rowspan=\"1\">Flat $2 coupon on the invoice</td><td colSpan=\"1\" rowspan=\"1\">$219.98 - $2 = $217.98</td></tr><tr><td class=\"ak-renderer-table-number-column\">4</td><td colSpan=\"1\" rowspan=\"1\">Flat $5 invoice discount</td><td colSpan=\"1\" rowspan=\"1\">$217.98 - $5 = <strong class=\"font-semibold\">$212.98</strong></td></tr></tbody></table></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
            "maxLength" : 50,
            "example" : null
          },
          "invoice_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The name of the discount as it should appear on customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nThis is auto-generated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nof the discount. For example, it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10% off</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10$ off</code>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "default" : "percentage",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The type of discount.\nPossible value are:</p>\n* percentage - <p class=\"mb-2\">The specified percentage will be given as discount.</p>\n* fixed_amount - <p class=\"mb-2\">The specified amount will be given as discount.</p>\n* offer_quantity - <p class=\"mb-2\">A specified number of units of the item price are offered for free. The number of free units is specified in <code><a href=\"/docs/api/discounts\">quantity</a></code>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\noption is valid only when <code><a href=\"/docs/api/discounts/discount-object#apply_on\">apply_on</a></code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code>\nand the <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n.</p>",
            "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
            "example" : null
          },
          "percentage" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The percentage of the original amount that should be deducted from it. Only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
            "maximum" : 100,
            "minimum" : 0.01,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The value of the discount. <a href=\"/docs/api/currencies\">The format of this value</a>\ndepends on the kind of currency. This is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
            "minimum" : 0,
            "example" : null
          },
          "quantity" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the number of free units provided for the item, without affecting the total quantity sold. This parameter is applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
            "minimum" : 1,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The currency code (<a href=\"https://www.chargebee.com/docs/supported-currencies.html\" target=\"_blank\">ISO 4217 format</a>\n) of the discount. This is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\n.</p>",
            "maxLength" : 3,
            "example" : null
          },
          "duration_type" : {
            "type" : "string",
            "default" : "forever",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
            "enum" : [ "one_time", "forever", "limited_period" ],
            "example" : null
          },
          "period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
            "minimum" : 1,
            "example" : null
          },
          "period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "included_in_mrr" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
            "example" : null
          },
          "apply_on" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
            "enum" : [ "invoice_amount", "specific_item_price" ],
            "example" : null
          },
          "item_price_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this discount is created.\n",
            "example" : null
          },
          "apply_till" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies till when the limited period discount is applicable. This attribute will be sent in the response only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\nduration type discount.</p>",
            "example" : null
          },
          "applied_count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Specifies the number of times the discount has been applied.\n",
            "example" : null
          },
          "coupon_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>",
            "maxLength" : 100,
            "example" : null
          },
          "index" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The index number of the subscription to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>\n(inclusive) for each subscription that is to be created.</p>",
            "minimum" : 0,
            "example" : null
          }
        },
        "required" : [ "apply_on", "coupon_id", "created_at", "duration_type", "id", "included_in_mrr", "index", "type" ],
        "example" : null
      },
      "DiscountType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "fixed_amount", "percentage", "price" ],
        "example" : null
      },
      "DispositionType" : {
        "type" : "string",
        "default" : "attachment",
        "deprecated" : false,
        "enum" : [ "attachment", "inline" ],
        "example" : null
      },
      "Download" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Requesting to download a file through this API will return the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download_url</code> attribute as the response. This attribute will contain a URL that will allow the requested content to be downloaded.</p></div>",
        "properties" : {
          "download_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The URL at which the file is available for download.\n",
            "maxLength" : 3500,
            "example" : null
          },
          "valid_till" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The time until which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download_url</code>\nis valid.</p>",
            "example" : null
          },
          "mime_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [media type](https://en.wikipedia.org/wiki/Media_type)\nof the file.\n",
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "download_url", "valid_till" ],
        "example" : null
      },
      "DunningType" : {
        "type" : "string",
        "default" : "auto_collect",
        "deprecated" : false,
        "enum" : [ "auto_collect", "offline", "direct_debit" ],
        "example" : null
      },
      "DunningUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "DurationType" : {
        "type" : "string",
        "default" : "forever",
        "deprecated" : false,
        "enum" : [ "one_time", "forever", "limited_period" ],
        "example" : null
      },
      "EInvoicingCountry" : {
        "type" : "object",
        "properties" : {
          "country" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 30,
            "example" : null
          },
          "external_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "draft",
            "deprecated" : false,
            "enum" : [ "draft", "active" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "country", "created_at", "modified_at", "status" ],
        "example" : null
      },
      "EInvoicingCountryRule" : {
        "type" : "object",
        "properties" : {
          "model" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "peppol", "zugferd", "einvoice", "clearance", "reporting", "ctc", "nemhandel", "face", "verifactu" ],
            "example" : null
          },
          "transaction_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "b2b", "b2c", "b2g" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "draft",
            "deprecated" : false,
            "enum" : [ "draft", "active" ],
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "step" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "routing_config", "field_mapping", "completed" ],
            "example" : null
          },
          "routing_config" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "field_mapping" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "modified_at", "status" ],
        "example" : null
      },
      "EcheckType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "web", "ppd", "ccd" ],
        "example" : null
      },
      "EffectiveEntitlement" : {
        "type" : "object",
        "properties" : { },
        "example" : null
      },
      "Einvoice" : {
        "type" : "object",
        "description" : "Represents the e-invoice record associated with an invoice, including its processing status, reference number (such as one assigned by the IRP), and related status messages.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> for the e-invoice. This is auto-generated by Chargebee.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "reference_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier returned by the connected e-invoicing provider for this submission (for example, a document submission id). Chargebee uses this value when communicating with the provider to retrieve submission status and related artifacts.\n",
            "maxLength" : 50,
            "example" : null
          },
          "reference_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This attribute is used to populate the unique reference number assigned to an invoice on the Invoice Registration Portal (IRP) network. It is essential for identifying and tracking invoices that are processed through the IRP network.\n\nIn the future, this field may be used to store similar reference numbers for other networks.\n",
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The status of processing the e-invoice. To obtain detailed information about the current <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, see <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">message</code>.</p>\n* failed - <p class=\"mb-2\">The e-invoice was sent and there was an error due to which it was not delivered.</p>\n* in_progress - <p class=\"mb-2\">The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.</p>\n* success - <p class=\"mb-2\">The e-invoice has been successfully delivered to the customer.</p>\n* scheduled - <p class=\"mb-2\">Sending the e-invoice to the customer has been scheduled.</p>\n* registered - <p class=\"mb-2\">The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.</p>\n* skipped - <p class=\"mb-2\">The e-invoice was not sent. This could be due to missing information or because the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code> is not registered on the e-invoicing network.</p>",
            "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
            "example" : null
          },
          "message" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Detailed information about the status of the e-invoice. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">skipped</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>, this contains the reason or error details. The following are some valid examples:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Invoice successfully sent to customer via the e-invoicing network 9090:123456</li>\n<li class=\"text-base leading-relaxed\">Invoice successfully sent to customer via email id abc@acme.com</li>\n</ul>",
            "maxLength" : 3000,
            "example" : null
          },
          "provider_references" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "id", "status" ],
        "example" : null
      },
      "EinvoicingMethod" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "automatic", "manual", "site_default" ],
        "example" : null
      },
      "EndScheduleOn" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "after_number_of_intervals", "specific_date", "subscription_end" ],
        "example" : null
      },
      "Entitlement" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">The entitlement resource establishes a connection between a <code><a href=\"/docs/api/features\">feature</a></code>\nand an <code><a href=\"/docs/api/items\">item</a></code>\nor an <code><a href=\"/docs/api/item_prices\">item_price</a></code>\nin Chargebee Billing. By defining this relationship, it specifies the scope of access or rights the item or item price has in relation to that particular feature.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier for the entitlement. This is auto-generated.\n",
            "maxLength" : 100,
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique identifier of the entity being granted entitlement to a specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The type of the entity that holds this entitlement.</p>\n* plan - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <code><a href=\"/docs/api/items/item-object#type\">type</a></code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p>\n* addon - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <code><a href=\"/docs/api/items/item-object#type\">type</a></code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n* addon_price - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> associated with an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <code><a href=\"/docs/api/items/item-object#type\">type</a></code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</p>\n* charge - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> with <code><a href=\"/docs/api/items/item-object#type\">type</a></code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>.</p>\n* plan_price - <p class=\"mb-2\">Indicates that the entity is an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> associated with an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> of <code><a href=\"/docs/api/items/item-object#type\">type</a></code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</p>",
            "enum" : [ "plan", "addon", "charge", "plan_price", "addon_price" ],
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> to which the entity gains entitlement.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "feature_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the feature associated with this entitlement.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The level of entitlement that the entity has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][1]</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, then the value is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">available</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The display name for the entitlement level. The value is automatically generated based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> and the plural form of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code>. For instance, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> will be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> matches the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>; it&#x27;s set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Not Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "EntitlementOverride" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-entitlements\"></span><p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscriptions</code> inherit <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>s from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>s and/or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item price</code>s that are in them. Even so, there are many reasons why you may want to override the inherited entitlements on a subscription:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A customer wants access to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> that the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>s on their <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> are not entitled to.</li>\n<li class=\"text-base leading-relaxed\">A customer wants a higher <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.level</code> without having to pay more.</li>\n<li class=\"text-base leading-relaxed\">A customer does not want to see or access a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> because it is irrelevant to them.</li>\n<li class=\"text-base leading-relaxed\">You offer customized <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> bundles for each <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> instead of grouping <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>s into a product catalog of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>s.</li>\n</ul><p class=\"mb-2\">This API helps you implement each of the above use cases, offering a method to override the entitlements for a subscription at the subscription, <a href=\"/docs/api/items/item_price-object\" class=\"text-blue-600 hover:text-blue-800 underline\">item price</a>, or <a href=\"/docs/api/items#charge-items-or-charges\" class=\"text-blue-600 hover:text-blue-800 underline\">charge-item</a> level.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> expiry</strong></p><p class=\"mb-2\">If <code><a href=\"/docs/api/entitlement_overrides/entitlement_override-object#expires_at\">expires_at</a></code> has been set, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> object is no longer returned after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expires_at</code> has passed. The expiration of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> does not trigger any event immediately. However, after expiry, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> record gets deleted within 12 hours. This deletion triggers the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides_auto_removed</code> event which can be considered as a notification, albeit delayed, for one or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides</code> having expired.</p></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier for the entitlement override. This is always auto-generated.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> to which this entitlement override belongs.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "* When omitted, the entitlement override applies at the subscription level. See [subscription-level entitlement overrides](/docs/api/subscription_entitlements/subscription-entitlement-object#subscription-level-override).\n* When provided, this is the ID of the entity whose contribution to the subscription entitlement is overridden. If the entity is not yet part of the subscription, the override takes effect when the entity is added. See [entity-level entitlement overrides](/docs/api/subscription_entitlements/subscription-entitlement-object#entity-level-overrides).\n",
            "maxLength" : 50,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The type of the entity at whose level the entitlement override is being set for the subscription.\n",
            "maxLength" : 50,
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> for which the entitlement override is being set.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "feature_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>\ntowards which this entitlement override has been granted.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The level of entitlement that the item has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can also be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][1]</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, then the value is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> if the feature is available; it is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> when the feature is unavailable.</p>\n</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The display name for the entitlement level. The default values are auto-generated based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> as follows:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> and the pluralized version of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code>. For example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>; it&#x27;s set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Not Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The expiry date for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code>. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> object is no longer returned after this date has passed.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Constraints</strong></p>\nApplicable only for subscription-level entitlement overrides. i.e. Not applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> are set.</p></div>",
            "example" : null
          },
          "effective_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The starting date and time for the entitlement override. It indicates when the override becomes effective.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Constraints</strong></p>\nApplicable only for subscription-level entitlement overrides. i.e. Not applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> are set.</p></div>",
            "example" : null
          },
          "is_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "id", "is_enabled" ],
        "example" : null
      },
      "EntitlementOverridesAutoRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item" : {
                "$ref" : "#/components/schemas/ImpactedItem"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "EntitlementOverridesRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              }
            },
            "required" : [ "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "EntitlementOverridesUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              }
            },
            "required" : [ "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "EntitlementSetting" : {
        "type" : "object",
        "description" : "",
        "properties" : {
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "",
            "maxLength" : 500,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "",
            "maxLength" : 500,
            "example" : null
          }
        },
        "example" : null
      },
      "EntitlementVersion" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan", "addon", "charge", "plan_price", "addon_price" ],
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "feature_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "change_reason" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "EntityCode" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p", "q", "r", "med1", "med2" ],
        "example" : null
      },
      "EntityType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "customer", "subscription", "coupon", "plan_item_price", "addon_item_price", "charge_item_price", "plan_price", "addon_price", "charge_price", "charge", "invoice", "quote", "credit_note", "transaction", "plan", "addon", "order", "item_family", "item", "item_price", "plan_item", "addon_item", "charge_item", "differential_price", "attached_item", "feature", "subscription_entitlement", "item_entitlement", "business_entity", "price_variant", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction", "recorded_purchase", "omnichannel_subscription_item_scheduled_change", "sales_order", "omnichannel_one_time_order", "omnichannel_one_time_order_item", "usage_file", "business_rule", "ruleset", "alert_status" ],
        "example" : null
      },
      "Estimate" : {
        "type" : "object",
        "description" : "During the process of signing up customers to subscriptions, use the Estimates API to evaluate the details of the purchase before actually signing them up. The details returned by the API include the invoice amounts, next billing date and unbilled charges.\n\nFor example, consider that you are creating a new subscription or update an existing one. Use the Estimates API before that to deduce the details such as the amount the customer would be charged, the state the subscription would be in after creation or updation, and so on.  \nIf you have configured the [Avalara integration](https://www.chargebee.com/docs/2.0/avalara.html), Chargebee retrieves the tax amount from Avalara for the invoice. This counts against your Avalara API limits.\n",
        "properties" : {
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which this estimate got generated\n",
            "example" : null
          },
          "subscription_estimate" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Represents the subscription details when the 'estimate' operations are invoked.\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The identifier of the subscription\n",
                "maxLength" : 50,
                "example" : null
              },
              "currency_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The currency code (ISO 4217 format) of the subscription.\n",
                "maxLength" : 3,
                "example" : null
              },
              "status" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The status of the subscription.\n\\* in_trial -\n\nThe subscription is in trial.\n\\* paused -\n\nThe subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html).\nThe subscription will not renew while in this state.\n\\* transferred -\n\nThe subscription has been transferred to another business entity within the organization.\n\\* cancelled -\n\nThe subscription has been canceled and is no longer in service.\n\\* non_renewing -\n\nThe subscription will be canceled at the end of the current term.\n\\* future -\n\nThe subscription is scheduled to start at a future date.\n\\* active -\n\nThe subscription is active and will be charged for automatically based on the items in it.\n",
                "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                "example" : null
              },
              "trial_end_action" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.\n\\* site_default -\n\nThis is the default value. The action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n\\* activate_subscription -\n\nThe subscription activates and charges are raised for non-metered items.\n\\* cancel_subscription -\n\nThe subscription cancels.\n\\* plan_default -\n\nThe action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n",
                "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
                "example" : null
              },
              "next_billing_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "Date on which the next billing happens. This will be null for non-renewing and cancelled subscriptions.\n",
                "example" : null
              },
              "pause_date" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The date on which subscription will be paused. Applicable only to paused or scheduled pause subscriptions\n",
                "example" : null
              },
              "resume_date" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The date on which subscription will be resumed. Applicable only to paused or scheduled pause subscriptions\n",
                "example" : null
              },
              "shipping_address" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Represents the shipping address when the 'estimate' operations are invoked.\n",
                "properties" : {
                  "first_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The first name of the contact.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "last_name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The last name of the contact.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "email" : {
                    "type" : "string",
                    "format" : "email",
                    "deprecated" : false,
                    "description" : "The email address.\n",
                    "maxLength" : 70,
                    "example" : null
                  },
                  "company" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The company name.\n",
                    "maxLength" : 250,
                    "example" : null
                  },
                  "phone" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The phone number.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "line1" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 1\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "line2" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 2\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "line3" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Address line 3\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "city" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The name of the city.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "state_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "state" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The state/province name.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "country" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "zip" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                    "maxLength" : 20,
                    "example" : null
                  },
                  "validation_status" : {
                    "type" : "string",
                    "default" : "not_validated",
                    "deprecated" : false,
                    "description" : "The address verification status.\n\\* invalid -\n\nAddress is invalid.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                    "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                    "example" : null
                  }
                },
                "example" : null
              },
              "contract_term" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Represents the contract terms when the 'estimate' operations are invoked.\n",
                "properties" : {
                  "id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Id that uniquely identifies the contract term in the site.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "status" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Current status of contract\n\\* terminated -\n\nThe contract term was terminated ahead of completion.\n\\* cancelled -\n\nThe contract term was ended because: - a change in the subscription caused a [subscription term reset](/docs/api/v2/pcv-1/subscriptions/update-a-subscription#force_term_reset).\n\n* the subscription was cancelled due to non-payment.\n\n\\* active -\n\nAn actively running contract term.\n\\* completed -\n\nThe contract term has run its full duration.\n",
                    "enum" : [ "active", "completed", "cancelled", "terminated" ],
                    "example" : null
                  },
                  "contract_start" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The start date of the contract term\n",
                    "example" : null
                  },
                  "contract_end" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The end date of the contract term\n",
                    "example" : null
                  },
                  "billing_cycle" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "The number of billing cycles of the subscription that the contract term is for.\n",
                    "minimum" : 0,
                    "example" : null
                  },
                  "action_at_term_end" : {
                    "type" : "string",
                    "default" : "renew",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                    "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                    "example" : null
                  },
                  "total_contract_value" : {
                    "type" : "integer",
                    "format" : "int64",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The sum of the <a href=\"/docs/api/invoices/invoice-object#total\">totals</a>\nof all the invoices raised as part of the contract term. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms, this is a predicted value. The value depends on the <a href=\"/docs/api/estimates\">type of currency</a>.\nIf the subscription was <a href=\"/docs/api/estimates/estimate-for-creating-a-subscription\">imported</a>\nwith the contract term, then this value includes the value passed for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised</code>\n.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "total_contract_value_before_tax" : {
                    "type" : "integer",
                    "format" : "int64",
                    "default" : 0,
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">It refers to the total amount of revenue that is expected to be generated from a specific contract term, calculated as the sum of all invoices raised during the term, regardless of payment status. It is based on past performance and the specified currency in the contract. If the subscription was imported, the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised_before_tax</code>\nis included in the calculation of the total contract value before tax. It&#x27;s important to note that this value excludes any applicable taxes.</p>",
                    "minimum" : 0,
                    "example" : null
                  },
                  "cancellation_cutoff_period" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                    "example" : null
                  },
                  "created_at" : {
                    "type" : "integer",
                    "format" : "unix-time",
                    "deprecated" : false,
                    "description" : "The date when the contract term was created.\n",
                    "example" : null
                  },
                  "subscription_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "The [Id](/docs/api/subscriptions/subscription-object#id)\nof the subscription that this contract term is for.\n",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "remaining_billing_cycles" : {
                    "type" : "integer",
                    "format" : "int32",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The number of subscription billing cycles remaining after the current one for the contract term. This attribute is only returned for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms.</p>",
                    "minimum" : 0,
                    "example" : null
                  }
                },
                "required" : [ "action_at_term_end", "billing_cycle", "contract_end", "contract_start", "created_at", "id", "status", "subscription_id", "total_contract_value", "total_contract_value_before_tax" ],
                "example" : null
              }
            },
            "required" : [ "currency_code" ],
            "example" : null
          },
          "subscription_estimates" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Is a list of estimated subscriptions i.e., an array of *subscription_estimate*\nobjects. It is generated when 'Create an estimate for purchase' operation is invoked\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the subscription\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the subscription.\n",
                  "maxLength" : 3,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The status of the subscription.\n\\* future -\n\nThe subscription is scheduled to start at a future date.\n\\* transferred -\n\nThe subscription has been transferred to another business entity within the organization.\n\\* in_trial -\n\nThe subscription is in trial.\n\\* active -\n\nThe subscription is active and will be charged for automatically based on the items in it.\n\\* non_renewing -\n\nThe subscription will be canceled at the end of the current term.\n\\* cancelled -\n\nThe subscription has been canceled and is no longer in service.\n\\* paused -\n\nThe subscription is [paused](https://www.chargebee.com/docs/2.0/pause-subscription.html).\nThe subscription will not renew while in this state.\n",
                  "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
                  "example" : null
                },
                "trial_end_action" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Applicable only when <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">End-of-trial Action</a>\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.</p>\n* site_default - <p class=\"mb-2\">The action <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">configured for the site</a>\nat the time when the trial ends, takes effect. This is the default value when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end_action</code>\nis <strong class=\"font-semibold\">not</strong>\ndefined for the plan.</p>\n* plan_default - <p class=\"mb-2\">The action <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">configured for the site</a>\nat the time when the trial ends, takes effect. This is the default value when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_end_action</code>\nis defined for the plan.</p>\n* cancel_subscription - <p class=\"mb-2\">The subscription cancels.</p>\n* activate_subscription - <p class=\"mb-2\">The subscription activates and charges are raised for non-metered items.</p>",
                  "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
                  "example" : null
                },
                "next_billing_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Date on which the next billing happens. This will be null for non-renewing and cancelled subscriptions.\n",
                  "example" : null
                },
                "pause_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The date on which subscription will be paused. Applicable only to paused or scheduled pause subscriptions\n",
                  "example" : null
                },
                "resume_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The date on which subscription will be resumed. Applicable only to paused or scheduled pause subscriptions\n",
                  "example" : null
                },
                "shipping_address" : {
                  "type" : "object",
                  "deprecated" : false,
                  "description" : "Represents the shipping address when the 'estimate' operations are invoked.\n",
                  "properties" : {
                    "first_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The first name of the contact.\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "last_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The last name of the contact.\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "email" : {
                      "type" : "string",
                      "format" : "email",
                      "deprecated" : false,
                      "description" : "The email address.\n",
                      "maxLength" : 70,
                      "example" : null
                    },
                    "company" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The company name.\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "phone" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The phone number.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "line1" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 1\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "line2" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 2\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "line3" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 3\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "city" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The name of the city.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "state_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "state" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The state/province name.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "country" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "zip" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                      "maxLength" : 20,
                      "example" : null
                    },
                    "validation_status" : {
                      "type" : "string",
                      "default" : "not_validated",
                      "deprecated" : false,
                      "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* invalid -\n\nAddress is invalid.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n",
                      "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "contract_term" : {
                  "type" : "object",
                  "deprecated" : false,
                  "description" : "Represents the contract terms when the 'estimate' operations are invoked.\n",
                  "properties" : {
                    "id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Id that uniquely identifies the contract term in the site.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "status" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Current status of contract\n\\* active -\n\nAn actively running contract term.\n\\* completed -\n\nThe contract term has run its full duration.\n\\* cancelled -\n\nThe contract term was ended because: - a change in the subscription caused a [subscription term reset](/docs/api/v2/pcv-1/subscriptions/update-a-subscription#force_term_reset).\n\n* the subscription was cancelled due to non-payment.\n\n\\* terminated -\n\nThe contract term was terminated ahead of completion.\n",
                      "enum" : [ "active", "completed", "cancelled", "terminated" ],
                      "example" : null
                    },
                    "contract_start" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "The start date of the contract term\n",
                      "example" : null
                    },
                    "contract_end" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "The end date of the contract term\n",
                      "example" : null
                    },
                    "billing_cycle" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "The number of billing cycles of the subscription that the contract term is for.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "action_at_term_end" : {
                      "type" : "string",
                      "default" : "renew",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>",
                      "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                      "example" : null
                    },
                    "total_contract_value" : {
                      "type" : "integer",
                      "format" : "int64",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The sum of the <a href=\"/docs/api/invoices/invoice-object#total\">totals</a>\nof all the invoices raised as part of the contract term. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms, this is a predicted value. The value depends on the <a href=\"/docs/api/estimates\">type of currency</a>.\nIf the subscription was <a href=\"/docs/api/estimates/estimate-for-creating-a-subscription\">imported</a>\nwith the contract term, then this value includes the value passed for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised</code>\n.</p>",
                      "minimum" : 0,
                      "example" : null
                    },
                    "total_contract_value_before_tax" : {
                      "type" : "integer",
                      "format" : "int64",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">It refers to the total amount of revenue that is expected to be generated from a specific contract term, calculated as the sum of all invoices raised during the term, regardless of payment status. It is based on past performance and the specified currency in the contract. If the subscription was imported, the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised_before_tax</code>\nis included in the calculation of the total contract value before tax. It&#x27;s important to note that this value excludes any applicable taxes.</p>",
                      "minimum" : 0,
                      "example" : null
                    },
                    "cancellation_cutoff_period" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                      "example" : null
                    },
                    "created_at" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "The date when the contract term was created.\n",
                      "example" : null
                    },
                    "subscription_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The [Id](/docs/api/subscriptions/subscription-object#id)\nof the subscription that this contract term is for.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "remaining_billing_cycles" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The number of subscription billing cycles remaining after the current one for the contract term. This attribute is only returned for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms.</p>",
                      "minimum" : 0,
                      "example" : null
                    }
                  },
                  "required" : [ "action_at_term_end", "billing_cycle", "contract_end", "contract_start", "created_at", "id", "status", "subscription_id", "total_contract_value", "total_contract_value_before_tax" ],
                  "example" : null
                }
              },
              "required" : [ "currency_code" ],
              "example" : null
            },
            "example" : null
          },
          "invoice_estimate" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Represents the preview of the invoice generated immediately when the 'estimate' operations are invoked.\n",
            "properties" : {
              "recurring" : {
                "type" : "boolean",
                "default" : true,
                "deprecated" : false,
                "description" : "Whether or not the estimate for the invoice is recurring. Will be 'true' or 'false' for subscription related estimates.\n",
                "example" : null
              },
              "price_type" : {
                "type" : "string",
                "default" : "tax_exclusive",
                "deprecated" : false,
                "description" : "The price type of this invoice.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "example" : null
              },
              "currency_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The currency code (ISO 4217 format) of the invoice.\n",
                "maxLength" : 3,
                "example" : null
              },
              "sub_total" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "Invoice sub-total in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "total" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "Invoice total in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "credits_applied" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "credits applied to this invoice in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "amount_paid" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "Existing outstanding payments if any, applied to this invoice in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "amount_due" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "Invoice amount due in cents\n",
                "minimum" : 0,
                "example" : null
              },
              "line_items" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The details of the line items in this invoice estimate.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Line items that meet <strong class=\"font-semibold\">both</strong> the following conditions are <strong class=\"font-semibold\">not</strong> returned:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The line item belongs to an item price whose parent item is <code><a href=\"/docs/api/items/item-object#metered\">metered</a></code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item.amount</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>.</li>\n</ul></div>",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Uniquely identifies a line_item\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "subscription_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "A unique identifier for the subscription this line item belongs to.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "date_from" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "Start date of this line item.\n",
                      "example" : null
                    },
                    "date_to" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "End date of this line item.\n",
                      "example" : null
                    },
                    "unit_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Unit amount of the line item.\n",
                      "example" : null
                    },
                    "quantity" : {
                      "type" : "integer",
                      "format" : "int32",
                      "default" : 1,
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a>\nwhich is represented by this line item. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nline items, this value is updated from <a href=\"/docs/api/usages\">usages</a>\nonce when the invoice is generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\nand finally when the invoice is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>\n.</p>",
                      "example" : null
                    },
                    "amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                      "example" : null
                    },
                    "pricing_model" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n",
                      "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                      "example" : null
                    },
                    "is_taxed" : {
                      "type" : "boolean",
                      "default" : false,
                      "deprecated" : false,
                      "description" : "Specifies whether this line item is taxed or not\n",
                      "example" : null
                    },
                    "tax_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "The tax amount charged for this item\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "tax_rate" : {
                      "type" : "number",
                      "format" : "double",
                      "deprecated" : false,
                      "description" : "Rate of tax used to calculate tax for this lineitem\n",
                      "maximum" : 100,
                      "minimum" : 0,
                      "example" : null
                    },
                    "unit_amount_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 39,
                      "example" : null
                    },
                    "quantity_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "amount_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 39,
                      "example" : null
                    },
                    "discount_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Total discounts for this line\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "item_level_discount_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Line Item-level discounts for this line.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "metered" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "description" : "Specifies whether this line item belongs to a [metered item](/docs/api/items#metered).\n",
                      "example" : null
                    },
                    "is_percentage_pricing" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "example" : null
                    },
                    "reference_line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Invoice Reference Line Item ID\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Detailed description about this line item.\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "entity_description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Detailed description about this item.\n",
                      "maxLength" : 500,
                      "example" : null
                    },
                    "entity_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Specifies the modelled entity this line item is based on.\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n",
                      "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                      "example" : null
                    },
                    "tax_exempt_reason" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* zero_value_item - <p class=\"mb-2\">If the total invoice value/amount is equal to zero. E.g., If the total order value is $10 and a $10 coupon has been applied against that order, the total order value becomes $0. Hence the invoice value also becomes $0.</p>\n* tax_not_configured_external_provider - <p class=\"mb-2\">If the tax is not configured for the country in 3rd party tax provider.</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>",
                      "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                      "example" : null
                    },
                    "entity_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "customer_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "A unique identifier for the customer this line item belongs to\n",
                      "maxLength" : 100,
                      "example" : null
                    }
                  },
                  "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_tiers" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of tiers applicable for this line item\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Uniquely identifies a line_item\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "starting_unit" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "The lower limit of a range of units for the tier\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "ending_unit" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "The upper limit of a range of units for the tier\n",
                      "example" : null
                    },
                    "quantity_used" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "The number of units purchased in a range.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "unit_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                      "minimum" : 0,
                      "example" : null
                    },
                    "starting_unit_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "ending_unit_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "quantity_used_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "unit_amount_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "pricing_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>",
                      "enum" : [ "per_unit", "flat_fee", "package" ],
                      "example" : null
                    },
                    "package_size" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                      "minimum" : 1,
                      "example" : null
                    }
                  },
                  "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_discounts" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of discount(s) applied for each line item of this invoice.\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique id of the line item that this deduction is for.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "discount_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>",
                      "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                      "example" : null
                    },
                    "coupon_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "entity_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "discount_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                      "minimum" : 0,
                      "example" : null
                    }
                  },
                  "required" : [ "discount_amount", "discount_type", "line_item_id" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_taxes" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of taxes applied on line items\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique reference id of the line item for which the tax is applicable\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "tax_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The name of the tax applied\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "tax_rate" : {
                      "type" : "number",
                      "format" : "double",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "The rate of tax used to calculate tax amount\n",
                      "maximum" : 100,
                      "minimum" : 0,
                      "example" : null
                    },
                    "date_to" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "Indicates the service period end of the tax rate for the line item.\n",
                      "example" : null
                    },
                    "date_from" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "Indicates the service period start of the tax rate for the line item.\n",
                      "example" : null
                    },
                    "prorated_taxable_amount" : {
                      "type" : "number",
                      "format" : "decimal",
                      "deprecated" : false,
                      "description" : "Indicates the prorated line item amount in cents.\n",
                      "maximum" : 1000000000,
                      "minimum" : -1000000000,
                      "example" : null
                    },
                    "is_partial_tax_applied" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                      "example" : null
                    },
                    "is_non_compliance_tax" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                      "example" : null
                    },
                    "taxable_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "tax_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The tax amount\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "tax_juris_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The type of tax jurisdiction\n\\* city -\n\nThe tax jurisdiction is a city\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* state -\n\nThe tax jurisdiction is a state\n\\* special -\n\nSpecial tax jurisdiction.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* county -\n\nThe tax jurisdiction is a county\n\\* country -\n\nThe tax jurisdiction is a country\n\\* other -\n\nJurisdictions other than the ones listed above.\n",
                      "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                      "example" : null
                    },
                    "tax_juris_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The name of the tax jurisdiction\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "tax_juris_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The tax jurisdiction code\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "tax_amount_in_local_currency" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "local_currency_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                      "maxLength" : 3,
                      "example" : null
                    }
                  },
                  "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_credits" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "A list of store credits applied to line items.\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "cn_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique ID of the credit note from which the credit is applied.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "applied_amount" : {
                      "type" : "number",
                      "format" : "double",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "The credit amount is applied to the line item.\n",
                      "example" : null
                    },
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique ID of the line item to which this credit is applied.\n",
                      "maxLength" : 40,
                      "example" : null
                    }
                  },
                  "required" : [ "applied_amount", "cn_id" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_addresses" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of addresses used for tax calculation on line items.\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Line item reference\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "first_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "First name of the customer\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "last_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Last name of the customer\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "email" : {
                      "type" : "string",
                      "format" : "email",
                      "deprecated" : false,
                      "description" : "Email of the customer\n",
                      "maxLength" : 70,
                      "example" : null
                    },
                    "company" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Name of the company\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "phone" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Phone number of the customer\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "line1" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 1\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "line2" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 2\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "line3" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 3\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "city" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Name of the city\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "state_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "state" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "State or Province\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "country" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The billing address of the customer, specified as an [ISO 3166 alpha-2 code](https://www.iso.org/iso-3166-country-codes.html).\nEntering an invalid code will return an error.  \nIf [EU VAT](https://www.chargebee.com/docs/eu-vat.html) (2021 or later) or [Brexit configuration](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) is enabled, 'United Kingdom-Northern Ireland' is a valid option.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "zip" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                      "maxLength" : 20,
                      "example" : null
                    },
                    "validation_status" : {
                      "type" : "string",
                      "default" : "not_validated",
                      "deprecated" : false,
                      "description" : "The address verification status.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n",
                      "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "example" : null
              },
              "discounts" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of discounts applied to this estimate\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Description for this deduction.\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "entity_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>",
                      "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                      "example" : null
                    },
                    "discount_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>",
                      "enum" : [ "fixed_amount", "percentage" ],
                      "example" : null
                    },
                    "entity_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "coupon_set_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                      "maxLength" : 50,
                      "example" : null
                    }
                  },
                  "required" : [ "amount", "entity_type" ],
                  "example" : null
                },
                "example" : null
              },
              "taxes" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of taxes applied to this estimate\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The name of the tax applied. E.g. GST.\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The tax amount.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Description of the tax item.\n",
                      "maxLength" : 250,
                      "example" : null
                    }
                  },
                  "required" : [ "amount", "name" ],
                  "example" : null
                },
                "example" : null
              },
              "round_off_amount" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Indicates the rounded-off amount. For example, if your invoice amount is $99.99, and the amount is rounded off to $100.00, in this case, $100.00 is your invoice amount, $0.01 is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.\nIf there is no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round-off amount</code>\n, it will display <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\n.</p>",
                "minimum" : 0,
                "example" : null
              },
              "customer_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A unique identifier for the customer this invoice belongs to\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "currency_code", "price_type", "recurring", "sub_total" ],
            "example" : null
          },
          "invoice_estimates" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Is a list of estimated invoices i.e., an array of *invoice_estimate*\nobjects. It is generated when 'Create an estimate for unbilled charges' operation is invoked\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "recurring" : {
                  "type" : "boolean",
                  "default" : true,
                  "deprecated" : false,
                  "description" : "Whether or not the estimate for the invoice is recurring. Will be 'true' or 'false' for subscription related estimates.\n",
                  "example" : null
                },
                "price_type" : {
                  "type" : "string",
                  "default" : "tax_exclusive",
                  "deprecated" : false,
                  "description" : "The price type of this invoice.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n",
                  "enum" : [ "tax_exclusive", "tax_inclusive" ],
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the invoice.\n",
                  "maxLength" : 3,
                  "example" : null
                },
                "sub_total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Invoice sub-total in cents.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Invoice total in cents.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "credits_applied" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "credits applied to this invoice in cents.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_paid" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Existing outstanding payments if any, applied to this invoice in cents.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_due" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Invoice amount due in cents\n",
                  "minimum" : 0,
                  "example" : null
                },
                "line_items" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The details of the line items in this invoice estimate.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Line items that meet <strong class=\"font-semibold\">both</strong> the following conditions are <strong class=\"font-semibold\">not</strong> returned:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The line item belongs to an item price whose parent item is <code><a href=\"/docs/api/items/item-object#metered\">metered</a></code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item.amount</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>.</li>\n</ul></div>",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Uniquely identifies a line_item\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique identifier for the subscription this line item belongs to.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Start date of this line item.\n",
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "End date of this line item.\n",
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Unit amount of the line item.\n",
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 1,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a>\nwhich is represented by this line item. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nline items, this value is updated from <a href=\"/docs/api/usages\">usages</a>\nonce when the invoice is generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\nand finally when the invoice is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>\n.</p>",
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                        "example" : null
                      },
                      "pricing_model" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n",
                        "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                        "example" : null
                      },
                      "is_taxed" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Specifies whether this line item is taxed or not\n",
                        "example" : null
                      },
                      "tax_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "The tax amount charged for this item\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "tax_rate" : {
                        "type" : "number",
                        "format" : "double",
                        "deprecated" : false,
                        "description" : "Rate of tax used to calculate tax for this lineitem\n",
                        "maximum" : 100,
                        "minimum" : 0,
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 39,
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 39,
                        "example" : null
                      },
                      "discount_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Total discounts for this line\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "item_level_discount_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Line Item-level discounts for this line.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "metered" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "example" : null
                      },
                      "is_percentage_pricing" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "example" : null
                      },
                      "reference_line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Invoice Reference Line Item ID\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Detailed description about this line item.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "entity_description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Detailed description about this item.\n",
                        "maxLength" : 500,
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Specifies the modelled entity this line item is based on.\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n",
                        "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                        "example" : null
                      },
                      "tax_exempt_reason" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* tax_not_configured_external_provider - <p class=\"mb-2\">If the tax is not configured for the country in 3rd party tax provider.</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>\n* zero_value_item - <p class=\"mb-2\">If the total invoice value/amount is equal to zero. E.g., If the total order value is $10 and a $10 coupon has been applied against that order, the total order value becomes $0. Hence the invoice value also becomes $0.</p>",
                        "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique identifier for the customer this line item belongs to\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_tiers" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of tiers applicable for this line item\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Uniquely identifies a line_item\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The lower limit of a range of units for the tier\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The upper limit of a range of units for the tier\n",
                        "example" : null
                      },
                      "quantity_used" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The number of units purchased in a range.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "quantity_used_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                        "enum" : [ "per_unit", "flat_fee", "package" ],
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_discounts" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of discount(s) applied for each line item of this invoice.\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique id of the line item that this deduction is for.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "discount_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>",
                        "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                        "example" : null
                      },
                      "coupon_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 50,
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "discount_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                        "minimum" : 0,
                        "example" : null
                      }
                    },
                    "required" : [ "discount_amount", "discount_type", "line_item_id" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_taxes" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of taxes applied on line items\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique reference id of the line item for which the tax is applicable\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "tax_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the tax applied\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "tax_rate" : {
                        "type" : "number",
                        "format" : "double",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "The rate of tax used to calculate tax amount\n",
                        "maximum" : 100,
                        "minimum" : 0,
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates the service period end of the tax rate for the line item.\n",
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates the service period start of the tax rate for the line item.\n",
                        "example" : null
                      },
                      "prorated_taxable_amount" : {
                        "type" : "number",
                        "format" : "decimal",
                        "deprecated" : false,
                        "description" : "Indicates the prorated line item amount in cents.\n",
                        "maximum" : 1000000000,
                        "minimum" : -1000000000,
                        "example" : null
                      },
                      "is_partial_tax_applied" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                        "example" : null
                      },
                      "is_non_compliance_tax" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                        "example" : null
                      },
                      "taxable_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "tax_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The tax amount\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "tax_juris_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of tax jurisdiction\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* country -\n\nThe tax jurisdiction is a country\n\\* other -\n\nJurisdictions other than the ones listed above.\n\\* special -\n\nSpecial tax jurisdiction.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* city -\n\nThe tax jurisdiction is a city\n\\* county -\n\nThe tax jurisdiction is a county\n\\* state -\n\nThe tax jurisdiction is a state\n",
                        "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                        "example" : null
                      },
                      "tax_juris_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the tax jurisdiction\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "tax_juris_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The tax jurisdiction code\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "tax_amount_in_local_currency" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "local_currency_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                        "maxLength" : 3,
                        "example" : null
                      }
                    },
                    "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_credits" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "A list of store credits applied to line items.\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "cn_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique ID of the credit note from which the credit is applied.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "applied_amount" : {
                        "type" : "number",
                        "format" : "double",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "The credit amount is applied to the line item.\n",
                        "example" : null
                      },
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique ID of the line item to which this credit is applied.\n",
                        "maxLength" : 40,
                        "example" : null
                      }
                    },
                    "required" : [ "applied_amount", "cn_id" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_addresses" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of addresses used for tax calculation on line items.\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Line item reference\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "first_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "First name of the customer\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "last_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Last name of the customer\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "email" : {
                        "type" : "string",
                        "format" : "email",
                        "deprecated" : false,
                        "description" : "Email of the customer\n",
                        "maxLength" : 70,
                        "example" : null
                      },
                      "company" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Name of the company\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "phone" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Phone number of the customer\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "line1" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 1\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line2" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 2\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "line3" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Address line 3\n",
                        "maxLength" : 150,
                        "example" : null
                      },
                      "city" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Name of the city\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "state" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "State or Province\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "country" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The billing address of the customer, specified as an [ISO 3166 alpha-2 code](https://www.iso.org/iso-3166-country-codes.html).\nEntering an invalid code will return an error.  \nIf [EU VAT](https://www.chargebee.com/docs/eu-vat.html) (2021 or later) or [Brexit configuration](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) is enabled, 'United Kingdom-Northern Ireland' is a valid option.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "zip" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                        "maxLength" : 20,
                        "example" : null
                      },
                      "validation_status" : {
                        "type" : "string",
                        "default" : "not_validated",
                        "deprecated" : false,
                        "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                        "example" : null
                      }
                    },
                    "example" : null
                  },
                  "example" : null
                },
                "discounts" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of discounts applied to this estimate\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Description for this deduction.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                        "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                        "example" : null
                      },
                      "discount_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>",
                        "enum" : [ "fixed_amount", "percentage" ],
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "coupon_set_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "entity_type" ],
                    "example" : null
                  },
                  "example" : null
                },
                "taxes" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of taxes applied to this estimate\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the tax applied. E.g. GST.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The tax amount.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Description of the tax item.\n",
                        "maxLength" : 250,
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "name" ],
                    "example" : null
                  },
                  "example" : null
                },
                "round_off_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates the rounded-off amount. For example, if your invoice amount is $99.99, and the amount is rounded off to $100.00, in this case, $100.00 is your invoice amount, $0.01 is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.\nIf there is no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round-off amount</code>\n, it will display <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the customer this invoice belongs to\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "currency_code", "price_type", "recurring", "sub_total" ],
              "example" : null
            },
            "example" : null
          },
          "payment_schedule_estimates" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule_estimate</code>\nis used to hold the details related   to payment schedules for an invoice. It will contain a list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedules</code>\nresources.</p>\n<span featureId=\"cb-payment-schedules\" isMicro=\"true\"></span>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An auto-generated unique identifier for the payment schedule.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "scheme_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule_scheme</code>\n, used to create the payment schedules.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the modeled entity that the payment schedule is based on.\n\\* invoice -\n\nRepresents an invoice.\n",
                  "enum" : [ "invoice" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the modeled entity that this payment schedule is based on.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "An amount that this payment schedule is able to collect.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the transaction amount.\n",
                  "maxLength" : 3,
                  "example" : null
                },
                "schedule_entries" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "List of schedule entries\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "An auto-generated unique identifier for the payment schedule.\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "date" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "The date when this payment schedule is scheduled.\n",
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The total maximum amount that this payment schedule is allowed to collect.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "status" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Defines the status of each payment schedule.\n\\* paid -\n\nIndicates that the payment has been made.\n\\* posted -\n\nIndicates that the payment is posted.\n\\* payment_due -\n\nIndicates that the payment is due.\n",
                        "enum" : [ "posted", "payment_due", "paid" ],
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "date", "id", "status" ],
                    "example" : null
                  },
                  "example" : null
                }
              },
              "required" : [ "amount", "entity_type", "id", "scheme_id" ],
              "example" : null
            },
            "example" : null
          },
          "next_invoice_estimate" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Represents the preview of the invoice generated at term end when the 'estimate' operations are invoked.\n",
            "properties" : {
              "recurring" : {
                "type" : "boolean",
                "default" : true,
                "deprecated" : false,
                "description" : "Whether or not the estimate for the invoice is recurring. Will be 'true' or 'false' for subscription related estimates.\n",
                "example" : null
              },
              "price_type" : {
                "type" : "string",
                "default" : "tax_exclusive",
                "deprecated" : false,
                "description" : "The price type of this invoice.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n",
                "enum" : [ "tax_exclusive", "tax_inclusive" ],
                "example" : null
              },
              "currency_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The currency code (ISO 4217 format) of the invoice.\n",
                "maxLength" : 3,
                "example" : null
              },
              "sub_total" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "Invoice sub-total in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "total" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "Invoice total in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "credits_applied" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "credits applied to this invoice in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "amount_paid" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "Existing outstanding payments if any, applied to this invoice in cents.\n",
                "minimum" : 0,
                "example" : null
              },
              "amount_due" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "Invoice amount due in cents\n",
                "minimum" : 0,
                "example" : null
              },
              "line_items" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The details of the line items in this invoice estimate.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Line items that meet <strong class=\"font-semibold\">both</strong> the following conditions are <strong class=\"font-semibold\">not</strong> returned:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The line item belongs to an item price whose parent item is <code><a href=\"/docs/api/items/item-object#metered\">metered</a></code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item.amount</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>.</li>\n</ul></div>",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Uniquely identifies a line_item\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "subscription_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "A unique identifier for the subscription this line item belongs to.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "date_from" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "Start date of this line item.\n",
                      "example" : null
                    },
                    "date_to" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "End date of this line item.\n",
                      "example" : null
                    },
                    "unit_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Unit amount of the line item.\n",
                      "example" : null
                    },
                    "quantity" : {
                      "type" : "integer",
                      "format" : "int32",
                      "default" : 1,
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a>\nwhich is represented by this line item. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nline items, this value is updated from <a href=\"/docs/api/usages\">usages</a>\nonce when the invoice is generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\nand finally when the invoice is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>\n.</p>",
                      "example" : null
                    },
                    "amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                      "example" : null
                    },
                    "pricing_model" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n",
                      "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                      "example" : null
                    },
                    "is_taxed" : {
                      "type" : "boolean",
                      "default" : false,
                      "deprecated" : false,
                      "description" : "Specifies whether this line item is taxed or not\n",
                      "example" : null
                    },
                    "tax_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "The tax amount charged for this item\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "tax_rate" : {
                      "type" : "number",
                      "format" : "double",
                      "deprecated" : false,
                      "description" : "Rate of tax used to calculate tax for this lineitem\n",
                      "maximum" : 100,
                      "minimum" : 0,
                      "example" : null
                    },
                    "unit_amount_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 39,
                      "example" : null
                    },
                    "quantity_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "amount_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 39,
                      "example" : null
                    },
                    "discount_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Total discounts for this line\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "item_level_discount_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Line Item-level discounts for this line.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "metered" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "example" : null
                    },
                    "is_percentage_pricing" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "example" : null
                    },
                    "reference_line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Invoice Reference Line Item ID\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Detailed description about this line item.\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "entity_description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Detailed description about this item.\n",
                      "maxLength" : 500,
                      "example" : null
                    },
                    "entity_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Specifies the modelled entity this line item is based on.\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n",
                      "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                      "example" : null
                    },
                    "tax_exempt_reason" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* zero_value_item - <p class=\"mb-2\">If the total invoice value/amount is equal to zero. E.g., If the total order value is $10 and a $10 coupon has been applied against that order, the total order value becomes $0. Hence the invoice value also becomes $0.</p>\n* tax_not_configured_external_provider - <p class=\"mb-2\">If the tax is not configured for the country in 3rd party tax provider.</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>",
                      "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                      "example" : null
                    },
                    "entity_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "customer_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "A unique identifier for the customer this line item belongs to\n",
                      "maxLength" : 100,
                      "example" : null
                    }
                  },
                  "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_tiers" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of tiers applicable for this line item\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Uniquely identifies a line_item\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "starting_unit" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "The lower limit of a range of units for the tier\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "ending_unit" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "The upper limit of a range of units for the tier\n",
                      "example" : null
                    },
                    "quantity_used" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "The number of units purchased in a range.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "unit_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                      "minimum" : 0,
                      "example" : null
                    },
                    "starting_unit_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "ending_unit_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "quantity_used_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 33,
                      "example" : null
                    },
                    "unit_amount_in_decimal" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "pricing_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>",
                      "enum" : [ "per_unit", "flat_fee", "package" ],
                      "example" : null
                    },
                    "package_size" : {
                      "type" : "integer",
                      "format" : "int32",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                      "minimum" : 1,
                      "example" : null
                    }
                  },
                  "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_discounts" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of discount(s) applied for each line item of this invoice.\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique id of the line item that this deduction is for.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "discount_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                      "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                      "example" : null
                    },
                    "coupon_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "entity_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "discount_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                      "minimum" : 0,
                      "example" : null
                    }
                  },
                  "required" : [ "discount_amount", "discount_type", "line_item_id" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_taxes" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of taxes applied on line items\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique reference id of the line item for which the tax is applicable\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "tax_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The name of the tax applied\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "tax_rate" : {
                      "type" : "number",
                      "format" : "double",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "The rate of tax used to calculate tax amount\n",
                      "maximum" : 100,
                      "minimum" : 0,
                      "example" : null
                    },
                    "date_to" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "Indicates the service period end of the tax rate for the line item.\n",
                      "example" : null
                    },
                    "date_from" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "Indicates the service period start of the tax rate for the line item.\n",
                      "example" : null
                    },
                    "prorated_taxable_amount" : {
                      "type" : "number",
                      "format" : "decimal",
                      "deprecated" : false,
                      "description" : "Indicates the prorated line item amount in cents.\n",
                      "maximum" : 1000000000,
                      "minimum" : -1000000000,
                      "example" : null
                    },
                    "is_partial_tax_applied" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                      "example" : null
                    },
                    "is_non_compliance_tax" : {
                      "type" : "boolean",
                      "deprecated" : false,
                      "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                      "example" : null
                    },
                    "taxable_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "tax_amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The tax amount\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "tax_juris_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The type of tax jurisdiction\n\\* state -\n\nThe tax jurisdiction is a state\n\\* county -\n\nThe tax jurisdiction is a county\n\\* special -\n\nSpecial tax jurisdiction.\n\\* country -\n\nThe tax jurisdiction is a country\n\\* other -\n\nJurisdictions other than the ones listed above.\n\\* city -\n\nThe tax jurisdiction is a city\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* unincorporated -\n\nCombined tax of state and county.\n",
                      "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                      "example" : null
                    },
                    "tax_juris_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The name of the tax jurisdiction\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "tax_juris_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The tax jurisdiction code\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "tax_amount_in_local_currency" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "local_currency_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                      "maxLength" : 3,
                      "example" : null
                    }
                  },
                  "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_credits" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "A list of store credits applied to line items.\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "cn_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique ID of the credit note from which this credit is applied.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "applied_amount" : {
                      "type" : "number",
                      "format" : "double",
                      "default" : 0,
                      "deprecated" : false,
                      "description" : "The credit amount is applied to the line item.\n",
                      "example" : null
                    },
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The unique ID of the line item to which this credit is applied.\n",
                      "maxLength" : 40,
                      "example" : null
                    }
                  },
                  "required" : [ "applied_amount", "cn_id" ],
                  "example" : null
                },
                "example" : null
              },
              "line_item_addresses" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of addresses used for tax calculation on line items.\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Line item reference\n",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "first_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "First name of the customer\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "last_name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Last name of the customer\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "email" : {
                      "type" : "string",
                      "format" : "email",
                      "deprecated" : false,
                      "description" : "Email of the customer\n",
                      "maxLength" : 70,
                      "example" : null
                    },
                    "company" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Name of the company\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "phone" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Phone number of the customer\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "line1" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 1\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "line2" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 2\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "line3" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Address line 3\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "city" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Name of the city\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "state_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "state" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "State or Province\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "country" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The billing address of the customer, specified as an [ISO 3166 alpha-2 code](https://www.iso.org/iso-3166-country-codes.html).\nEntering an invalid code will return an error.  \nIf [EU VAT](https://www.chargebee.com/docs/eu-vat.html) (2021 or later) or [Brexit configuration](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) is enabled, 'United Kingdom-Northern Ireland' is a valid option.\n",
                      "maxLength" : 50,
                      "example" : null
                    },
                    "zip" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                      "maxLength" : 20,
                      "example" : null
                    },
                    "validation_status" : {
                      "type" : "string",
                      "default" : "not_validated",
                      "deprecated" : false,
                      "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n\\* invalid -\n\nAddress is invalid.\n",
                      "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "example" : null
              },
              "discounts" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of discounts applied to this estimate\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Description for this deduction.\n",
                      "maxLength" : 250,
                      "example" : null
                    },
                    "line_item_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                      "maxLength" : 40,
                      "example" : null
                    },
                    "entity_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                      "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                      "example" : null
                    },
                    "discount_type" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>",
                      "enum" : [ "fixed_amount", "percentage" ],
                      "example" : null
                    },
                    "entity_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "coupon_set_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                      "maxLength" : 50,
                      "example" : null
                    }
                  },
                  "required" : [ "amount", "entity_type" ],
                  "example" : null
                },
                "example" : null
              },
              "taxes" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "The list of taxes applied to this estimate\n",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The name of the tax applied. E.g. GST.\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "amount" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "The tax amount.\n",
                      "minimum" : 0,
                      "example" : null
                    },
                    "description" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Description of the tax item.\n",
                      "maxLength" : 250,
                      "example" : null
                    }
                  },
                  "required" : [ "amount", "name" ],
                  "example" : null
                },
                "example" : null
              },
              "round_off_amount" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Indicates the rounded-off amount. For example, if your invoice amount is $99.99, and the amount is rounded off to $100.00, in this case, $100.00 is your invoice amount, $0.01 is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.\nIf there is no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round-off amount</code>\n, it will display <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\n.</p>",
                "minimum" : 0,
                "example" : null
              },
              "customer_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A unique identifier for the customer this invoice belongs to\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "currency_code", "price_type", "recurring", "sub_total" ],
            "example" : null
          },
          "credit_note_estimates" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Represents the preview of the credit-notes generated during 'estimate' operation. Currently applicable only for the 'Update Subscription Estimate' operation.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "reference_invoice_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The reference invoice id\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note types. [Learn more](/docs/api/credit_notes/credit-note-object)\nabout credit note types.\n\\* refundable -\n\nRefundable Credit Note\n\\* adjustment -\n\nAdjustment Credit Note\n\\* store -\n\nStore Credit Note\n",
                  "enum" : [ "adjustment", "refundable", "store" ],
                  "example" : null
                },
                "price_type" : {
                  "type" : "string",
                  "default" : "tax_exclusive",
                  "deprecated" : false,
                  "description" : "The price type of this credit note.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n",
                  "enum" : [ "tax_exclusive", "tax_inclusive" ],
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the credit note.\n",
                  "maxLength" : 3,
                  "example" : null
                },
                "sub_total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Invoice sub-total in cents.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Credit note total in cents.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_allocated" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Allocated credits in cents.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_available" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Remaining credits in cents\n",
                  "minimum" : 0,
                  "example" : null
                },
                "line_items" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of items in this estimate\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Uniquely identifies a line_item\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "subscription_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique identifier for the subscription this line item belongs to.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Start date of this line item.\n",
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "End date of this line item.\n",
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Unit amount of the line item.\n",
                        "example" : null
                      },
                      "quantity" : {
                        "type" : "integer",
                        "format" : "int32",
                        "default" : 1,
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a>\nwhich is represented by this line item. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nline items, this value is updated from <a href=\"/docs/api/usages\">usages</a>\nonce when the invoice is generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\nand finally when the invoice is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>\n.</p>",
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                        "example" : null
                      },
                      "pricing_model" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n",
                        "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                        "example" : null
                      },
                      "is_taxed" : {
                        "type" : "boolean",
                        "default" : false,
                        "deprecated" : false,
                        "description" : "Specifies whether this line item is taxed or not\n",
                        "example" : null
                      },
                      "tax_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "The tax amount charged for this item\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "tax_rate" : {
                        "type" : "number",
                        "format" : "double",
                        "deprecated" : false,
                        "description" : "Rate of tax used to calculate tax for this lineitem\n",
                        "maximum" : 100,
                        "minimum" : 0,
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 39,
                        "example" : null
                      },
                      "quantity_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "amount_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 39,
                        "example" : null
                      },
                      "discount_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Total discounts for this line\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "item_level_discount_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Line Item-level discounts for this line.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "metered" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "example" : null
                      },
                      "is_percentage_pricing" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "example" : null
                      },
                      "reference_line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Invoice Reference Line Item ID\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Detailed description about this line item.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "entity_description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Detailed description about this item.\n",
                        "maxLength" : 500,
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Specifies the modelled entity this line item is based on.\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n",
                        "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                        "example" : null
                      },
                      "tax_exempt_reason" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* zero_value_item - <p class=\"mb-2\">If the total invoice value/amount is equal to zero. E.g., If the total order value is $10 and a $10 coupon has been applied against that order, the total order value becomes $0. Hence the invoice value also becomes $0.</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* tax_not_configured_external_provider - <p class=\"mb-2\">If the tax is not configured for the country in 3rd party tax provider.</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>",
                        "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "customer_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "A unique identifier for the customer this line item belongs to\n",
                        "maxLength" : 100,
                        "example" : null
                      }
                    },
                    "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_tiers" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of tiers applicable for this line item\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Uniquely identifies a line_item\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The lower limit of a range of units for the tier\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The upper limit of a range of units for the tier\n",
                        "example" : null
                      },
                      "quantity_used" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The number of units purchased in a range.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "quantity_used_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>",
                        "enum" : [ "per_unit", "flat_fee", "package" ],
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_discounts" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of discount(s) applied for each line item of this invoice.\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique id of the line item that this deduction is for.\n",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "discount_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                        "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                        "example" : null
                      },
                      "coupon_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 50,
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                        "maxLength" : 50,
                        "example" : null
                      },
                      "discount_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                        "minimum" : 0,
                        "example" : null
                      }
                    },
                    "required" : [ "discount_amount", "discount_type", "line_item_id" ],
                    "example" : null
                  },
                  "example" : null
                },
                "line_item_taxes" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of taxes applied on line items\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The unique reference id of the line item for which the tax is applicable\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "tax_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the tax applied\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "tax_rate" : {
                        "type" : "number",
                        "format" : "double",
                        "default" : 0,
                        "deprecated" : false,
                        "description" : "The rate of tax used to calculate tax amount\n",
                        "maximum" : 100,
                        "minimum" : 0,
                        "example" : null
                      },
                      "date_to" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates the service period end of the tax rate for the line item.\n",
                        "example" : null
                      },
                      "date_from" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Indicates the service period start of the tax rate for the line item.\n",
                        "example" : null
                      },
                      "prorated_taxable_amount" : {
                        "type" : "number",
                        "format" : "decimal",
                        "deprecated" : false,
                        "description" : "Indicates the prorated line item amount in cents.\n",
                        "maximum" : 1000000000,
                        "minimum" : -1000000000,
                        "example" : null
                      },
                      "is_partial_tax_applied" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                        "example" : null
                      },
                      "is_non_compliance_tax" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                        "example" : null
                      },
                      "taxable_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "tax_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The tax amount\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "tax_juris_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The type of tax jurisdiction\n\\* county -\n\nThe tax jurisdiction is a county\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* city -\n\nThe tax jurisdiction is a city\n\\* state -\n\nThe tax jurisdiction is a state\n\\* country -\n\nThe tax jurisdiction is a country\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* other -\n\nJurisdictions other than the ones listed above.\n\\* special -\n\nSpecial tax jurisdiction.\n",
                        "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                        "example" : null
                      },
                      "tax_juris_name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the tax jurisdiction\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "tax_juris_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The tax jurisdiction code\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "tax_amount_in_local_currency" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "local_currency_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                        "maxLength" : 3,
                        "example" : null
                      }
                    },
                    "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
                    "example" : null
                  },
                  "example" : null
                },
                "discounts" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of discounts applied to this estimate\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Description for this deduction.\n",
                        "maxLength" : 250,
                        "example" : null
                      },
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "entity_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                        "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                        "example" : null
                      },
                      "discount_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>",
                        "enum" : [ "fixed_amount", "percentage" ],
                        "example" : null
                      },
                      "entity_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "coupon_set_code" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                        "maxLength" : 50,
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "entity_type" ],
                    "example" : null
                  },
                  "example" : null
                },
                "taxes" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of taxes applied to this estimate\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "The name of the tax applied. E.g. GST.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "The tax amount.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "description" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Description of the tax item.\n",
                        "maxLength" : 250,
                        "example" : null
                      }
                    },
                    "required" : [ "amount", "name" ],
                    "example" : null
                  },
                  "example" : null
                },
                "round_off_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates the rounded-off amount. For example, if your invoice amount is $99.99, and the amount is rounded off to $100.00, in this case, $100.00 is your invoice amount, $0.01 is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.\nIf there is no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round-off amount</code>\n, it will display <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the customer this credit note belongs to\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "amount_allocated", "amount_available", "currency_code", "price_type", "reference_invoice_id", "sub_total", "total", "type" ],
              "example" : null
            },
            "example" : null
          },
          "unbilled_charge_estimates" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Represents the preview of the unbilled charges generated during 'estimate' operation. Currently not applicable for the 'Subscription renewal estimate' operation.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies an unbilled charge.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the customer being charged.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the subscription this charge belongs to.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Start date of this charge.\n",
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "End date of this charge.\n",
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Unit amount of the charge item.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "pricing_model" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The pricing scheme for this line item.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n",
                  "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Quantity of the item which is represented by this charge.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of this charge. Typically equals to unit amount x quantity.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) for the charge.\n",
                  "maxLength" : 3,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total discounts for this charge.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this charge.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the modelled entity this line item is based on.\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n",
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the modelled entity this charge is based on. Will be null for 'adhoc' entity type.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "is_voided" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Will be true if the charge has been voided. Usually the unbilled charge will be voided and revised to different charges(s) during proration.\n",
                  "example" : null
                },
                "voided_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating the date and time this charge got voided.\n",
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the amount for the charge, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the quantity of this entity. Returned when the entity is quantity-based and [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                  "maxLength" : 33,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the unit amount for the entity. The value is in major units of the currency. Returned when the entity is quantity-based and [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "updated_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when the unbilled charge was last updated\n",
                  "example" : null
                },
                "tiers" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "The list of tiers applicable for this line item\n",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "line_item_id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Uniquely identifies a line_item\n",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "starting_unit" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The lower limit of a range of units for the tier\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "ending_unit" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The upper limit of a range of units for the tier\n",
                        "example" : null
                      },
                      "quantity_used" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "The number of units purchased in a range.\n",
                        "minimum" : 0,
                        "example" : null
                      },
                      "unit_amount" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                        "minimum" : 0,
                        "example" : null
                      },
                      "starting_unit_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "ending_unit_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "quantity_used_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 33,
                        "example" : null
                      },
                      "unit_amount_in_decimal" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "pricing_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                        "enum" : [ "per_unit", "flat_fee", "package" ],
                        "example" : null
                      },
                      "package_size" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                        "minimum" : 1,
                        "example" : null
                      }
                    },
                    "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
                    "example" : null
                  },
                  "example" : null
                },
                "is_advance_charge" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "The value of this parameter will be true if it is a recurring unbilled charge for a future term.\n",
                  "example" : null
                },
                "business_entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique ID of the\n[business entity](/docs/api/getting-started)\nof this subscription. This is always the same as the\n[business entity](/docs/api/subscriptions/subscription-object#customer_id)\nof the customer.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "deleted" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates that this resource has been deleted.\n",
                  "example" : null
                }
              },
              "required" : [ "currency_code", "deleted", "entity_type", "is_voided", "updated_at" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at" ],
        "example" : null
      },
      "Event" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><h3>Introduction</h3><p class=\"mb-2\">When important changes occur on your Chargebee site, they are recorded as events. An event contains data about the affected resources and metadata, such as the timestamp of the change. For example, when a subscription is canceled due to non-payment, an event such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_cancelled</code> is recorded.</p><h3>Webhooks</h3><p class=\"mb-2\">If webhooks are <a href=\"https://www.chargebee.com/docs/webhook_settings.html#configure-webhooks\" target=\"_blank\">configured</a> in Chargebee, events trigger those webhooks. If multiple webhooks are configured, Chargebee calls each webhook sequentially for every event. If a webhook call fails or times out, it is retried based on a <a href=\"https://www.chargebee.com/docs/webhook_settings.html#automatic-retries\" target=\"_blank\">fixed schedule</a>. The webhook call is an HTTP POST with the content type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">application/json</code>.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Caution:</strong>\nWebhooks are asynchronous and are not recommended for time-critical applications. Webhooks may arrive out of order or be delivered multiple times. For time-sensitive use cases, use the <a href=\"/docs/api/events/list-events\">List events API</a> to poll Chargebee for events.</p></div><h4>Retries and Duplicate Handling</h4><p class=\"mb-2\">To mark a webhook notification successful, the webhook must return an <a href=\"http://en.wikipedia.org/wiki/List_of_HTTP_status_codes\" target=\"_blank\">HTTP status code</a> in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2XX</code> range. If a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2XX</code> response is not received, Chargebee <a href=\"https://www.chargebee.com/docs/webhook_settings.html#automatic-retries\" target=\"_blank\">retries</a> the webhook call with increasing delays for up to 2 days. You can also <a href=\"https://www.chargebee.com/docs/webhook_settings.html#automatic-retries\" target=\"_blank\">resend</a> webhook calls manually from the web console.\nDue to webhook retries, it is possible that your application receives the same webhook more than once. Detect such duplicates within your application to ensure the idempotency of the webhook call. This can be done by examining the <a href=\"/docs/api/events/event-object#id\">id</a> parameter since its value uniquely identifies an event.\nFor example, your application can do the following for each webhook notification:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Get the event <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and keep it in a persistent store such as a relational database or redis.</li>\n<li class=\"text-base leading-relaxed\">Check whether the event <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> is already processed.</li>\n<li class=\"text-base leading-relaxed\">If the event has not been processed, process it; otherwise, it is a duplicate event, so it can be ignored.</li>\n<li class=\"text-base leading-relaxed\">Also, since the last retry for a webhook happens around 3 days and 7 hours after the original event trigger, keep the idempotency window at 3 days and 7 hours. In other words, you can purge stored event IDs that are older than 3 days and 7 hours.</li>\n</ol><h4>Out-of-order Delivery</h4><p class=\"mb-2\">Webhooks can also arrive at your application out-of-order. This can be due to issues such as network delays or webhook failures. However, you can order the events by examining the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code> attribute of the resource sent by the webhook. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code> is updated with a new timestamp in milliseconds.\nFor example, if you wish to sync resource changes from Chargebee to your application, you can:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Get the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">rv1</code> of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code> attribute from the resource in the webhook.</li>\n<li class=\"text-base leading-relaxed\">Get the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">rv2</code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code> from the resource stored on your side.</li>\n<li class=\"text-base leading-relaxed\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">rv1</code> &gt; <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">rv2</code>, process the resource; otherwise, ignore.</li>\n</ol><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">API Version</strong>\nChargebee supports multiple API versions now. The <a href=\"/docs/api/events/event-object#api_version\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_version</code></a> attribute indicates the API version based on which the event content is structured. While processing webhooks, ensure that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_version</code> is the same as the API version used by your webhook server&#x27;s client library.</p></div><h4>Securing Your Webhook URL</h4><p class=\"mb-2\">You can have <strong class=\"font-semibold\">basic authentication</strong>\nfor the webhook URL.</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">On the Webhook Settings page (<strong class=\"font-semibold\">Settings &gt; Configure Chargebee &gt; Webhooks</strong>), select the webhook tab and check the option <strong class=\"font-semibold\">My webhook URL is protected by basic authentication.</strong></li>\n<li class=\"text-base leading-relaxed\">Enter <strong class=\"font-semibold\">Username</strong> and <strong class=\"font-semibold\">Password</strong> and click <strong class=\"font-semibold\">Update Webhook.</strong>\n<strong class=\"font-semibold\">OR</strong>\nGenerate a random key and have it as part of your webhook URL\n<em class=\"italic\">eg, http://yourapp.com/chargebee-webhook/cuktqaem0i2fkd5jt9cdtojcn9cvb3Y</em></li>\n</ol><p class=\"mb-2\">In addition to securing your webhook, you can ensure the integrity of the event data by fetching it again using the <a href=\"/docs/api/events/retrieve-an-event\">Retrieve an Event</a>\nAPI call.</p><h4>About Webhook IP Addresses</h4><p class=\"mb-2\">Webhooks from Chargebee originate from a <a href=\"/docs/api/webhooks\">specific set of IP addresses</a>.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier of an event.\n",
            "maxLength" : 40,
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this event had occurred.\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "default" : "none",
            "deprecated" : false,
            "description" : "Indicates the origin of the operation that triggered the event.\n\\* admin_console -\n\nThe event was triggered by an operation performed through the [Chargebee Billing dashboard](https://app.chargebee.com)\n.\n\\* external_service -\n\nThe event was triggered by an operation associated with a webhook.\n\\* scheduled_job -\n\nThe event was triggered by a scheduled job in Chargebee Billing.\n\\* bulk_operation -\n\nThe event was triggered by a [bulk operation](https://www.chargebee.com/docs/billing/2.0/data-operations/bulk-operations)\ninitiated by you in Chargebee Billing.\n\\* hosted_page -\n\nThe event was triggered by an operation performed by the customer through one of the [Chargebee Hosted Pages](/docs/api/hosted_pages)\n.\n\\* portal -\n\nThe event was triggered by an operation performed by a customer through the [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html)\n.\n\\* system -\n\nThe event was triggered automatically by Chargebee Billing.\n\\* migration -\n\nThe event was triggered by the migration of customer data into Chargebee Billing, either from an external system or from another [Chargebee Billing site](https://www.chargebee.com/docs/billing/2.0/getting-started/sites-intro)\n(such as test, live, or sandbox).\n\\* none -\n\nNo source can be identified for the event.\n\\* api -\n\nThe event was triggered by an operation performed through the [public API](/docs/api/getting-started)\n.\n\\* js_api -\n\nThe event was triggered by an operation performed through [Chargebee JS](https://www.chargebee.com/checkout-portal-docs/)\n.\n",
            "enum" : [ "admin_console", "api", "scheduled_job", "hosted_page", "portal", "system", "none", "js_api", "migration", "bulk_operation", "external_service" ],
            "example" : null
          },
          "user" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The &quot;user&quot; that triggered the event. The value depends on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">admin_console</code>: the email address of the user that triggered the event.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">js_api</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bulk_operation</code>: the <a href=\"https://www.chargebee.com/docs/api_keys.html#create-an-api-key\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">name</a> of the API key that was used to trigger the event.</li>\n<li class=\"text-base leading-relaxed\">When the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">external_service</code>: the name of the service that called our webhook. Eg. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ADYEN</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">STRIPE</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AMAZON_PAYMENTS</code> etc.</li>\n<li class=\"text-base leading-relaxed\">When the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">portal</code>: the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code> attribute is not passed.</li>\n</ul>",
            "maxLength" : 150,
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The type of event provided by Chargebee. See <a href=\"/docs/api/events/event-types\">event types</a>\nfor a complete list.</p>\n* card_deleted - <p class=\"mb-2\">Sent when a card is deleted for a customer</p>\n* subscription_cancelled - <p class=\"mb-2\">Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as &#x27;cancel_reason&#x27;.</p>\n* omnichannel_subscription_item_updated - <p class=\"mb-2\">Triggered when an omnichannel subscription item is updated.</p>\n* customer_changed - <p class=\"mb-2\">Sent when a customer is changed</p>\n* invoice_deleted - <p class=\"mb-2\">Event triggered when an invoice is deleted.</p>\n* omnichannel_subscription_item_changed - <p class=\"mb-2\">Triggered when an omnichannel subscription item is changed</p>\n* subscription_shipping_address_updated - <p class=\"mb-2\">Triggered when shipping address is added or updated for a subscription.</p>\n* differential_price_created - <p class=\"mb-2\">Triggered when a differential price is created</p>\n* subscription_created - <p class=\"mb-2\">Sent when a new subscription is created.</p>\n* payment_initiated - <p class=\"mb-2\">Sent when a payment is initiated via direct debit</p>\n* quote_updated - <p class=\"mb-2\">Triggered when quote is updated</p>\n* payment_source_added - <p class=\"mb-2\">Sent when a payment source is added for a customer.</p>\n* contract_term_created - <p class=\"mb-2\">Triggered when new contract term is created</p>\n* subscription_business_entity_changed - <p class=\"mb-2\">Sent when a subscription&#x27;s business entity is changed.</p>\n* subscription_deleted - <p class=\"mb-2\">Sent when a subscription has been deleted</p>\n* differential_price_deleted - <p class=\"mb-2\">Triggered when a differential price is deleted</p>\n* omnichannel_subscription_created - <p class=\"mb-2\">Triggered when an omnichannel subscription is created</p>\n* voucher_created - <p class=\"mb-2\">Triggered when a payment voucher is created.</p>\n* subscription_ramp_drafted - <p class=\"mb-2\">Triggered when a subscription ramp is moved to draft status.</p>\n* transaction_deleted - <p class=\"mb-2\">Triggered when a transaction is deleted.</p>\n* item_family_deleted - <p class=\"mb-2\">Triggered when an item family is deleted</p>\n* product_updated - <p class=\"mb-2\">Triggered when the product update is completed successfully</p>\n* payment_failed - <p class=\"mb-2\">Sent when attempt to charge customer&#x27;s credit card fails</p>\n* subscription_reactivated_with_backdating - <p class=\"mb-2\">Sent when the subscription is moved from cancelled state to active or in_trial state with past date</p>\n* omnichannel_subscription_item_cancellation_scheduled - <p class=\"mb-2\">Triggered when an omnichannel subscription item is scheduled for cancellation</p>\n* omnichannel_subscription_item_resumed - <p class=\"mb-2\">Triggered when an omnichannel subscription item is resumed</p>\n* payment_source_expiring - <p class=\"mb-2\">Sent when the customer&#x27;s payment source is expiring soon. Sent 30 days before the expiry date.</p>\n* payment_schedules_created - <p class=\"mb-2\">Event triggered when new payment schedules are created for an invoice</p>\n* subscription_entitlements_updated - <p class=\"mb-2\">Triggered when subscription entitlements are updated for a subscription change.</p>\n* price_variant_updated - <p class=\"mb-2\">Triggered when a price variant is updated.</p>\n* omnichannel_subscription_item_dunning_expired - <p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s dunning has expired</p>\n* item_price_updated - <p class=\"mb-2\">Triggered when an item price is updated</p>\n* order_ready_to_process - <p class=\"mb-2\">Triggered when order reaches its order date</p>\n* entitlement_overrides_updated - <p class=\"mb-2\">Triggered when an override entitlement is updated</p>\n* item_updated - <p class=\"mb-2\">Triggered when an item is updated</p>\n* coupon_set_updated - <p class=\"mb-2\">Sent when a coupon set is changed</p>\n* subscription_reactivated - <p class=\"mb-2\">Sent when the subscription is moved from cancelled state to active or in_trial state</p>\n* variant_created - <p class=\"mb-2\">Triggered when product variant created successfully.</p>\n* addon_updated - <p class=\"mb-2\">Sent when an addon is changed.</p>\n* subscription_scheduled_changes_removed - <p class=\"mb-2\">Sent when scheduled change for the subscription is removed.</p>\n* customer_business_entity_changed - <p class=\"mb-2\">Sent when a customer&#x27;s business entity is changed.</p>\n* payment_refunded - <p class=\"mb-2\">Sent when a payment refund is made</p>\n* subscription_started - <p class=\"mb-2\">Sent when a &#x27;future&#x27; subscription gets started at the scheduled date.</p>\n* attached_item_created - <p class=\"mb-2\">Triggered when an Attached item is created</p>\n* token_created - <p class=\"mb-2\">Sent when a Token is created</p>\n* item_family_created - <p class=\"mb-2\">Triggered when an item family is created</p>\n* subscription_created_with_backdating - <p class=\"mb-2\">Sent when a new subscription is created with backdating.</p>\n* unbilled_charges_deleted - <p class=\"mb-2\">Triggered when unbilled charges are deleted.</p>\n* omnichannel_subscription_item_renewed - <p class=\"mb-2\">Triggered when an omnichannel subscription item is renewed</p>\n* subscription_ramp_applied - <p class=\"mb-2\">Triggered when a subscription ramp is applied.</p>\n* promotional_credits_added - <p class=\"mb-2\">Sent when promotional credits are added to a customer.</p>\n* subscription_canceled_with_backdating - <p class=\"mb-2\">Sent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as &#x27;cancel_reason&#x27;.</p>\n* item_entitlements_updated - <p class=\"mb-2\">Triggered when item entitlements are updated to a feature</p>\n* card_expired - <p class=\"mb-2\">Sent when a card for a customer is expired</p>\n* payment_intent_created - <p class=\"mb-2\">Sent when a Payment intent is created</p>\n* subscription_changed_with_backdating - <p class=\"mb-2\">Sent after the subscription&#x27;s recurring items have been changed with backdated date</p>\n* subscription_scheduled_cancellation_removed - <p class=\"mb-2\">Sent when scheduled cancellation is removed for the subscription.</p>\n* omnichannel_subscription_item_resubscribed - <p class=\"mb-2\">Triggered when an omnichannel subscription item is resubscribed</p>\n* feature_updated - <p class=\"mb-2\">Triggered when an feature is updated</p>\n* payment_schedule_scheme_created - <p class=\"mb-2\">Event triggered when a new payment schedule scheme is created</p>\n* plan_deleted - <p class=\"mb-2\">Sent when a plan is deleted.</p>\n* omnichannel_subscription_imported - <p class=\"mb-2\">Triggered when an omnichannel subscription item is imported</p>\n* tax_withheld_refunded - <p class=\"mb-2\">Sent when a tax withheld refund is made</p>\n* unbilled_charges_voided - <p class=\"mb-2\">Triggered when unbilled charges are voided.</p>\n* customer_moved_out - <p class=\"mb-2\">Sent when a customer is copied to another site</p>\n* feature_created - <p class=\"mb-2\">Triggered when a feature is created.</p>\n* record_purchase_failed - <p class=\"mb-2\">Triggered when an omnichannel record purchase is failed</p>\n* coupon_codes_deleted - <p class=\"mb-2\">Sent when coupon codes are deleted in coupon set</p>\n* subscription_paused - <p class=\"mb-2\">Sent when the subscription is paused.</p>\n* order_updated - <p class=\"mb-2\">Triggered when order is updated</p>\n* subscription_movement_failed - <p class=\"mb-2\">Triggered when a subscription movement failed</p>\n* unbilled_charges_created - <p class=\"mb-2\">Triggered when unbilled charges are created.</p>\n* subscription_moved_in - <p class=\"mb-2\">Triggered when a subscription moved from other customer</p>\n* feature_archived - <p class=\"mb-2\">Triggered when a feature is archived.</p>\n* subscription_ramp_deleted - <p class=\"mb-2\">Triggered when a subscription ramp is deleted.</p>\n* payment_succeeded - <p class=\"mb-2\">Sent when the payment is successfully collected</p>\n* voucher_expired - <p class=\"mb-2\">Triggered when a payment voucher is expired.</p>\n* mrr_updated - <p class=\"mb-2\">Sent when either of MRR or CMRR of a subscription changes</p>\n* subscription_scheduled_resumption_removed - <p class=\"mb-2\">Triggered when scheduled resumption is removed for the subscription.</p>\n* subscription_changes_scheduled - <p class=\"mb-2\">Sent when subscription changes are scheduled for later. Changes will be applied at the end of current term.</p>\n* order_ready_to_ship - <p class=\"mb-2\">Triggered when order reaches its shipping date</p>\n* omnichannel_subscription_item_cancelled - <p class=\"mb-2\">Triggered when an omnichannel subscription item is cancelled</p>\n* purchase_created - <p class=\"mb-2\">Triggered when purchase action completed successfully</p>\n* variant_updated - <p class=\"mb-2\">Triggered when product variant updated successfully.</p>\n* variant_deleted - <p class=\"mb-2\">Triggered when product variant deleted successfully.</p>\n* subscription_trial_end_reminder - <p class=\"mb-2\">Sent when the customer&#x27;s trial period is about to end.</p>\n* feature_activated - <p class=\"mb-2\">Triggered when a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> for the first time.</p>\n* subscription_renewed - <p class=\"mb-2\">Sent when the subscription is renewed from the current term.</p>\n* plan_created - <p class=\"mb-2\">Sent when a plan is created.</p>\n* item_created - <p class=\"mb-2\">Triggered when an item is created</p>\n* coupon_codes_updated - <p class=\"mb-2\">Sent when coupon codes are updated</p>\n* gift_unclaimed - <p class=\"mb-2\">Triggered when a new gift is unclaimed and is ready to be claimed</p>\n* subscription_entitlements_created - <p class=\"mb-2\">Triggered when subscription entitlements are created for a new subscription</p>\n* subscription_ramp_updated - <p class=\"mb-2\">Triggered when a subscription ramp is updated.</p>\n* virtual_bank_account_added - <p class=\"mb-2\">Sent when a virtual bank account is added for a customer.</p>\n* subscription_moved_out - <p class=\"mb-2\">Triggered when a subscription moved to other customer</p>\n* contract_term_completed - <p class=\"mb-2\">Triggered when contract term is completed</p>\n* feature_deleted - <p class=\"mb-2\">Triggered when a feature is deleted</p>\n* subscription_renewal_reminder - <p class=\"mb-2\">Sent before each subscription&#x27;s renewal based on plan&#x27;s period</p>\n* coupon_updated - <p class=\"mb-2\">Sent when a coupon is changed.</p>\n* token_consumed - <p class=\"mb-2\">Sent when a Token is consumed</p>\n* omnichannel_subscription_item_upgraded - <p class=\"mb-2\">Triggered when an omnichannel subscription item is upgraded</p>\n* transaction_created - <p class=\"mb-2\">Triggered when a transaction is recorded</p>\n* invoice_installment_updated - <p class=\"mb-2\">Triggered when an <code><a href=\"/docs/api/events/event-object\">installment</a></code>\nstatus changes.</p>\n* payment_schedule_scheme_deleted - <p class=\"mb-2\">Event triggered when a payment schedule scheme is deleted</p>\n* customer_deleted - <p class=\"mb-2\">Sent when a customer is deleted</p>\n* installment_config_created - <p class=\"mb-2\">Triggered when an <code><a href=\"/docs/api/events/event-object\">installment_config</a></code>\nis created.</p>\n* subscription_items_renewed - <p class=\"mb-2\">Sent when one or more Subscription Items are renewed</p>\n* coupon_deleted - <p class=\"mb-2\">Sent when a coupon is deleted.</p>\n* quote_deleted - <p class=\"mb-2\">Triggered when quote is deleted</p>\n* card_updated - <p class=\"mb-2\">Sent when the card is updated for a customer.</p>\n* coupon_created - <p class=\"mb-2\">Sent when a coupon is created.</p>\n* quote_created - <p class=\"mb-2\">Triggered when quote is created</p>\n* add_usages_reminder - <p class=\"mb-2\">Sent every month day before renewal date of plan&#x27;s period</p>\n* business_entity_updated - <p class=\"mb-2\">Sent when a business entity is updated.</p>\n* subscription_changed - <p class=\"mb-2\">Sent after the subscription&#x27;s recurring items have been changed</p>\n* customer_created - <p class=\"mb-2\">Sent when a new customer is created, either directly or automatically during subscription creation.</p>\n* price_variant_created - <p class=\"mb-2\">Triggered when a price variant is created.</p>\n* coupon_set_deleted - <p class=\"mb-2\">Sent when a coupon set is deleted</p>\n* refund_initiated - <p class=\"mb-2\">Sent when a refund is initiated via direct debit</p>\n* order_cancelled - <p class=\"mb-2\">Triggered when order is cancelled</p>\n* entitlement_overrides_removed - <p class=\"mb-2\">Triggered when an override entitlement is removed</p>\n* coupon_codes_added - <p class=\"mb-2\">Sent when coupon codes are added in coupon set</p>\n* omnichannel_subscription_item_paused - <p class=\"mb-2\">Triggered when an omnichannel subscription item is paused</p>\n* card_added - <p class=\"mb-2\">Sent when a card is added for a customer.</p>\n* gift_cancelled - <p class=\"mb-2\">Triggered when a gift is cancelled.</p>\n* omnichannel_subscription_item_downgrade_scheduled - <p class=\"mb-2\">Triggered when a downgrade for an omnichannel subscription item is scheduled.</p>\n* entitlement_overrides_auto_removed - <p class=\"mb-2\">Triggered when Subscription entitlements overrides for a feature are auto removed after expiry</p>\n* omnichannel_subscription_moved_in - <p class=\"mb-2\">Triggered when an omnichannel subscription is moved to another customer</p>\n* omnichannel_subscription_item_downgraded - <p class=\"mb-2\">Triggered when an omnichannel subscription item is downgraded</p>\n* payment_source_deleted - <p class=\"mb-2\">Sent when a payment source is deleted for a customer</p>\n* credit_note_created - <p class=\"mb-2\">Sent when a credit note is created</p>\n* subscription_resumption_scheduled - <p class=\"mb-2\">Triggered when the subscription resumption is scheduled.</p>\n* item_price_deleted - <p class=\"mb-2\">Triggered when an item price is deleted</p>\n* subscription_advance_invoice_schedule_updated - <p class=\"mb-2\">Triggered when scheduled advance invoice is updated for a subscription.</p>\n* item_deleted - <p class=\"mb-2\">Triggered when an item is deleted</p>\n* omnichannel_one_time_order_item_cancelled - <p class=\"mb-2\">Triggered when an omnichannel one time order item is cancelled</p>\n* gift_claimed - <p class=\"mb-2\">Triggered when a gift is claimed</p>\n* feature_reactivated - <p class=\"mb-2\">Triggered when a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> for the second time or more.</p>\n* subscription_activated - <p class=\"mb-2\">Sent after the subscription has been moved from trial to active state</p>\n* subscription_resumed - <p class=\"mb-2\">Sent when the subscription is moved from paused state to active state</p>\n* omnichannel_subscription_item_scheduled_downgrade_removed - <p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled downgrade is removed</p>\n* credit_note_deleted - <p class=\"mb-2\">Sent when a credit note is deleted</p>\n* item_price_entitlements_removed - <p class=\"mb-2\">Triggered when item price entitlements are removed for a feature</p>\n* subscription_advance_invoice_schedule_added - <p class=\"mb-2\">Triggered when advance invoice is scheduled for a subscription.</p>\n* differential_price_updated - <p class=\"mb-2\">Triggered when a differential price is updated</p>\n* alert_status_changed - <p class=\"mb-2\">Triggered when an alert&#x27;s runtime status for a subscription changes between IN_ALARM and WITHIN_LIMIT.\nThis indicates a change in the subscription&#x27;s usage relative to the alert threshold and applies only to usage-based billing.</p>\n* order_deleted - <p class=\"mb-2\">Triggered when order is deleted</p>\n* omnichannel_subscription_item_scheduled_cancellation_removed - <p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled cancellation is removed</p>\n* token_expired - <p class=\"mb-2\">Sent when a Token is expired</p>\n* price_variant_deleted - <p class=\"mb-2\">Triggered when a price variant is deleted.</p>\n* transaction_updated - <p class=\"mb-2\">Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated.</p>\n* subscription_cancellation_reminder - <p class=\"mb-2\">Sent when the customer&#x27;s subscription is nearing its scheduled cancellation date.</p>\n* product_deleted - <p class=\"mb-2\">Triggered when the product delete is completed successfully</p>\n* omnichannel_subscription_item_reactivated - <p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s refund is reversed</p>\n* invoice_generated - <p class=\"mb-2\">Event triggered when a new invoice is generated. In case of metered billing, this event is triggered when a &quot;Pending&quot; invoice is closed.</p>\n* order_delivered - <p class=\"mb-2\">Triggered when order is marked as delivered</p>\n* pending_invoice_created - <p class=\"mb-2\">Event triggered (in the case of metered billing) when a &quot;Pending&quot; invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the &quot;Notify for Pending Invoices&quot; option is enabled.</p>\n* subscription_ramp_created - <p class=\"mb-2\">Triggered when a subscription ramp is created.</p>\n* omnichannel_subscription_item_expired - <p class=\"mb-2\">Triggered when an omnichannel subscription item is expired</p>\n* authorization_succeeded - <p class=\"mb-2\">Triggered when an authorization transaction is created.</p>\n* invoice_generated_with_backdating - <p class=\"mb-2\">Event triggered when a new invoice is generated with past date as invoice date.</p>\n* omnichannel_subscription_item_change_scheduled - <p class=\"mb-2\">Triggered when an omnichannel subscription item change is scheduled</p>\n* subscription_cancellation_scheduled - <p class=\"mb-2\">Sent when subscription is scheduled to cancel at end of current term</p>\n* order_created - <p class=\"mb-2\">Triggered when order is created</p>\n* hierarchy_deleted - <p class=\"mb-2\">Triggered when a hierarchy is deleted</p>\n* subscription_activated_with_backdating - <p class=\"mb-2\">Sent after the subscription changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> from another <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, while the change is backdated.</p>\n* plan_updated - <p class=\"mb-2\">Sent when a plan is changed.</p>\n* tax_withheld_recorded - <p class=\"mb-2\">Triggered when a tax withheld is recorded for an invoice</p>\n* invoice_installments_created - <p class=\"mb-2\">Triggered when <code><a href=\"/docs/api/events/event-object\">installment</a></code>\nresources are created for an invoice.</p>\n* credit_note_created_with_backdating - <p class=\"mb-2\">Sent when a credit note is created with past date as credit note date</p>\n* omnichannel_subscription_item_pause_scheduled - <p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled for pause</p>\n* gift_updated - <p class=\"mb-2\">Triggered when a gift is updated</p>\n* order_resent - <p class=\"mb-2\">Triggered when order is resent</p>\n* hierarchy_created - <p class=\"mb-2\">Triggered when a hierarchy is created</p>\n* addon_deleted - <p class=\"mb-2\">Sent when an addon is deleted.</p>\n* voucher_create_failed - <p class=\"mb-2\">Triggered when a payment voucher creation fails.</p>\n* customer_moved_in - <p class=\"mb-2\">Sent when a customer is copied from another site</p>\n* customer_entitlements_updated - <p class=\"mb-2\">Triggered when entitlements for the list of customers got updated.</p>\n* item_price_entitlements_updated - <p class=\"mb-2\">Triggered when item Price entitlements are updated to a feature</p>\n* omnichannel_subscription_item_grace_period_expired - <p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s grace period has expired</p>\n* attached_item_deleted - <p class=\"mb-2\">Triggered when an Attached item is deleted</p>\n* unbilled_charges_invoiced - <p class=\"mb-2\">Triggered when unbilled charges are invoiced.</p>\n* subscription_pause_scheduled - <p class=\"mb-2\">Sent when the subscription is scheduled to pause.</p>\n* order_returned - <p class=\"mb-2\">Triggered when order is marked as returned</p>\n* payment_source_expired - <p class=\"mb-2\">Sent when a payment source for a customer is expired</p>\n* contract_term_terminated - <p class=\"mb-2\">Triggered when contract term is terminated</p>\n* product_created - <p class=\"mb-2\">Triggered when the product create is completed successfully</p>\n* payment_source_updated - <p class=\"mb-2\">Sent when the payment source is updated for a customer or when role is assigned to the payment source.</p>\n* pending_invoice_updated - <p class=\"mb-2\">Event triggered when the option &quot;Notify and wait to close invoices&quot; is enabled, and the &#x27;Pending&#x27; invoice is updated.</p>\n* omnichannel_subscription_item_grace_period_started - <p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s grace period has started</p>\n* subscription_advance_invoice_schedule_removed - <p class=\"mb-2\">Triggered when scheduled advance invoice is removed for a subscription.</p>\n* tax_withheld_deleted - <p class=\"mb-2\">Triggered when a tax withheld is deleted</p>\n* omnichannel_subscription_item_dunning_started - <p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s dunning has started</p>\n* business_entity_created - <p class=\"mb-2\">Sent when a business entity is created.</p>\n* item_price_created - <p class=\"mb-2\">Triggered when an item price is created</p>\n* virtual_bank_account_updated - <p class=\"mb-2\">Sent when the virtual bank account is updated for a customer.</p>\n* credit_note_updated - <p class=\"mb-2\">Sent when a credit note is updated</p>\n* subscription_scheduled_pause_removed - <p class=\"mb-2\">Triggered when scheduled pause is removed for the subscription.</p>\n* card_expiry_reminder - <p class=\"mb-2\">Sent 30 days before the customer&#x27;s credit card expires.</p>\n* coupon_set_created - <p class=\"mb-2\">Sent when a coupon set is created</p>\n* virtual_bank_account_deleted - <p class=\"mb-2\">Sent when a virtual bank account is deleted for a customer.</p>\n* omnichannel_one_time_order_created - <p class=\"mb-2\">Triggered when an omnichannel one time order is created</p>\n* gift_scheduled - <p class=\"mb-2\">Triggered when a new gift is created</p>\n* payment_schedules_updated - <p class=\"mb-2\">Event triggered when payment schedules are updated for an invoice</p>\n* business_entity_deleted - <p class=\"mb-2\">Sent when a business entity is deleted.</p>\n* omnichannel_subscription_item_recovered - <p class=\"mb-2\">Triggered when an omnichannel subscription item recovers from a billing issue and is active again.</p>\n* promotional_credits_deducted - <p class=\"mb-2\">Sent when a customer prmotion credits deducted</p>\n* installment_config_deleted - <p class=\"mb-2\">Triggered when an <code><a href=\"/docs/api/events/event-object\">installment_config</a></code>\nis deleted</p>\n* contract_term_renewed - <p class=\"mb-2\">Triggered when new contract term is renewed</p>\n* usage_file_ingested - <p class=\"mb-2\">Triggered when a <a href=\"/docs/api/usage_files\">usage_file</a>\nis successfully ingested.</p>\n* subscription_trial_extended - <p class=\"mb-2\">Sent when a subscription trial is extended.</p>\n* item_entitlements_removed - <p class=\"mb-2\">Triggered when item entitlements are removed for a feature</p>\n* gift_expired - <p class=\"mb-2\">Triggered when a gift expires</p>\n* omnichannel_subscription_item_scheduled_change_removed - <p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled change is removed</p>\n* contract_term_cancelled - <p class=\"mb-2\">Triggered when contract term is cancelled</p>\n* authorization_voided - <p class=\"mb-2\">Triggered when an authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time.</p>\n* item_family_updated - <p class=\"mb-2\">Triggered when an item family is updated</p>\n* addon_created - <p class=\"mb-2\">Sent when an addon is created.</p>\n* attached_item_updated - <p class=\"mb-2\">Triggered when an Attached item is updated</p>\n* invoice_updated - <p class=\"mb-2\">Triggered when the invoice&#x27;s shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed.</p>\n* payment_intent_updated - <p class=\"mb-2\">Sent when a Payment intent is updated</p>\n* payment_source_locally_deleted - <p class=\"mb-2\">Sent when a payment source for a customer removed from Chargebee</p>",
            "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "default" : "v1",
            "deprecated" : false,
            "description" : "The Chargebee API version used to render this event content. When processing webhooks, ensure that this version matches the one used by your webhook server's client library.\n\\* v1 -\n\nChargebee API version V1\n\\* v2 -\n\nChargebee API version V2\n",
            "enum" : [ "v1", "v2" ],
            "example" : null
          },
          "content" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "The JSON data associated with this event. Has resources (\\*subscription\\* , \\*invoice\\* etc) based on the \\[event type\\](/docs/api/events/event-types). These resources are structured based on the Chargebee API version indicated by the \\*api_version\\* attribute.\n",
            "example" : null
          },
          "origin_user" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The email address of the user, if captured, in the API operation that triggered the event. This email address is captured through either the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-user</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chargebee-request-origin-user-encoded</code> <a href=\"/docs/api/advanced-features\">custom HTTP request headers</a>.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">event_source</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api</code>.</p></div>",
            "example" : null
          },
          "webhooks" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Array of webhook call statuses: one for each of the webhooks configured for the site. This object is only available after the first webhook call for the event has completed or timed out. Also, creation/updation of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhook</code>\nobject data is a queued operation and hence there can be an additional delay of up to 5 seconds.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Unique identifier of a webhook.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "webhook_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When the event resource is retrieved via API:</strong> Represents the status of the webhook call made to this webhook.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When the event resource is passed as part of a webhook call:</strong> The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">webhooks</code> object is unavailable on the first webhook call for the event. For subsequent calls, this attribute holds the status from after the last retry.</li>\n</ul>\n* disabled - <p class=\"mb-2\">Disabled as no longer used</p>\n* failed - <p class=\"mb-2\">Webhook call has been suspended after the all retries have resulted in failure.</p>\n* succeeded - <p class=\"mb-2\">Webhook call was successful.</p>\n* scheduled - <p class=\"mb-2\">Webhook call has been scheduled.</p>\n* re_scheduled - <p class=\"mb-2\">Webhook call has been rescheduled due failure(s) in previous call(s)</p>\n* not_applicable - <p class=\"mb-2\">Webhook call is not applicable for this event.</p>\n* skipped - <p class=\"mb-2\">Skipped as specified in request</p>\n* not_configured - <p class=\"mb-2\">Webhook was not configured when this event occurred</p>",
                  "enum" : [ "not_configured", "scheduled", "succeeded", "re_scheduled", "failed", "skipped", "not_applicable", "disabled", "rate_limited" ],
                  "example" : null
                }
              },
              "required" : [ "id", "webhook_status" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "content", "id", "occurred_at", "source" ],
        "example" : null
      },
      "EventName" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "cancellation_page_loaded" ],
        "example" : null
      },
      "EventType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
        "example" : null
      },
      "ExcludeTaxType" : {
        "type" : "string",
        "default" : "none",
        "deprecated" : false,
        "enum" : [ "exclusive", "none" ],
        "example" : null
      },
      "Export" : {
        "type" : "object",
        "description" : "Export resource represents an export job and contains the status of the job and the download URL, if the job is successfully completed.\n\nExport operations are asynchronous and will return \"Export\" resource in response . The export resource will contain the status of the export job (like in-process, completed...) . If the status is completed, it will contain the download url pointing to the zip/pdf containing the exported data.\n\n**Note:** At any given point, only 5 export jobs can be processed. Beyond that, an error stating that the API request limit has been reached will be returned.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier to identify the export\n",
            "maxLength" : 50,
            "example" : null
          },
          "operation_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Describes the type of export\n",
            "maxLength" : 100,
            "example" : null
          },
          "mime_type" : {
            "type" : "string",
            "default" : "zip",
            "deprecated" : false,
            "description" : "Describes the mime type of download file\n\\* pdf -\n\nPDF\n\\* zip -\n\nZIP\n",
            "enum" : [ "pdf", "zip" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "in_process",
            "deprecated" : false,
            "description" : "Current status of the export operation\n\\* completed -\n\nCompleted\n\\* failed -\n\nFailed\n\\* in_process -\n\nIn Process\n",
            "enum" : [ "in_process", "completed", "failed" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Export created time\n",
            "example" : null
          },
          "download" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Returns the download_url for the export. The download URL is valid upto a specific date.\n",
            "properties" : {
              "download_url" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The URL at which the file is available for download.\n",
                "maxLength" : 3500,
                "example" : null
              },
              "valid_till" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The time until which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download_url</code>\nis valid.</p>",
                "example" : null
              },
              "mime_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [media type](https://en.wikipedia.org/wiki/Media_type)\nof the file.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "download_url", "valid_till" ],
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "mime_type", "operation_type", "status" ],
        "example" : null
      },
      "ExportType" : {
        "type" : "string",
        "default" : "data",
        "deprecated" : false,
        "enum" : [ "data", "import_friendly_data" ],
        "example" : null
      },
      "FailedUsageEvent" : {
        "type" : "object",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "usage_timestamp" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "ingestion_timestamp" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "properties" : {
            "type" : "string",
            "deprecated" : false,
            "example" : null
          },
          "error_codes" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "event_meta" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "error_codes", "event_meta", "ingestion_timestamp", "properties", "subscription_id" ],
        "example" : null
      },
      "FamAutoCalcRequest" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "request_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "version" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "fault_trace" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "retry_count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          }
        },
        "example" : null
      },
      "FamManualCalcRequest" : {
        "type" : "object",
        "properties" : {
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "request_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "version" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "fault_trace" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "retry_count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          }
        },
        "example" : null
      },
      "Feature" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "Subscriptions are created in Chargebee using items. Items represent the products or services that you offer to your customers. Items often differ in the number of product features that are available to them. The Features API helps you define the various features offered as part of your product line. It also defines the entitlements that items and subscriptions can have towards said features.  \n**Note**\n\nThe maximum number of features a site can have is 400.\n\nFeatures of this API\n--------------------\n\nThe Features API enables you to:\n\n* Define the set of features provided by your product.\n* Specify the entitlements that items have towards said features.\n* For a given subscription, modify the entitlements inherited from items in the subscription.\n* Offer additional feature entitlements to subscriptions than those inherited from items in the subscription.\n* Serve as a source of truth to your provisioning systems for subscription entitlements.\n* Use entitlement information to understand which features drive value and revenue.\n\n**See also**\n\n* [Entitlements](/docs/api/entitlements)\n* [Subscription Entitlements](/docs/api/subscription_entitlements)\n* [Entitlement Overrides](/docs/api/entitlement_overrides)\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A unique and immutable identifier for the feature. You can set it yourself, in which case it is recommended that a human-readable format (or slug) be used. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number-of-users-ccjht01</code>.\nWhen not provided, a random value is automatically set.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A case-sensitive unique name for the feature. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user license</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">data storage</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Salesforce Integration</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">devices</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">UHD Streaming</code>\n, and so on.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThis name is not displayed on any customer-facing documents or pages such as <a href=\"/docs/api/invoices/retrieve-invoice-as-pdf\">invoice PDFs</a>\nor <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nHowever, in the future, it is likely to be introduced on the <a href=\"/docs/api/portal_sessions\">Self-Serve Portal</a>\n.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A brief description of the feature. For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Access to 10TB cloud storage</code>\n.</p>",
            "maxLength" : 500,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The current status of the feature.</p>\n* active - <p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nor an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\nfeature can be changed to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nAny <a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ndefined for the feature take effect immediately.</p>\n* draft - <p class=\"mb-2\">The feature is in an unpublished state. <a href=\"/docs/api/entitlements\">Entitlements</a>\nand <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created for a draft feature but they are not effective until the feature is active. A feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\ncannot be changed back to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nonce it is in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n.</p>\n* archived - <p class=\"mb-2\">An <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nfeature can be changed to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>.\nOnce <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>\n, no <strong class=\"font-semibold\">new</strong>\n<a href=\"/docs/api/entitlements\">entitlements</a>\nor <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>\ncan be created for the feature. However, any pre-existing item or subscription entitlements from the time that the feature was <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n, remain effective.</p>",
            "enum" : [ "active", "archived", "draft" ],
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The type of feature.</p>\n* quantity - <p class=\"mb-2\">The feature is quantity-based and entitlement levels available for it are a set of predefined number of quantity units. For example, a feature with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nsuch as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code>\ncan have entitlement levels of say, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[is_unlimited]</code>\nis used for specifying the &quot;unlimited&quot; entitlement level.</p>\n* range - <p class=\"mb-2\">The feature is quantity-based and the entitlement levels available for it are the set of whole numbers within a range. The range is defined by a minimum and a maximum value. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code>\ncan have entitlement levels starting at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>\nusers and go up to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50000</code>.\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[is_unlimited]</code>\nis used for specifying the &quot;unlimited&quot; entitlement level.</p>\n* switch - <p class=\"mb-2\">A switch or toggle is a feature that an item or subscription can be either fully entitled to or not entitled to at all.</p>\n* custom - <p class=\"mb-2\">The entitlement levels available for this feature are defined as a set of custom values. For example, a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code>\ncan have entitlement levels as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×7</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×5</code>\n.</p>",
            "enum" : [ "switch", "custom", "quantity", "range" ],
            "example" : null
          },
          "unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">For features of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this specifies the unit of measure. The value is expected in the singular form and when used by the system, it is pluralized automatically as needed. For example, for a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user licenses</code>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>\ncan be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">license</code>\n.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "When the feature was created.\n",
            "example" : null
          },
          "levels" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An ordered list of entitlement levels available for the feature. This is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis other than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>\n.\n<strong class=\"font-semibold\">Note:</strong>\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof the feature is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>\n, this is not applicable. This is because any given entity can be either fully entitled to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>\nfeature or not entitled at all; there are no intermediate entitlement levels.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">A case-sensitive display name for the entitlement level. Provide a name that helps you clearly identify the entitlement level. For example: a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code>\ncan have entitlement levels named as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All weekdays</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All days</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">40 hours per week</code>\nand so on.</p>\n<p class=\"mb-2\">When not provided for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this name is auto-generated as the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nand the pluralized version of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>\n, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].name</code>\nbecomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>\n.</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The value denoting the entitlement level granted.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>:</strong> this attribute denotes the quantity of units of the feature for this entitlement level. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code>. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is used to set the entitlement level to &quot;unlimited&quot;.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>:</strong> there can be be only two elements in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> array; one corresponding to the minimum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0]</code>) and the other to the maximum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1]</code>) of the range of possible entitlement levels. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> may have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50000</code>. When the upper limit is &quot;unlimited&quot;, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> is not set and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>:</strong> this attribute denotes the value of this custom entitlement level. For example, a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as one of say, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×7</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×5</code>.</li>\n</ul>",
                  "maxLength" : 50,
                  "example" : null
                },
                "level" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">This attribute represents the order of the entitlement levels from lowest to highest.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>: The lowest entitlement level has the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>, the next higher level has the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>, followed by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, and so on.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>: This attribute is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> for the minimum value and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> for the maximum value in the range.</li>\n</ul>\n<p class=\"mb-2\">When not defined, it is assumed as the index of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code>\narray.</p>",
                  "example" : null
                },
                "is_unlimited" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this attribute indicates whether the entitlement level corresponds to unlimited units of the feature. Possible values:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The entitlement level corresponds to unlimited units of the feature. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> is ignored for this level. This can only be set for the level that has the highest value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].level.</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The entitlement level does not correspond to unlimited units of the feature.</li>\n</ul>",
                  "example" : null
                }
              },
              "required" : [ "is_unlimited", "level", "value" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "name" ],
        "example" : null
      },
      "FeatureActivatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item" : {
                "$ref" : "#/components/schemas/ImpactedItem"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "FeatureArchivedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              }
            },
            "required" : [ "feature", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "FeatureAvailabilityMetric" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "draft", "active", "archived", "deleted" ],
            "example" : null
          },
          "count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "last_updated_at" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          }
        },
        "example" : null
      },
      "FeatureCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item" : {
                "$ref" : "#/components/schemas/ImpactedItem"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "FeatureDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item" : {
                "$ref" : "#/components/schemas/ImpactedItem"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "FeatureReactivatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              }
            },
            "required" : [ "feature", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "FeatureUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              }
            },
            "required" : [ "feature", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "FilterCondition" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">One row of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">filter_conditions</code> composite on a <a href=\"/docs/api/alerts\" class=\"text-blue-600 hover:text-blue-800 underline\">global alert</a>. It limits which subscriptions the alert applies to. When creating an alert, pass parallel arrays <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">filter_conditions[field][]</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">filter_conditions[operator][]</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">filter_conditions[value][]</code>; values at the same index define one condition.</p></div>",
        "properties" : {
          "field" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Subscription attribute to filter on. The API allows only <code>plan_price_id</code> (request parameter <code>filter_conditions[field][]</code>).</p>\n* plan_price_id - <p class=\"mb-2\">Compares against the subscription’s plan price identifier.</p>",
            "enum" : [ "plan_price_id" ],
            "example" : null
          },
          "operator" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">How <code>field</code> is compared to <code>value</code> (<code>filter_conditions[operator][]</code>).</p>\n* equals - <p class=\"mb-2\">The plan price attribute must equal this condition’s <code>value</code>.</p>\n* not_equals - <p class=\"mb-2\">The plan price attribute must not equal this condition’s <code>value</code>.</p>",
            "enum" : [ "equals", "not_equals" ],
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Operand for the operator, typically a plan price identifier. String, up to 50 characters (<code>filter_conditions[value][]</code>).</p>",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "field", "operator", "value" ],
        "example" : null
      },
      "FreePeriodUnit" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "day", "week", "month", "year" ],
        "example" : null
      },
      "FriendOfferType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "none", "coupon", "coupon_code" ],
        "example" : null
      },
      "FullExport" : {
        "type" : "object",
        "description" : "The Full Export API allows bulk download of various datasets from a secure location where data is loaded daily on a predefined schedule. Users can request dataset downloads by specifying the dataset name and date, among others. All the records of a given day (from 12:00 a.m. to 11:59 p.m. UTC) are available to query by the following day. The API responds with a download URL upon successful availability.\n",
        "properties" : {
          "table" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The name of the table from which the data has been exported. For example, invoices.\n",
            "maxLength" : 200,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "in_process",
            "deprecated" : false,
            "description" : "Represents the current status of the export. For example, Completed, In Progress, etc.\n\\* failed -\n\nWhen the export is failed.\n\\* completed -\n\nWhen the export is completed.\n\\* in_process -\n\nWhen the export is in process.\n",
            "enum" : [ "in_process", "completed", "failed" ],
            "example" : null
          },
          "export_date" : {
            "type" : "string",
            "format" : "date",
            "deprecated" : false,
            "description" : "The date for which the data is being exported. It's formatted in the YYYY-MM-DD format. For instance, if retrieving data relevant to September 10, 2023, the export_date would be 2023-09-10.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "A timestamp representing when the export was initiated. For example, 1693383422.\n",
            "example" : null
          },
          "download" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Returns the download_url for the export. The download URL is valid upto a specific date.\n",
            "properties" : {
              "download_url" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The URL at which the file is available for download.\n",
                "maxLength" : 3500,
                "example" : null
              },
              "valid_till" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The time until which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download_url</code>\nis valid.</p>",
                "example" : null
              },
              "mime_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [media type](https://en.wikipedia.org/wiki/Media_type)\nof the file. This gives information on the file format/type. For example, application/x-parquet.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "download_url", "valid_till" ],
            "example" : null
          }
        },
        "required" : [ "created_at", "export_date", "status", "table" ],
        "example" : null
      },
      "Gateway" : {
        "type" : "string",
        "deprecated" : true,
        "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "gocardless", "not_applicable" ],
        "example" : null
      },
      "GatewayErrorDetail" : {
        "type" : "object",
        "description" : "",
        "properties" : {
          "request_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This is a unique identifier assigned by the payment gateway. It is used to track the request at the payment gateway\n",
            "maxLength" : 100,
            "example" : null
          },
          "error_category" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This parameter categorizes the type of error that occurred for the request. It helps in understanding whether the error is due to API error, validation, processing, network issues, and more\n",
            "maxLength" : 100,
            "example" : null
          },
          "error_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A gateway-specific code that corresponds to the particular error encountered for the request. This code can be used for identifying the error in a standardized manner across the gateway's services\n",
            "maxLength" : 100,
            "example" : null
          },
          "error_message" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A message provided by the gateway that describes the nature of the error encountered\n",
            "maxLength" : 65000,
            "example" : null
          },
          "decline_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "When a transaction is declined, this code is provided by the gateway to specify the reason for the decline\n",
            "maxLength" : 100,
            "example" : null
          },
          "decline_message" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This message gives a descriptive explanation of the reason for the transaction's decline\n",
            "maxLength" : 65000,
            "example" : null
          },
          "network_error_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This code represents errors that originate from the payment network (such as Visa, MasterCard, and more). It is different from the gateway error code and is specific to the network's error-handling system\n",
            "maxLength" : 100,
            "example" : null
          },
          "network_error_message" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This the network related error message from the gateway, this is a detailed message provided by the payment network explaining the nature of the network error encountered\n",
            "maxLength" : 65000,
            "example" : null
          },
          "error_field" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This parameter indicates which specific data field or attribute in the request caused the error\n",
            "maxLength" : 100,
            "example" : null
          },
          "recommendation_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "After an error has occurred, the gateway or payment network may provide a recommendation code. This code suggests a course of action or remedy that you can follow to resolve the issue\n",
            "maxLength" : 100,
            "example" : null
          },
          "recommendation_message" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This message is intended to provide guidance or suggestions on action or remedy that you can follow to resolve the issue\n",
            "maxLength" : 65000,
            "example" : null
          },
          "processor_error_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This code is provided by the payment processor (the entity that handles the transaction between the bank accounts and the payment networks) and indicates errors that occur at this stage of the payment process\n",
            "maxLength" : 100,
            "example" : null
          },
          "processor_error_message" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This message describes the specific error that the payment processor encountered\n",
            "maxLength" : 65000,
            "example" : null
          },
          "error_cause_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 150,
            "example" : null
          },
          "processor_advice_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An advice code from the payment gateway or network that indicates how to handle a card decline. For example, the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">try_again_later</code> means you can retry the transaction.</p>",
            "maxLength" : 100,
            "example" : null
          }
        },
        "example" : null
      },
      "Gift" : {
        "type" : "object",
        "description" : "Gift represents a subscription of a customer(**recipient** ) to a 'gift plan' which has been gifted by another customer(**gifter**). It may also have addons and coupons. Gift will be created only on immediate successful payment collection from the gifter's payment method.\n\nGift is initially created in '**scheduled** ' state. The gift can be scheduled to be notified on a particular date to the recipient by passing 'scheduled_at'. If not, the recipient is notified immediately. Gift will be moved to '**unclaimed** ' state on the date of notification. If you pass auto_claim as true, gift status will be moved to '**claimed**' immediately, otherwise, the gift will remain 'unclaimed' till the recipient claims the gift.\n\nIf the gift is not claimed before the claim_expiry_date, it will be moved to the '**expired**' state.\n\n#### GIFT SUBSCRIPTION\n\nGift subscriptions will be created in '**future** ' state. Once the gift is claimed, the subscription will be moved to '**non-renewing**' state.\n\n#### INVOICE\n\nGift subscriptions will be invoiced immediately. The invoice created has **is_gifted** as 'true' and **term_finalized** as 'false'. This is because initially the invoice term_start and term_end are set as the subscription's start_date till the end of the plan period. Once the gift is claimed, the invoice's term_finalized will be marked as 'true'. The term_start will be changed to the actual invoice's term, which is the gift-claim date and the term_end will be changed till plan's period.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies a gift\n",
            "maxLength" : 150,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Status of the gift.\n\\* claimed -\n\nGift is claimed.\n\\* cancelled -\n\nGift is cancelled.\n\\* unclaimed -\n\nGift is not yet claimed and is ready to be claimed.\n\\* scheduled -\n\nGift has been scheduled.\n\\* expired -\n\nGift is expired.\n",
            "enum" : [ "scheduled", "unclaimed", "claimed", "cancelled", "expired" ],
            "example" : null
          },
          "scheduled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.\n",
            "example" : null
          },
          "auto_claim" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the claim happens automatically. When not passed, the default value in the site settings is used.</p>",
            "example" : null
          },
          "no_expiry" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, indicates that the gift does not expire. Do not pass or pass as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nwhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_claim</code>\nis set.</p>",
            "example" : null
          },
          "claim_expiry_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The date until which the gift can be claimed. Must be set to a value after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheduled_at</code>.\nIf the gift is not claimed within <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">claim_expiry_date</code>\n, it will expire and the subscription will move to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nstate. When not passed, the value specified in the site settings will be used.\nPass as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">NULL</code>\nor do not pass when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">auto_claim</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">no_expiry</code>\nare set.</p>",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this gift resource was last updated.\n",
            "example" : null
          },
          "gifter" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Gifter details\n",
            "properties" : {
              "customer_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Gifter customer id.\n",
                "maxLength" : 50,
                "example" : null
              },
              "invoice_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Invoice raised on the gifter.\n",
                "maxLength" : 50,
                "example" : null
              },
              "signature" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Gifter sign-off name\n",
                "maxLength" : 50,
                "example" : null
              },
              "note" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Personalized message for the gift.\n",
                "maxLength" : 500,
                "example" : null
              }
            },
            "required" : [ "customer_id" ],
            "example" : null
          },
          "gift_receiver" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Receiver details\n",
            "properties" : {
              "customer_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Receiver customer id.\n",
                "maxLength" : 50,
                "example" : null
              },
              "subscription_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Subscription created for the gift.\n",
                "maxLength" : 50,
                "example" : null
              },
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "First name of the receiver as given by the gifter.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Last name of the receiver as given by the gifter,\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "Email of the receiver. All gift related emails are sent to this email.\n",
                "maxLength" : 70,
                "example" : null
              }
            },
            "required" : [ "customer_id", "subscription_id" ],
            "example" : null
          },
          "gift_timelines" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Gift timeline details\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Status of the gift.\n\\* cancelled -\n\nGift is cancelled.\n\\* expired -\n\nGift is expired.\n\\* scheduled -\n\nGift has been scheduled.\n\\* claimed -\n\nGift is claimed.\n\\* unclaimed -\n\nGift is not yet claimed and is ready to be claimed.\n",
                  "enum" : [ "scheduled", "unclaimed", "claimed", "cancelled", "expired" ],
                  "example" : null
                },
                "occurred_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when this event occurred.\n",
                  "example" : null
                }
              },
              "required" : [ "status" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "auto_claim", "gift_receiver", "gifter", "id", "no_expiry", "status" ],
        "example" : null
      },
      "GiftCancelledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "gift" : {
                "$ref" : "#/components/schemas/Gift"
              }
            },
            "required" : [ "gift" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "GiftClaimedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "gift" : {
                "$ref" : "#/components/schemas/Gift"
              }
            },
            "required" : [ "gift" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "GiftExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "gift" : {
                "$ref" : "#/components/schemas/Gift"
              }
            },
            "required" : [ "gift" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "GiftScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "gift" : {
                "$ref" : "#/components/schemas/Gift"
              }
            },
            "required" : [ "gift" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "GiftUnclaimedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "gift" : {
                "$ref" : "#/components/schemas/Gift"
              }
            },
            "required" : [ "gift" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "GiftUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "gift" : {
                "$ref" : "#/components/schemas/Gift"
              }
            },
            "required" : [ "gift" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "GrantConfiguration" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "feature", "custom_pricing_unit" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan_price", "addon", "addon_price", "charge" ],
            "example" : null
          },
          "version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "change_reason" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "is_latest" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "created_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "updated_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "entity_id", "id", "unit_id" ],
        "example" : null
      },
      "GrantConfigurationOverride" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "feature", "custom_pricing_unit" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan_price", "addon", "addon_price", "charge" ],
            "example" : null
          },
          "is_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "grant_policies" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "amount" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "trigger_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "interval", "one_time" ],
                  "example" : null
                },
                "trigger_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "trigger_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "day", "month", "year" ],
                  "example" : null
                },
                "rollover_type" : {
                  "type" : "string",
                  "default" : "none",
                  "deprecated" : false,
                  "enum" : [ "none", "unlimited", "time_limited", "capped" ],
                  "example" : null
                },
                "rollover_cap_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "rollover_cap_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "percentage", "absolute" ],
                  "example" : null
                },
                "expiration_type" : {
                  "type" : "string",
                  "default" : "none",
                  "deprecated" : false,
                  "enum" : [ "none", "interval" ],
                  "example" : null
                },
                "expiration_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "expiration_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "day", "month", "year" ],
                  "example" : null
                }
              },
              "required" : [ "amount", "expiration_type", "id", "rollover_type", "trigger_type" ],
              "example" : null
            },
            "example" : null
          },
          "effective_from" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "type" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "timestamp", "event" ],
                "example" : null
              },
              "value" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "entity_id", "entity_type", "id", "is_enabled", "subscription_id", "unit_id", "unit_type" ],
        "example" : null
      },
      "GrantConfigurationVersion" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "feature", "custom_pricing_unit" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan_price", "addon", "addon_price", "charge" ],
            "example" : null
          },
          "change_reason" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "is_latest" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "created_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "updated_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "grant_policies" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "amount" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "trigger_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "interval", "one_time" ],
                  "example" : null
                },
                "trigger_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "trigger_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "day", "month", "year" ],
                  "example" : null
                },
                "rollover_type" : {
                  "type" : "string",
                  "default" : "none",
                  "deprecated" : false,
                  "enum" : [ "none", "unlimited", "time_limited", "capped" ],
                  "example" : null
                },
                "rollover_cap_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "rollover_cap_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "percentage", "absolute" ],
                  "example" : null
                },
                "expiration_type" : {
                  "type" : "string",
                  "default" : "none",
                  "deprecated" : false,
                  "enum" : [ "none", "interval" ],
                  "example" : null
                },
                "expiration_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "expiration_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "day", "month", "year" ],
                  "example" : null
                }
              },
              "required" : [ "amount", "expiration_type", "id", "rollover_type", "trigger_type" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "entity_id", "id", "unit_id" ],
        "example" : null
      },
      "Hierarchy" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When a customer belongs to an <a href=\"https://www.chargebee.com/docs/2.0/account-hierarchy.html\" target=\"_blank\">account hierarchy</a>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hierarchy</code> resource represents the customer&#x27;s position within that hierarchy. The hierarchy provides details about the customer&#x27;s parent, children, invoice owner, and payment owner.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A customer can have a maximum of 250 direct children.</li>\n<li class=\"text-base leading-relaxed\">The hierarchy allows a maximum of 5 levels from the root node to the lowest child node.</li>\n</ul></div><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Related Endpoints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/get-hierarchy\">Get hierarchy</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/update-hierarchy-access-settings-for-a-customer\">Update hierarchy access settings</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/link-a-customer\">Link a customer to a hierarchy</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/customers/delink-a-customer\">Delink a customer from a hierarchy</a>\n</li>\n</ul></div></div>",
        "properties" : {
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the customer associated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hierarchy</code>\nresource.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "parent_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the immediate parent for the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>.\nIf the customer is the root of the hierarchy, this attribute isn&#x27;t returned.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "payment_owner_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the customer responsible for paying the invoices for the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>.\nThis ID must match either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_owner_id</code>\n.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "invoice_owner_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the customer who receives the invoice for charges incurred by the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>.\nThis ID must match either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\nor one of its ancestors.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "has_children" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the customer has child accounts in the hierarchy.\n",
            "example" : null
          },
          "children_ids" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\ns representing the immediate children, if any exist, for the customer identified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\n.</p>",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 50,
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "customer_id", "invoice_owner_id", "payment_owner_id" ],
        "example" : null
      },
      "HierarchyCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "HierarchyDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "HierarchyOperationType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "complete_hierarchy", "subordinates", "path_to_root" ],
        "example" : null
      },
      "HostedPage" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Hosted pages are the easiest way to integrate Chargebee with your website. For card payment methods, they help meet most of your PCI DSS compliance requirements. Chargebee offers hosted pages where your customers can perform the following actions:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/hosted_pages/create-checkout-for-a-new-subscription\">Checkout a new subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/hosted_pages/create-checkout-to-update-a-subscription\">Checkout changes to an existing subscription</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/hosted_pages/update-payment-method\">Update a payment method</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"/docs/api/hosted_pages/collect-now\">Make payments for all due invoices</a>\n</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/hosted_pages/extend-subscription\">Extending a subscription</a>\nWhen you create a hosted page, it is available at a secure and unique URL. This URL can then be provided to your customer on your website or by other means such as email. On successful completion of the hosted page workflow by the customer, they are redirected to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code>\nwith the hosted page <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state</code>\npassed as query string parameters. As soon as the redirection happens, <a href=\"/docs/api/hosted_pages/retrieve-a-hosted-page\">retrieve the hosted page</a>\nto get details of the customer, subscription, invoice etc.</li>\n</ul></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier generated for each hosted page requested.\n",
            "maxLength" : 70,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of the requested hosted page.\n\\* accept_quote -\n\nAccept quote via hosted page\n\\* collect_now -\n\nCollect Unpaid Invoices for a Customer\n\\* checkout_gift -\n\nCheckout a gift subscription\n\\* checkout_new -\n\nCheckout new Subscription\n\\* extend_subscription -\n\nTo extend a Subscription period\n\\* checkout_one_time -\n\nCheckout one time\n\\* update_payment_method -\n\nUpdate Payment Method for a Customer\n\\* view_voucher -\n\nView Details of a voucher\n\\* pre_cancel -\n\nThis hosted page is used to help retain customers when they attempt to cancel their account or subscription.\n\\* manage_payment_sources -\n\nManage Payments for a customer\n\\* checkout_existing -\n\nCheckout existing Subscription\n\\* claim_gift -\n\nClaim a gift subscription\n",
            "enum" : [ "checkout_new", "checkout_existing", "update_payment_method", "manage_payment_sources", "collect_now", "extend_subscription", "checkout_one_time", "pre_cancel", "view_voucher", "accept_quote" ],
            "example" : null
          },
          "url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique URL for the hosted page that will be included in your website.\n",
            "maxLength" : 250,
            "example" : null
          },
          "state" : {
            "type" : "string",
            "default" : "created",
            "deprecated" : false,
            "description" : "Indicating the current state of the hosted page resource.\n\\* acknowledged -\n\nIndicates the succeeded hosted page is acknowledged.\n\\* created -\n\nIndicates the hosted page is just created.\n\\* requested -\n\nIndicates the hosted page is requested by the website\n\\* cancelled -\n\nIndicates the page is cancelled by the end user after requesting it.\n\\* succeeded -\n\nIndicates the hosted page is successfully submitted by the user and response is sent to the return url.\n",
            "enum" : [ "created", "requested", "succeeded", "cancelled", "acknowledged" ],
            "example" : null
          },
          "pass_thru_content" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This attribute allows you to store custom information with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code> object. You can use it to associate specific data with a hosted page session.\nFor example, you can store the ID of the marketing campaign that initiated the user session. After a successful checkout, when the customer is redirected, you can retrieve the hosted page ID from the <a href=\"/docs/api/hosted_pages/create-checkout-for-a-new-subscription#redirect_url\">redirect URL</a>&#x27;s query parameters. Using this ID, you can fetch the hosted page and perform actions related to the success of the marketing campaign.</p>",
            "maxLength" : 2048,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates when this hosted page url is generated.\n",
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The date and time when the hosted page URL expires. After this timestamp, the page can no longer be accessed.</p>\n<p class=\"mb-2\">The expiration period depends on the <code><a href=\"/docs/api/hosted_pages/hosted_page-object#type\">type</a></code> of hosted page:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_new</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_existing</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">checkout_one_time</code>, the URL expires 3 hours after the page is created.</li>\n<li class=\"text-base leading-relaxed\">For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">collect_now</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">manage_payment_sources</code>, the URL expires 5 days after creation.</li>\n</ul>",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "This attribute will be returned only during retrieve hosted page API call and also the retrieved hosted page resource state should be either in \"succeeded\" or \"cancelled\" state. If hosted page state is \"succeeded\", then the subscription, customer, card \\\\\\& invoice(optional) resources during checkout can be obtained. If hosted page is state is \"cancelled\", then it will be empty i.e no information about checkout.\n",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this hosted page was last updated.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "checkout_info" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "Customer Info (email, first name and last name) given in the checkout page used for tracking abandoned carts. \\[Learn more\\](https://www.chargebee.com/docs/abandoned-carts.html)\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/advanced-features\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">hosted_page</code>.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "content" ],
        "example" : null
      },
      "ImpactedCustomer" : {
        "type" : "object",
        "properties" : {
          "action_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "download" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "download_url" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 3500,
                "example" : null
              },
              "valid_till" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "example" : null
              },
              "mime_type" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "download_url", "valid_till" ],
            "example" : null
          }
        },
        "example" : null
      },
      "ImpactedItem" : {
        "type" : "object",
        "description" : "Item entitlements can change due to certain events in Chargebee. The impacted_items represents the items whose entitlements have changed owing to an event. It is returned as part of the content attribute of the webhook triggered by the event. The following events can contain the impacted_items resource:\n\n* A feature is created, activated, or deleted.\n* An item_entitlement is updated or removed.\n* An entitlement_override is auto-removed.\n\n**Note**\n\nimpacted_items cannot be retrieved via API; the resource is sent to you only via webhooks.\n",
        "properties" : {
          "count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "The total number of items that have been impacted.\n",
            "example" : null
          },
          "items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The list of items that have been impacted. The objects in this array have the following keys:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>: (string, max chars = 100) The <a href=\"/docs/api/items/item-object#id\">unique identifier</a> for the item.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>: (enumerated string) The <a href=\"/docs/api/items/item-object#type\">type</a> of the item.</li>\n</ul>\n<p class=\"mb-2\">This list can contain a maximum of 1,000 items. The full list of items is available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download</code>.</p>",
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "download" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/downloads\">download</a>\nresource containing all the impacted items. The list of items is available as a JSON array in the file at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download.url</code>\nuntil <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download.valid_till</code>\n.</p>",
            "properties" : {
              "download_url" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The URL at which the file is available for download.\n",
                "maxLength" : 3500,
                "example" : null
              },
              "valid_till" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The time until which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download_url</code>\nis valid.</p>",
                "example" : null
              },
              "mime_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [media type](https://en.wikipedia.org/wiki/Media_type)\nof the file.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "download_url", "valid_till" ],
            "example" : null
          }
        },
        "example" : null
      },
      "ImpactedItemPrice" : {
        "type" : "object",
        "properties" : {
          "count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "item_prices" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "download" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "download_url" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 3500,
                "example" : null
              },
              "valid_till" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "example" : null
              },
              "mime_type" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "download_url", "valid_till" ],
            "example" : null
          }
        },
        "example" : null
      },
      "ImpactedSubscription" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When certain <a href=\"/docs/api/events\">events</a> in Chargebee cause changes to <a href=\"/docs/api/subscription_entitlements\">subscription entitlements</a>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">impacted_subscriptions</code> resource indicates the affected subscriptions. This resource is part of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">content</code> attribute of the triggered <a href=\"/docs/api/webhooks\">webhook</a> for the following events:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> is <a href=\"/docs/api/events\">created</a>, <a href=\"/docs/api/events\">activated</a>, or <a href=\"/docs/api/events\">deleted</a>.</li>\n<li class=\"text-base leading-relaxed\">When an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code> is <a href=\"/docs/api/events\">updated</a> or <a href=\"/docs/api/events\">removed</a>.</li>\n<li class=\"text-base leading-relaxed\">When an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> is <a href=\"/docs/api/events\">updated</a>, <a href=\"/docs/api/events\">removed</a>, or <a href=\"/docs/api/events\">auto-removed</a>.</li>\n</ul><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Only a maximum of 100,000 subscription IDs are reported. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to increase this limit for your Chargebee site.</li>\n<li class=\"text-base leading-relaxed\">You can&#x27;t retrieve <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">impacted_subscriptions</code> through the API. Only webhooks send you this resource.</li>\n</ul></div></div>",
        "properties" : {
          "count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "The total count of affected subscriptions.\n",
            "example" : null
          },
          "subscription_ids" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The impacted subscription IDs. This list contains up to 1,000 IDs. The complete list of subscription IDs is in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download</code>\nresource, which can store up to 100,000 IDs.</p>",
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "download" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This <a href=\"/docs/api/downloads\">download</a> resource contains the impacted subscription IDs. These IDs are in a JSON array in the file at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download.url</code> until <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download.valid_till</code>. The file at this URL stores up to 100,000 subscription IDs. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> to increase this limit for your Chargebee site.</p>",
            "properties" : {
              "download_url" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The download URL for the file.\n",
                "maxLength" : 3500,
                "example" : null
              },
              "valid_till" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The expiration time for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">download_url</code>\n.</p>",
                "example" : null
              },
              "mime_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [media type](https://en.wikipedia.org/wiki/Media_type)\nof the file.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "download_url", "valid_till" ],
            "example" : null
          }
        },
        "example" : null
      },
      "InAppSubscription" : {
        "type" : "object",
        "description" : "**Important:**\n\n* We've stopped giving access to the legacy solution due to the limitations mentioned [here](https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/mobile-subscriptions-limitations). Please [request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/omnichannel-subscription&ref=feature) for enabling the new [Omnichannel Subscriptions](/docs/api/recorded_purchases/recorded-purchase-object) solution.\n* These APIs operate asynchronously. When you receive a successful response code from an API call, it indicates only the successful submission of your request, not the completion of the operation.\n\nUsing In-app Subscriptions, you can track subscriptions you sell and service via in-app purchase channels such as Apple's App Store and Google's Play Store. Call [this API](/docs/api/in_app_subscriptions/process-purchase-command) to notify Chargebee of new subscription purchases. Chargebee responds by creating corresponding subscriptions. You can make the API call directly from the client-side application or from your server. In the case of the Apple App Store and Google Play Store integration, you can also configure Chargebee to receive server notifications from [Apple](https://developer.apple.com/documentation/appstoreservernotifications) and [Google](https://developer.android.com/google/play/billing/rtdn-reference#sub) to keep subscriptions up-to-date.  \n**Note:**\n\nAfter creating a subscription in Chargebee using the [process purchase command](/docs/api/in_app_subscriptions/process-purchase-command) API, Chargebee manages it in real-time using notification events from [Apple](/docs/api/in_app_purchase_events) or [Google](/docs/api/in_app_purchase_events). To enable these notifications, generate a notification URL using these links - [Apple](https://www.chargebee.com/docs/2.0/mobile-app-store-product-iap.html#connection-keys_notification-url) and [Google](https://www.chargebee.com/docs/2.0/mobile-playstore-notifications.html) and configure it in their respective stores.  \n**In-app subscriptions are read-only**\n\nThe subscriptions created via the [Process Purchase Command API](/docs/api/in_app_subscriptions/process-purchase-command) are managed by Apple or Google in response to actions taken by your subscribers via their respective accounts. Chargebee only keeps track of these subscriptions: creating and modifying them in response to events happening against the original subscriptions. Consequently, these subscriptions cannot be modified by you via the Chargebee admin console or the [Subscriptions API](/docs/api/subscriptions).\n",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/subscriptions/subscription-object#id\">subscription</a>\nfor which the receipt was sent.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/customers/customer-object#id\">customer</a>\nobject to which the subscription belongs.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "plan_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the plan-item price of the subscription.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "store_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The status of the subscription for the store\n\\* paused -\n\nWhen the subscription is paused.\n\\* in_trial -\n\nWhen the subscription is in trial.\n\\* active -\n\nWhen the subscription is active.\n\\* cancelled -\n\nWhen the subscription is cancelled.\n",
            "enum" : [ "in_trial", "active", "cancelled", "paused" ],
            "example" : null
          },
          "invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the invoice generated in Chargebee</p>",
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "subscription_id" ],
        "example" : null
      },
      "Invoice" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">An invoice is a commercial document representing a sale of products/services offered by you to a customer. It enumerates all the charges, adjustments, payments, discounts and taxes associated with the sale.</p><p class=\"mb-2\">An invoice is said to be a recurring one when it is has at least one charge for <a href=\"/docs/api/items\">a plan or an addon item price</a>. It is a non-recurring one when it has charges for only charge-item prices or <a href=\"https://www.chargebee.com/docs/2.0/charges.html\" target=\"_blank\">one-time charges</a>.</p><p class=\"mb-2\">The item prices for any given billing term of a subscription are billed via an invoice at the beginning of the term (unless the charges are left unbilled). However, item prices that belong to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items are billed at the end of the term via a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> invoice that can <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\">close automatically</a> or via <a href=\"/docs/api/invoices/close-a-pending-invoice\">an API call</a>. Moreover, when there are no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items in the subscription, the invoices can still be generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> while <a href=\"/docs/api/subscriptions/create-subscription-for-items\">creating</a> or <a href=\"/docs/api/subscriptions/update-subscription-for-items\">updating</a> a subscription.</p><h4>Auto-collection</h4><p class=\"mb-2\">If <a href=\"https://www.chargebee.com/docs/2.0/customers.html#auto-collection-status\" target=\"_blank\">auto-collection</a> is enabled, then immediately on invoice generation (or, in case of subscriptions that have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_pending_invoices</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, on <a href=\"/docs/api/invoices/close-a-pending-invoice\">invoice closure</a>), the <a href=\"/docs/api/customers/customer-object#payment_method\">payment method</a> on file is charged:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">If the payment succeeds, the invoice is marked as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>.</li>\n<li class=\"text-base leading-relaxed\">On payment failure, the invoice is marked as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code> and <a href=\"https://www.chargebee.com/docs/2.0/dunning-v2.html\" target=\"_blank\">dunning settings</a> are taken into account for payment retries.</li>\n<li class=\"text-base leading-relaxed\">If no retry attempts are configured, or when retries are exhausted, the invoice is marked as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">not_paid</code>.</li>\n<li class=\"text-base leading-relaxed\">the amount due is zero or negative, the invoice is immediately marked as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code> and the balance, if any, is added to <a href=\"https://www.chargebee.com/docs/2.0/customers.html#excess-payments\" target=\"_blank\">excess payments</a> for the customer.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> If <a href=\"https://www.chargebee.com/docs/2.0/consolidated-invoicing.html\" target=\"_blank\">consolidated invoicing</a> is enabled, the attribute <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> is unavailable when the invoice has line items from multiple subscriptions. The individual subscription ids are seen under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.subscription_id</code>.</p></div><div id=\"recurring-invoice\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#recurring-invoice-content\" aria-expanded=\"false\" aria-controls=\"recurring-invoice-content\"><h4>Recurring and non-recurring invoices</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"recurring-invoice-content\"><p class=\"mb-2\">A recurring invoice contains at least one line item that is billed on a recurring basis. Specifically, it has at least one <a href=\"/docs/api/invoices/invoice-object#line_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[]</code></a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_item_price</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon_item_price</code>. A non-recurring invoice contains no recurring line items.</p></div></div><div id=\"refundable-amount\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#refundable-amount-content\" aria-expanded=\"false\" aria-controls=\"refundable-amount-content\"><h4>Refundable amount for an invoice</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"refundable-amount-content\"><p class=\"mb-2\">The refundable amount for an invoice is the (amount paid on the invoice + refundable credit applied on the invoice + taxes withheld on the invoice) minus (amount issued as refundable credit notes from the invoice). Each of these amounts is obtained from the invoice resource as follows:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Amount paid on the invoice: <a href=\"/docs/api/invoices/invoice-object#invoice_amount_paid\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_paid</code></a></li>\n<li class=\"text-base leading-relaxed\">Refundable credit applied on the invoice: <a href=\"/docs/api/invoices/invoice-object#invoice_credits_applied\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credits_applied</code></a></li>\n<li class=\"text-base leading-relaxed\">Taxes withheld on the invoice: Sum of <a href=\"/docs/api/invoices/invoice-object#invoice_linked_taxes_withheld\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld[].amount</code></a></li>\n<li class=\"text-base leading-relaxed\">Amount issued as refundable credit notes from the invoice: Sum of <a href=\"/docs/api/invoices/invoice-object#invoice_issued_credit_notes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes[i].cn_total</code></a> where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">issued_credit_notes[i].cn_status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refunded</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund_due</code>.</li>\n</ul></div></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The invoice number. Acts as a identifier for invoice and typically generated sequentially.\n",
            "maxLength" : 50,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the customer this invoice belongs to.\n",
            "maxLength" : 50,
            "example" : null
          },
          "payment_owner" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Payment owner of an invoice\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The identifier of the subscription this invoice belongs to.\n<strong class=\"font-semibold\">Note</strong>:\nWhen consolidated invoicing is enabled, you have to refer to <a href=\"/docs/api/invoices/invoice-object#line_items\">line_item`s</a>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>\nto identify the subscriptions associated with this invoice. However, it is important to avoid using this attribute if the invoice includes charges from multiple subscriptions, as it will be null in such cases.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "recurring" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Boolean indicating whether this invoice belongs to a subscription\n",
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Current status of this invoice.</p>\n* paid - <p class=\"mb-2\">Indicates a paid invoice.</p>\n* posted - <p class=\"mb-2\">Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period</p>\n* pending - <p class=\"mb-2\">The <a href=\"/docs/api/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when it has line items that belong to items that are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> or when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.create_pending_invoices</code>attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\nThe <a href=\"/docs/api/v2/pcv-1/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\">Metered Billing</a> is enabled for the site.</p>\n* payment_due - <p class=\"mb-2\">Indicates the payment is not yet collected and is being retried as per retry settings.</p>\n* not_paid - <p class=\"mb-2\">Indicates the payment is not made and all attempts to collect is failed.</p>\n* voided - <p class=\"mb-2\">Indicates a voided invoice.</p>",
            "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
            "example" : null
          },
          "date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The document date displayed on the invoice PDF. By default, it has the same value as the effective date of the action that created the invoice (subscription creation, update, or invoice creation). This date can be backdated (set to a value in the past) while performing the actions. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription or non-recurring charge is effective as of a past date. However, if the invoice is created as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\n, and if the site is configured to set invoice dates to the date of closing, then upon invoice closure, this date is changed to the invoice closing date.</p>",
            "example" : null
          },
          "due_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Due date of the invoice\n",
            "example" : null
          },
          "net_term_days" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 0,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due.</p>",
            "example" : null
          },
          "po_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Purchase Order Number for this invoice\n",
            "maxLength" : 100,
            "example" : null
          },
          "vat_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "VAT/ Tax registration number of the customer. [Learn more](https://www.chargebee.com/docs/tax.html#capture-tax-registration-number)\n",
            "maxLength" : 20,
            "example" : null
          },
          "price_type" : {
            "type" : "string",
            "default" : "tax_exclusive",
            "deprecated" : false,
            "description" : "The price type of the invoice.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n",
            "enum" : [ "tax_exclusive", "tax_inclusive" ],
            "example" : null
          },
          "exchange_rate" : {
            "type" : "number",
            "format" : "decimal",
            "deprecated" : false,
            "description" : "Exchange rate used for base currency conversion.Note that when converting foreign currency invoices to local currency for VAT purposes, the exchange rates used differ from the base currency exchange rate provided in this field. This is due to regulations set by tax authorities, which require the use of official sources such as European Central Bank rates for local currency conversion.\n",
            "maximum" : 1000000000,
            "minimum" : 0.0000000010,
            "example" : null
          },
          "local_currency_exchange_rate" : {
            "type" : "number",
            "format" : "decimal",
            "deprecated" : false,
            "description" : "This parameter represents the exchange rate as a relative price of the base currency that appears as local currency in invoices and credit notes. The local currency exchange rate specifically refers to the exchange rate of a country's currency when converting it to another currency.\n\nFor example, if you want to convert US dollars to euros, the local currency exchange rate would be the rate at which you can convert US dollars to euros.\n",
            "maximum" : 1000000000,
            "minimum" : 0.0000000010,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) for the invoice\n",
            "maxLength" : 3,
            "example" : null
          },
          "local_currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed.\n",
            "maxLength" : 3,
            "example" : null
          },
          "tax" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total tax amount for this invoice\n",
            "minimum" : 0,
            "example" : null
          },
          "sub_total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The sum of all the line item amounts minus the sum of all line item discounts. In other words, this is the sum of all <code><a href=\"/docs/api/invoices/invoice-object#line_items\">line_items[]</a>.amount</code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">the sum of all <code><a href=\"/docs/api/invoices/invoice-object#line_item_discounts\">line_item_discounts[]</a>.discount_amount</code>.</li>\n</ul>",
            "minimum" : 0,
            "example" : null
          },
          "sub_total_in_local_currency" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Invoice subtotal in the currency of the place of supply.\n",
            "minimum" : 0,
            "example" : null
          },
          "total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Invoiced amount displayed in cents; that is, a decimal point is not present between the whole number and the decimal part. For example, $499.99 is displayed as 49999, and so on.\n",
            "minimum" : 0,
            "example" : null
          },
          "total_in_local_currency" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total invoice amount in the currency of the place of supply.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_due" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unpaid amount that is due on the invoice. This is calculated as: <code><a href=\"/docs/api/invoices/invoice-object#total\">total</a></code></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<code><a href=\"/docs/api/invoices/invoice-object#amount_paid\">amount_paid</a></code>\n</li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#applied_credits\">applied_credits</a>.applied_amount</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a>.cn_total</code></li>\n<li class=\"text-base leading-relaxed\">sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_taxes_withheld\">linked_taxes_withheld</a>.amount</code>.</li>\n</ul>",
            "minimum" : 0,
            "example" : null
          },
          "amount_adjusted" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Total adjustments made against this invoice.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_paid" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Payments collected successfully for the invoice. This is the sum of <code><a href=\"/docs/api/invoices/invoice-object#linked_payments\">linked_payments[]</a>.txn_amount</code>\nfor all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[]</code>\nthat have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">txn_status</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">success</code>.</p>",
            "minimum" : 0,
            "example" : null
          },
          "paid_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating the date \\& time this invoice got paid.\n",
            "example" : null
          },
          "write_off_amount" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Amount written off against this invoice.\n",
            "minimum" : 0,
            "example" : null
          },
          "credits_applied" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Total credits applied against this invoice.\n",
            "minimum" : 0,
            "example" : null
          },
          "dunning_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current dunning status of the invoice.\n\\* exhausted -\n\nMaximum number of attempts have been made.\n\\* stopped -\n\nDunning has stopped for this invoice.\n\\* success -\n\nPayment successfully collected during dunning process.\n\\* in_progress -\n\nDunning is still in progress.\n",
            "enum" : [ "in_progress", "exhausted", "stopped", "success" ],
            "example" : null
          },
          "next_retry_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when will the next attempt to collect payment for this invoice occur.\n",
            "example" : null
          },
          "voided_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating the date \\& time this invoice got voided.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this invoice was last updated. This attribute will be present only if the resource has been updated after 2016-09-28.\n**Note** :\nThis value does not change when the following attributes are changed: *next_retry_at, dunning_status, has_advance_charges*\n",
            "example" : null
          },
          "line_items_next_offset" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This attribute is returned only if additional resources are available. Use this value as the input parameter for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items_offset</code> to retrieve the next set of resources.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only when Enterprise-scale Invoicing is enabled.</li>\n<li class=\"text-base leading-relaxed\">Enterprise-scale Invoicing is currently in <strong class=\"font-semibold\">Private Beta</strong>. Please reach out to <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a> to enable this feature.</li>\n</ul></div>",
            "maxLength" : 1000,
            "example" : null
          },
          "first_invoice" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Boolean indicating the first invoice raised for the subscription. In the case of a non-recurring invoice, it indicates the first invoice raised for the customer.\n",
            "example" : null
          },
          "new_sales_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The share of the invoice total due to new sales. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">first_invoice</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, this attribute is the same as total. However, when the invoice is a <a href=\"https://www.chargebee.com/docs/2.0/consolidated-invoicing.html \" target=\"_blank\">consolidated</a>\none, then it is the sum of all <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.amount</code>\nbelonging to a new.</p>",
            "minimum" : 0,
            "example" : null
          },
          "has_advance_charges" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether an [advance charge](https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/advance-invoices) is present in this invoice.\n",
            "example" : null
          },
          "term_finalized" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Boolean indicating this invoice line_items terms are finalized or not.\n",
            "example" : null
          },
          "is_gifted" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Boolean indicating this invoice is gifted or not.\n",
            "example" : null
          },
          "generated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The date when the invoice is finalized. This is the date in the invoice lifecycle when its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nbecomes any one of the following for the first time: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_due</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">posted</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paid</code>.\nFor an invoice with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\n, this happens when it gets closed.</p>",
            "example" : null
          },
          "expected_payment_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date and time at which [dunning](https://www.chargebee.com/docs/payments/2.0/dunning-v2.html) should resume automatically for the invoice. This attribute is present only if dunning is currently [paused](/docs/api/invoices/pause-dunning-for-invoice) for the invoice.\n**See also** : [Dunning resumption process](/docs/api/invoices/resume-dunning-for-invoice).\n",
            "example" : null
          },
          "amount_to_collect" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Payments that are yet to be collected for the invoice. This is determined as <a href=\"/docs/api/invoices/invoice-object#amount_due\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code></a> - the sum of all <a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[txn_amount][i]</code></a> where <a href=\"/docs/api/invoices/invoice-object#linked_payments\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_payments[txn_status][i]</code></a> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>.</p>",
            "minimum" : 0,
            "example" : null
          },
          "round_off_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates the rounded-off amount. For example, if your invoice amount is $99.99, and the amount is rounded off to $100.00, in this case, $100.00 is your invoice amount, $0.01 is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round_off_amount</code>.\nIf there is no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">round-off amount</code>\n, it will display <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\n.</p>",
            "minimum" : 0,
            "example" : null
          },
          "void_reason_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reason code for voiding the invoice. Select from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Invoices \\> Void invoice**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive\n",
            "maxLength" : 100,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates that this resource has been deleted.\n",
            "example" : null
          },
          "tax_category" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the customer's category for the Goods and Services Tax (GST). This field is returned only if you've configured GST for the India region.\n",
            "example" : null
          },
          "vat_number_prefix" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
            "maxLength" : 10,
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com)\nfor more information.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the [business entity](/docs/api/advanced-features)\nof this invoice. Depending on whether the invoice was created directly for a customer or for a subscription, this is the business entity of the [customer](/docs/api/invoices/invoice-object#customer_id)\nor the [subscription](/docs/api/invoices/invoice-object#subscription_id)\nrespectively.\n",
            "maxLength" : 50,
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of line items for this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies a line_item\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the subscription this line item belongs to.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Start date of this line item.\n",
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "End date of this line item.\n",
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Unit amount of the line item.\n",
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 1,
                  "deprecated" : false,
                  "description" : "[Quantity of the recurring item](/docs/api/invoices/invoice-object#line_items_quantity) represented by this line item.\nFor metered line items, this value is updated from [usages](/docs/api/usages) when:\n\n* the invoice is generated as pending\n\n* the invoice is [closed](/docs/api/invoices/close-a-pending-invoice)\n\n* the sync usages API is called\n\n",
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                  "example" : null
                },
                "pricing_model" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n",
                  "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                  "example" : null
                },
                "is_taxed" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Specifies whether this line item is taxed or not\n",
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The tax amount charged for this item\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "Rate of tax used to calculate tax for this lineitem\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total discounts for this line\n",
                  "minimum" : 0,
                  "example" : null
                },
                "item_level_discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Line Item-level discounts for this line.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "metered" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "is_percentage_pricing" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "reference_line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier of the invoice line item to which this credit note line item is related. This is the same as [invoice.line_items.id](/docs/api/invoices/invoice-object#line_items_id)\n.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this line item.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "entity_description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this item.\n",
                  "maxLength" : 500,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the modelled entity this line item is based on.\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n",
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "tax_exempt_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* tax_not_configured_external_provider - <p class=\"mb-2\">If the tax is not configured for the country in 3rd party tax provider.</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>\n* zero_value_item - <p class=\"mb-2\">If the total invoice value/amount is equal to zero. E.g., If the total order value is $10 and a $10 coupon has been applied against that order, the total order value becomes $0. Hence the invoice value also becomes $0.</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>",
                  "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the customer this line item belongs to\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of tiers applicable for this line item\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies a line_item\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lower limit of a range of units for the tier\n",
                  "minimum" : 0,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The upper limit of a range of units for the tier\n",
                  "example" : null
                },
                "quantity_used" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The number of units purchased in a range.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "quantity_used_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of deduction(s) applied for each line item of this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique id of the line item that this deduction is for.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "discount_amount", "discount_type", "line_item_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applied on line items\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique reference id of the line item for which the tax is applicable\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "tax_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The rate of tax used to calculate tax amount\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period end of the tax rate for the line item.\n",
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period start of the tax rate for the line item.\n",
                  "example" : null
                },
                "prorated_taxable_amount" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "description" : "Indicates the prorated line item amount in cents.\n",
                  "maximum" : 1000000000,
                  "minimum" : -1000000000,
                  "example" : null
                },
                "is_partial_tax_applied" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                  "example" : null
                },
                "is_non_compliance_tax" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                  "example" : null
                },
                "taxable_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The tax amount\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_juris_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The type of tax jurisdiction\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* state -\n\nThe tax jurisdiction is a state\n\\* city -\n\nThe tax jurisdiction is a city\n\\* special -\n\nSpecial tax jurisdiction.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* county -\n\nThe tax jurisdiction is a county\n\\* country -\n\nThe tax jurisdiction is a country\n\\* other -\n\nJurisdictions other than the ones listed above.\n",
                  "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                  "example" : null
                },
                "tax_juris_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax jurisdiction\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_juris_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The tax jurisdiction code\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_amount_in_local_currency" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "local_currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                  "maxLength" : 3,
                  "example" : null
                }
              },
              "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_credits" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "A list of store credits applied to line items.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "cn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The ID of the credit note from which the credit is applied.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "applied_amount" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The credit amount applied to the line item.\n",
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique ID of the line item to which this credit is applied.\n",
                  "maxLength" : 40,
                  "example" : null
                }
              },
              "required" : [ "applied_amount", "cn_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_addresses" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of addresses used for tax calculation on line items.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Line item reference\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "first_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "First name of the customer\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "last_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Last name of the customer\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "format" : "email",
                  "deprecated" : false,
                  "description" : "Email address of the customer\n",
                  "maxLength" : 70,
                  "example" : null
                },
                "company" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the company\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "phone" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Phone number of the customer\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "line1" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 1\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line2" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 2\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line3" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 3\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "city" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the city\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "state_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "state" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "State or Province\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "country" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The billing address of the customer, specified as an [ISO 3166 alpha-2 code](https://www.iso.org/iso-3166-country-codes.html).\nEntering an invalid code will return an error.  \nIf [EU VAT](https://www.chargebee.com/docs/eu-vat.html) (2021 or later) or [Brexit configuration](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) is enabled, 'United Kingdom-Northern Ireland' is a valid option.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "zip" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                  "maxLength" : 20,
                  "example" : null
                },
                "validation_status" : {
                  "type" : "string",
                  "default" : "not_validated",
                  "deprecated" : false,
                  "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n",
                  "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of all deductions applied to the invoice.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description for this deduction.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>",
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "coupon_set_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "amount", "entity_type" ],
              "example" : null
            },
            "example" : null
          },
          "taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applied for this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied. E.g. GST.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The tax amount.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description of the tax item.\n",
                  "maxLength" : 250,
                  "example" : null
                }
              },
              "required" : [ "amount", "name" ],
              "example" : null
            },
            "example" : null
          },
          "tax_origin" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "It represents information about the tax details that are applied to an invoice. Additionally, it specifies the country from which the tax is applied, as well as the relevant tax registration number.\n",
            "properties" : {
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The country code in ([ISO 3166-1 alpha-2 format](https://www.iso.org/iso-3166-country-codes.html)\n) where the tax originated from.\n",
                "maxLength" : 50,
                "example" : null
              },
              "registration_number" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "It represents the tax registration number for the entity used to collect tax.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "example" : null
          },
          "linked_taxes_withheld" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Details of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_withheld</code>\nagainst this invoice.</p>\n<span featureId=\"cb-tax-withheld\" isMicro=\"true\"></span>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">An auto-generated unique identifier for the tax withheld. The value starts with the prefix <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_</code>.\nFor example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_16BdDXSlbu4uV1Ee6</code>\n.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount withheld by the customer as tax from the invoice. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The description for this tax withheld.\n",
                  "maxLength" : 65000,
                  "example" : null
                },
                "date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Date or time associated with the tax withheld.\n",
                  "example" : null
                },
                "reference_number" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique external reference number for the tax withheld. Typically, this is the reference number used by the system you are integrating the API with. Depending on your integration, this could be the reference number issued by the taxation authority to identify the customer or the specific tax transaction.\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "id" ],
              "example" : null
            },
            "example" : null
          },
          "linked_payments" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of transactions for this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "txn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies the transaction.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "applied_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The transaction amount applied to this invoice\n",
                  "minimum" : 0,
                  "example" : null
                },
                "applied_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp at which the transaction is applied.\n",
                  "example" : null
                },
                "txn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The status of this transaction.</p>\n* timeout - <p class=\"mb-2\">Transaction failed because of Gateway not accepting the connection.</p>\n* late_failure - <p class=\"mb-2\">Indicates that a successful payment transaction has failed now due to a late failure notification from the payment gateway, typically caused by issues like insufficient funds or a closed bank account.</p>\n* failure - <p class=\"mb-2\">Transaction failed. Refer the &#x27;error_code&#x27; and &#x27;error_text&#x27; fields to know the reason for failure</p>\n* in_progress - <p class=\"mb-2\">Transaction is being processed by the gateway. This typically happens for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.</p>\n* success - <p class=\"mb-2\">The transaction is successful.</p>\n* voided - <p class=\"mb-2\">The transaction got voided or authorization expired at gateway.</p>\n* needs_attention - <p class=\"mb-2\">When connection with the Gateway gets terminated abruptly. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\nstatus Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nYou can use this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(Gateway Transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nfor a <a href=\"/docs/api/transactions/transaction-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code></a>\ntransaction to be reconciled at par with the gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransaction status</p></div>",
                  "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                  "example" : null
                },
                "txn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates when this transaction occurred.\n",
                  "example" : null
                },
                "txn_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of the transaction\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "applied_amount", "applied_at", "txn_id" ],
              "example" : null
            },
            "example" : null
          },
          "reference_transactions" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "A list of up to 20 transactions for this invoice. The list can contain authorizations and payments. Transactions are sorted by creation date in ascending order.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "applied_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount from the transaction that was applied to the invoice.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "applied_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The time when the transaction was applied to the invoice, in seconds since the Unix epoch.\n",
                  "example" : null
                },
                "txn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier for the transaction.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "txn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The status of the transaction.</p>\n* timeout - <p class=\"mb-2\">The transaction failed because the gateway did not accept the connection.</p>\n* success - <p class=\"mb-2\">The transaction was successful.</p>\n* in_progress - <p class=\"mb-2\">The transaction is being processed by the gateway. This typically occurs for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, for cards, refund transactions. Processing can take 2-7 days, depending on the gateway and payment method.</p>\n* needs_attention - <p class=\"mb-2\">The transaction could not be completed because the connection with the gateway was terminated unexpectedly. For some gateways, Chargebee automatically reconciles such transactions. For others, you must manually reconcile them by using the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nUse this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(gateway transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransactions.</p></div>\n* late_failure - <p class=\"mb-2\">A payment that was previously marked as successful has failed due to a late failure notification from the gateway. This can happen if the account had insufficient funds or was closed after the initial authorization.</p>\n* voided - <p class=\"mb-2\">The transaction was voided, or the authorization expired at the gateway.</p>\n* failure - <p class=\"mb-2\">The transaction failed. Refer to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">error_code</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">error_text</code>\nfields for details about the failure.</p>",
                  "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                  "example" : null
                },
                "txn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The time when the transaction occurred, in seconds since the Unix epoch.\n",
                  "example" : null
                },
                "txn_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The total amount of the transaction.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "txn_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of transaction.</p>\n* authorization - <p class=\"mb-2\">The transaction is an authorization to capture the <code><a href=\"/docs/api/transactions/transaction-object#amount\">amount</a></code>\nfrom the customer&#x27;s <code><a href=\"/docs/api/payment_sources\">payment_source</a></code>\n.</p>\n* refund - <p class=\"mb-2\">The transaction is a refund that returns the <code><a href=\"/docs/api/transactions/transaction-object#amount\">amount</a></code>\nto the customer&#x27;s <code><a href=\"/docs/api/payment_sources\">payment_source</a></code>\n.</p>\n* payment - <p class=\"mb-2\">The transaction is a payment that captures the <code><a href=\"/docs/api/transactions/transaction-object#amount\">amount</a></code>\nfrom the customer&#x27;s <code><a href=\"/docs/api/payment_sources\">payment_source</a></code>\n.</p>\n* payment_reversal - <p class=\"mb-2\">The transaction is a reversal of a previously captured payment.</p>",
                  "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
                  "example" : null
                },
                "amount_capturable" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">This is the part of the authorized <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\nthat is yet to be captured. The payment capture is recorded as a transaction of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment</code>.\nApplicable only for a transaction of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorization</code>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "authorization_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Type of reason for the authorization transaction.</p>\n* verification - <p class=\"mb-2\">The transaction was created to verify the payment method.</p>\n* blocking_funds - <p class=\"mb-2\">The transaction was created to block funds from the payment method.</p>\n* scheduled_capture - <p class=\"mb-2\">The transaction was authorized in advance for capture at a later time by a scheduled system job. The capture may succeed or fail, and its outcome is recorded as a linked transaction under <code><a href=\"\">linked_payments</a></code>\n.</p>",
                  "enum" : [ "verification", "blocking_funds", "scheduled_capture" ],
                  "example" : null
                }
              },
              "required" : [ "amount_capturable", "applied_amount", "applied_at", "txn_id", "txn_type" ],
              "example" : null
            },
            "example" : null
          },
          "dunning_attempts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of dunning_attempts for this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "attempt" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Dunning attempt number.\n",
                  "example" : null
                },
                "transaction_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Transaction associated with attempt.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "dunning_type" : {
                  "type" : "string",
                  "default" : "auto_collect",
                  "deprecated" : false,
                  "description" : "Types of dunning\n\\* offline -\n\nDunning type is offline.\n\\* direct_debit -\n\nDunning type is direct debit.\n\\* auto_collect -\n\nDunning type is auto collection.\n",
                  "enum" : [ "auto_collect", "offline", "direct_debit" ],
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp at which the attempt was made.\n",
                  "example" : null
                },
                "txn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The status of this transaction.</p>\n* success - <p class=\"mb-2\">The transaction is successful.</p>\n* needs_attention - <p class=\"mb-2\">When connection with the Gateway gets terminated abruptly. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\nstatus Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nYou can use this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(Gateway Transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nfor a <a href=\"/docs/api/transactions/transaction-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code></a>\ntransaction to be reconciled at par with the gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransaction status</p></div>\n* failure - <p class=\"mb-2\">Transaction failed. Refer the &#x27;error_code&#x27; and &#x27;error_text&#x27; fields to know the reason for failure</p>\n* voided - <p class=\"mb-2\">The transaction got voided or authorization expired at gateway.</p>\n* in_progress - <p class=\"mb-2\">Transaction is being processed by the gateway. This typically happens for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.</p>\n* timeout - <p class=\"mb-2\">Transaction failed because of Gateway not accepting the connection.</p>\n* late_failure - <p class=\"mb-2\">Indicates that a successful payment transaction has failed now due to a late failure notification from the payment gateway, typically caused by issues like insufficient funds or a closed bank account.</p>",
                  "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                  "example" : null
                },
                "txn_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of the transaction\n",
                  "minimum" : 0,
                  "example" : null
                },
                "retry_engine" : {
                  "type" : "string",
                  "default" : "chargebee",
                  "deprecated" : false,
                  "description" : "The payment retry system used for this dunning attempt.\n\\* chargebee -\n\nThe attempt was processed by Chargebee Recovery.\n\\* success_plus -\n\nThe attempt was processed by GoCardless Success Plus.\n\\* flexpay -\n\nThe attempt was processed by FlexPay Recovery.\n",
                  "enum" : [ "chargebee", "flexpay", "successplus" ],
                  "example" : null
                }
              },
              "required" : [ "attempt", "dunning_type" ],
              "example" : null
            },
            "example" : null
          },
          "applied_credits" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Refundable Credits applied on this invoice.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "cn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit applied on the credit note ID.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "applied_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total credit amount applied to this invoice.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "applied_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp when the credit amount was applied to this invoice.\n",
                  "example" : null
                },
                "cn_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code. Deprecated; use the cn_create_reason_code parameter instead\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* order_cancellation -\n\nOrder Cancellation\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n\\* fraudulent -\n\nFRAUDULENT\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* order_change -\n\nOrder Change\n\\* waiver -\n\nWaiver\n",
                  "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                  "example" : null
                },
                "cn_create_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "cn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the date at which this credit note is created\n",
                  "example" : null
                },
                "cn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note status.\n\\* voided -\n\nWhen the Credit Note has been cancelled.\n\\* adjusted -\n\nWhen the Credit Note has been adjusted against an invoice.\n\\* refund_due -\n\nWhen the credits are yet to be used, or have been partially used.\n\\* refunded -\n\nWhen the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded).\n",
                  "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                  "example" : null
                },
                "tax_application" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies how tax is handled for credits applied to this invoice.\n\\* pre_tax -\n\nCredits are applied before tax calculation.\n\\* post_tax -\n\nCredits are applied after tax calculation.\n",
                  "enum" : [ "pre_tax", "post_tax" ],
                  "example" : null
                }
              },
              "required" : [ "applied_amount", "applied_at", "cn_id", "cn_status" ],
              "example" : null
            },
            "example" : null
          },
          "adjustment_credit_notes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Adjustments created for this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "cn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit-note id\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "cn_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code. Deprecated; use the cn_create_reason_code parameter instead\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n\\* waiver -\n\nWaiver\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* fraudulent -\n\nFRAUDULENT\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* order_change -\n\nOrder Change\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* order_cancellation -\n\nOrder Cancellation\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n",
                  "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                  "example" : null
                },
                "cn_create_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "cn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the date at which this credit note is created\n",
                  "example" : null
                },
                "cn_total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Total amount of the credit note.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "cn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note status.\n\\* refunded -\n\nWhen the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded).\n\\* voided -\n\nWhen the Credit Note has been cancelled.\n\\* refund_due -\n\nWhen the credits are yet to be used, or have been partially used.\n\\* adjusted -\n\nWhen the Credit Note has been adjusted against an invoice.\n",
                  "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                  "example" : null
                }
              },
              "required" : [ "cn_id", "cn_status" ],
              "example" : null
            },
            "example" : null
          },
          "issued_credit_notes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Credit notes issued for this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "cn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit-note id\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "cn_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code. Deprecated; use the cn_create_reason_code parameter instead\n\\* fraudulent -\n\nFRAUDULENT\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* order_change -\n\nOrder Change\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* waiver -\n\nWaiver\n\\* order_cancellation -\n\nOrder Cancellation\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n",
                  "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                  "example" : null
                },
                "cn_create_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "cn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the date at which this credit note is created\n",
                  "example" : null
                },
                "cn_total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Total amount of the credit note.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "cn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note status.\n\\* refund_due -\n\nWhen the credits are yet to be used, or have been partially used.\n\\* adjusted -\n\nWhen the Credit Note has been adjusted against an invoice.\n\\* voided -\n\nWhen the Credit Note has been cancelled.\n\\* refunded -\n\nWhen the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded).\n",
                  "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                  "example" : null
                }
              },
              "required" : [ "cn_id", "cn_status" ],
              "example" : null
            },
            "example" : null
          },
          "linked_orders" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of orders for this invoice\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies the order. It is the api identifier for the order\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "document_number" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The order's serial number\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "default" : "new",
                  "deprecated" : false,
                  "description" : "The status of this order.\n\\* awaiting_shipment -\n\nThe order has been picked up by an integration system, and synced to a shipping management platform\n\\* queued -\n\nOrder is yet to be processed by any system, these are scheduled orders created by Chargebee\n\\* returned -\n\nThe order has been returned after delivery.\n\\* complete -\n\nOrder has been processed successfully. Applicable only if you are using Chargebee's legacy order management system\n\\* processing -\n\nOrder is being processed. Applicable only if you are using Chargebee's legacy order management system\n\\* new -\n\nOrder has been created. Applicable only if you are using Chargebee's legacy order management system.\n\\* shipped -\n\nThe order has moved from order management system to a shipping system.\n\\* on_hold -\n\nThe order is paused from being processed.\n\\* cancelled -\n\nOrder has been cancelled. Applicable only if you are using Chargebee's legacy order management system\n\\* delivered -\n\nThe order has been delivered to the customer.\n\\* partially_delivered -\n\nThe order has been partially delivered to the customer.\n\\* voided -\n\nOrder has been voided. Applicable only if you are using Chargebee's legacy order management system\n",
                  "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
                  "example" : null
                },
                "order_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Order type\n\\* system_generated -\n\nThe order has been created by Chargebee automatically based on the preferences set by the user.\n\\* manual -\n\nThe order has been created by the user using Chargebee's legacy order management system.\n",
                  "enum" : [ "manual", "system_generated" ],
                  "example" : null
                },
                "reference_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is same as the order id in the third party application.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "fulfillment_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "batch_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Unique id to identify a group of orders.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The time at which the order was created\n",
                  "example" : null
                }
              },
              "required" : [ "created_at", "id" ],
              "example" : null
            },
            "example" : null
          },
          "notes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The list of <a href=\"https://www.chargebee.com/docs/2.0/invoice_notes.html\">notes</a>\nthat appear on the invoice PDF sent to the customer. Notes that come from a specific resource related to the invoice have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\ndefined. There can be up to two notes in this array for which <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nare not defined:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Invoice-specific note:</strong> It is the note provided via the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_note</code> parameter for various endpoints in the API that also create invoices. For example, <a href=\"/docs/api/subscriptions/create-subscription-for-items#invoice_notes\">creating a subscription</a>, <a href=\"/docs/api/invoices/create-invoice-for-items-and-one-time-charges\">creating an invoice</a>, and <a href=\"/docs/api/invoices/close-a-pending-invoice#invoice_note\">closing a pending invoice</a>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">General note:</strong> This note is added to all invoices of the Chargebee site. You can <a href=\"https://www.chargebee.com/docs/invoice_notes.html#adding-general-notes\" target=\"_blank\">add/edit</a> this note in the Chargebee admin console.</li>\n</ul>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "note" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Actual note.\n",
                  "maxLength" : 65000,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Unique identifier of the entity.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Type of entity to which the note belongs.\n\\* subscription -\n\nEntity that represents a subscription of customer.\n\\* customer -\n\nEntity that represents a customer.\n\\* plan -\n\nEntity that represents a plan.\n\\* tax -\n\nThe note is configured as part of the [tax configuration](https://www.chargebee.com/docs/tax.html)\nin Chargebee Billing.\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* addon -\n\nEntity that represents an addon.\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* coupon -\n\nEntity that represents a coupon.\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n",
                  "enum" : [ "coupon", "subscription", "customer", "plan_item_price", "addon_item_price", "charge_item_price", "tax" ],
                  "example" : null
                }
              },
              "required" : [ "note" ],
              "example" : null
            },
            "example" : null
          },
          "shipping_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Shipping address for the invoice.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The state/province name.\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "billing_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Billing address for the invoice.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "State or Province\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* invalid -\n\nAddress is invalid.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "statement_descriptor" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Statement descriptor for the invoice.\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Uniquely identifies a statement_descriptor\n",
                "maxLength" : 40,
                "example" : null
              },
              "descriptor" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Payment descriptor text\n",
                "maxLength" : 65000,
                "example" : null
              }
            },
            "required" : [ "id" ],
            "example" : null
          },
          "einvoice" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "An e-invoice or electronic invoice is a structured representation of an invoice that is interoperable between computerized invoicing systems. Depending on the country, e-invoicing can be necessary to meet financial/taxation authority regulations.\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nfor the e-invoice. This is auto-generated by Chargebee.</p>",
                "maxLength" : 50,
                "example" : null
              },
              "reference_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Identifier returned by the connected e-invoicing provider for this submission (for example, a document submission id). Chargebee uses this value when communicating with the provider to retrieve submission status and related artifacts.\n",
                "maxLength" : 50,
                "example" : null
              },
              "reference_number" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This attribute is used to populate the unique reference number assigned to an invoice on the Invoice Registration Portal (IRP) network. It is essential for identifying and tracking invoices that are processed through the IRP network.\n\nIn the future, this field may be used to store similar reference numbers for other networks.\n",
                "maxLength" : 100,
                "example" : null
              },
              "status" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The status of processing the e-invoice. To obtain detailed information about the current <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n, see <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">message</code>\n.</p>\n* under_query - <p class=\"mb-2\">The receiving entity has raised a query regarding the e-invoice. Additional information or clarification is required before proceeding.</p>\n* rejected - <p class=\"mb-2\">The e-invoice was sent and it was rejected by the receiving entity due to some reason. The sending entity shall also reject the e-invoice.</p>\n* paid - <p class=\"mb-2\">The receiving entity has confirmed that the e-invoice has been paid.</p>\n* skipped - <p class=\"mb-2\">The e-invoice was not sent. This could be due to missing information or because the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_identifier</code>\nis not registered on the e-invoicing network.</p>\n* failed - <p class=\"mb-2\">The e-invoice was sent and there was an error due to which it was not delivered.</p>\n* in_progress - <p class=\"mb-2\">The e-invoice has been sent and Chargebee is waiting for confirmation from the receiving entity.</p>\n* message_acknowledgement - <p class=\"mb-2\">An acknowledgment confirming that the application response was successfully received by the receiving entity.</p>\n* scheduled - <p class=\"mb-2\">Sending the e-invoice to the customer has been scheduled.</p>\n* conditionally_accepted - <p class=\"mb-2\">The e-invoice has been accepted with conditions.</p>\n* accepted - <p class=\"mb-2\">The e-invoice was sent and it was accepted by the receiving entity. The sending entity shall also accept the e-invoice.</p>\n* success - <p class=\"mb-2\">The e-invoice has been successfully delivered to the customer.</p>\n* in_process - <p class=\"mb-2\">The e-invoice is currently being processed by the receiving entity.</p>\n* registered - <p class=\"mb-2\">The e-invoice was sent and there was an error due to which it was not delivered but got cleared in the IRP.</p>",
                "enum" : [ "scheduled", "skipped", "in_progress", "success", "failed", "registered", "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
                "example" : null
              },
              "message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Detailed information about the status of the e-invoice. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">skipped</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>\n, this contains the reason or error details. The following are some valid examples:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Invoice successfully sent to customer via the e-invoicing network 9090:123456</li>\n<li class=\"text-base leading-relaxed\">Invoice successfully sent to customer via email id abc@acme.com</li>\n</ul>",
                "maxLength" : 3000,
                "example" : null
              },
              "provider_references" : {
                "type" : "array",
                "deprecated" : false,
                "items" : {
                  "example" : null
                },
                "example" : null
              }
            },
            "required" : [ "id", "status" ],
            "example" : null
          },
          "site_details_at_creation" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "It contains site-specific information, including timezone and organisational address.\n",
            "properties" : {
              "timezone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "It represents the timezone of the site at the time of entity creation.\n",
                "maxLength" : 50,
                "example" : null
              },
              "organization_address" : {
                "type" : "object",
                "additionalProperties" : true,
                "deprecated" : false,
                "description" : "It represents the address configured for the site during entity creation.\n",
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "customer_id", "deleted", "id", "is_gifted", "price_type", "recurring", "status", "sub_total", "tax", "term_finalized" ],
        "example" : null
      },
      "InvoiceDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "InvoiceDunningHandling" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "continue", "stop" ],
        "example" : null
      },
      "InvoiceEstimate" : {
        "type" : "object",
        "properties" : {
          "recurring" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "example" : null
          },
          "price_type" : {
            "type" : "string",
            "default" : "tax_exclusive",
            "deprecated" : false,
            "enum" : [ "tax_exclusive", "tax_inclusive" ],
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 3,
            "example" : null
          },
          "sub_total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "total" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "credits_applied" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "amount_paid" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "amount_due" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "round_off_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 1,
                  "deprecated" : false,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "example" : null
                },
                "pricing_model" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                  "example" : null
                },
                "is_taxed" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "item_level_discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "metered" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "is_percentage_pricing" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "reference_line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "entity_description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 500,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "tax_exempt_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "example" : null
                },
                "quantity_used" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "quantity_used_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_discounts" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "discount_amount", "discount_type", "line_item_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_taxes" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "tax_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "prorated_taxable_amount" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "maximum" : 1000000000,
                  "minimum" : -1000000000,
                  "example" : null
                },
                "is_partial_tax_applied" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "is_non_compliance_tax" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "taxable_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "tax_juris_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                  "example" : null
                },
                "tax_juris_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_juris_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_amount_in_local_currency" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "local_currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 3,
                  "example" : null
                }
              },
              "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_credits" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "cn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "applied_amount" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                }
              },
              "required" : [ "applied_amount", "cn_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_addresses" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "first_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 150,
                  "example" : null
                },
                "last_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 150,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "format" : "email",
                  "deprecated" : false,
                  "maxLength" : 70,
                  "example" : null
                },
                "company" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "phone" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "line1" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 150,
                  "example" : null
                },
                "line2" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 150,
                  "example" : null
                },
                "line3" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 150,
                  "example" : null
                },
                "city" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "state_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "state" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "country" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "zip" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 20,
                  "example" : null
                },
                "validation_status" : {
                  "type" : "string",
                  "default" : "not_validated",
                  "deprecated" : false,
                  "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "coupon_set_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "amount", "entity_type" ],
              "example" : null
            },
            "example" : null
          },
          "taxes" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 250,
                  "example" : null
                }
              },
              "required" : [ "amount", "name" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "price_type", "recurring", "sub_total" ],
        "example" : null
      },
      "InvoiceGeneratedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "InvoiceGeneratedWithBackdatingEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "InvoiceUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Item" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When offering subscriptions of products or services, each entity that is made available for sale is represented by an &quot;item&quot; object. Items therefore represent the various plans, addons or charges that you offer as part of your product catalog. Non-<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items are charged upfront in Chargebee, while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items are charged at the end of the billing cycle, based on usage.</p><h3>Types of Items</h3><p class=\"mb-2\">There are three types of items and they&#x27;re listed and explained here. Examples for each type are provided in the table that follows.</p><h4>Plan-items or Plans</h4><p class=\"mb-2\">Plan-items are items that have a recurring charge and are an essential component of any <a href=\"/docs/api/subscriptions\">subscription</a>. Typically, plans represent a principal or key product or service in your catalog. They are charged at recurring intervals and often have other products or services offered along with them as addons and charges.</p><h4>Addon-items or Addons</h4><p class=\"mb-2\">Addon-items are items that are sold along with a plan and are charged for at recurring intervals.</p><h4>Charge-items or Charges</h4><p class=\"mb-2\">Charge-items are items that are sold along with a plan but charged once (or each time) a specified event occurs. A charge can also be <a href=\"/docs/api/v2/pcv-1/invoices/create-invoice-for-a-one-time-charge\">applied to a customer</a> without attaching to a subscription.</p><h4>Examples</h4><p class=\"mb-2\">To help understand each type of item better, listed below are some examples of items from different business domains:</p><h5>Non-Metered (SaaS)</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Item Family:</strong> A project management solution.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Plans:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A &quot;basic&quot; plan offering a small set of features.</li>\n<li class=\"text-base leading-relaxed\">A &quot;business&quot; plan offering a larger set of features.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Addons:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">An analytics plugin that is available only with the &quot;business&quot; plan.</li>\n<li class=\"text-base leading-relaxed\">A reporting plugin, available with both the above plans.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Charges:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Implementation charges.</li>\n<li class=\"text-base leading-relaxed\">Trial charges.</li>\n</ul>\n</li>\n</ul><h5>Non-Metered (E-commerce)</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Item Family:</strong> A printed news magazine.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Plans:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Periodic issues of the magazine.</li>\n<li class=\"text-base leading-relaxed\">Periodic issues of the magazine, with digital content.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Addons:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Supplementary online content.</li>\n<li class=\"text-base leading-relaxed\">Access to a year&#x27;s worth of back issues.</li>\n<li class=\"text-base leading-relaxed\">Searchable access to all back issues.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Charges:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Special edition books that are published every so often.</li>\n</ul>\n</li>\n</ul><h5>Metered</h5><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Item Family:</strong> SMS delivery services.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Plans:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A basic plan of up to 100K messages @ $0.03 per message.</li>\n<li class=\"text-base leading-relaxed\">A volume plan of 2M messages @ $0.01 per message.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Addons:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">An addon of 50K MMS messages @ $0.1 per message.</li>\n<li class=\"text-base leading-relaxed\">Instant messaging.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Charges:</strong>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Automated Metered Billing is not applicable for charges.</li>\n</ul>\n</li>\n</ul></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier for the item. It is unique and immutable.\n",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique display name for the item. This is visible only in Chargebee and not to customers.\n",
            "maxLength" : 100,
            "example" : null
          },
          "external_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique display name for the item.\n",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Description of the item. This is visible only in Chargebee and not to customers.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The description field supports up to 2000 characters, including HTML tags. The inner text (excluding HTML tags) must not exceed 500 characters.\nFor example:\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-   testing -   desc  </code>.\nTotal with tags: 38 characters,\ninner text: &#x27;testing desc&#x27; (12 characters).</li>\n<li class=\"text-base leading-relaxed\">If your input includes characters requiring sanitization, such as incomplete HTML tags, the sanitization process may alter the input and increase its length. If the sanitized content exceeds the allowed limit, the request will be rejected.</li>\n</ul></div>",
            "maxLength" : 2000,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The status of the item.</p>\n* archived - <p class=\"mb-2\">The item is no longer active and no new item prices can be created</p>\n* active - <p class=\"mb-2\">The item can be used to create new item prices.</p>\n* deleted - <p class=\"mb-2\">Indicates that the item has been <a href=\"/docs/api/items/delete-an-item\">deleted</a>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ncan be reused. Deleted items can be retrieved using <a href=\"/docs/api/items/list-items\">List items</a>\n.</p>",
            "enum" : [ "active", "archived", "deleted" ],
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the item was last updated.\n",
            "example" : null
          },
          "item_family_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/item_families\">Item family</a>\nthat the item belongs to. Is mandatory when <a href=\"https://www.chargebee.com/docs/2.0/product-families.html\" target=\"_blank\">Product Families</a>\nhave been enabled.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The type of the item.\n\\* plan -\n\nAn essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription.\n\\* charge -\n\nA non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](/docs/api/v2/pcv-1/invoices/create-invoice-for-a-one-time-charge)\nwithout being applied to a subscription.\n\\* addon -\n\nA recurring component that can be added to a subscription in addition to its plan.\n",
            "enum" : [ "plan", "addon", "charge" ],
            "example" : null
          },
          "is_shippable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Indicates that the item is a physical product. If Orders are enabled in Chargebee, subscriptions created for this item will have orders associated with them.\n",
            "example" : null
          },
          "is_giftable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Specifies if gift subscriptions can be created for this item.\n",
            "example" : null
          },
          "redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">enabled_for_checkout</code>\n, then the URL to be redirected to once the checkout is complete. This attribute is only available for plan-items.</p>",
            "maxLength" : 500,
            "example" : null
          },
          "enabled_for_checkout" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Allow the plan to subscribed to via Checkout. Applies only for plan-items.\n**Note:**\nOnly the in-app layout of Checkout is supported.\n",
            "example" : null
          },
          "enabled_in_portal" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Allow customers to change their subscription to this plan via the [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html).\nApplies only for plan-items. This requires the Portal configuration to [allow changing subscriptions](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription)\n.\n",
            "example" : null
          },
          "included_in_mrr" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The item is included in MRR calculations for your site. This attribute is only applicable for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type = charge</code>\nand when the feature is enabled in Chargebee. Note: If the site-level setting is to exclude charge-items from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
            "example" : null
          },
          "item_applicability" : {
            "type" : "string",
            "default" : "all",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates which addon-items and charge-items can be applied to the item. Only meant for plan-items. Other details of attaching items such as whether to attach as a mandatory item or to attach on a certain event, can be specified using the <a href=\"/docs/api/attached_items/create-an-attached-item\">Create</a>\nor <a href=\"/docs/api/attached_items/update-an-attached-item\">Update an attached item</a>\nAPI.</p>\n* all - <p class=\"mb-2\">all addon-items and charge-items are applicable to this plan-item.</p>\n* restricted - <p class=\"mb-2\">only the addon-items or charge-items provided in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applicable_items</code>\ncan be applied to this plan-item.</p>",
            "enum" : [ "all", "restricted" ],
            "example" : null
          },
          "gift_claim_redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The URL to redirect to once the gift has been claimed by the receiver.\n",
            "maxLength" : 500,
            "example" : null
          },
          "unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unit of measure for a quantity-based item. This is displayed on the Chargebee UI and on customer facing documents/pages. The latter includes [hosted pages](/docs/api/hosted_pages)\n, [invoices](/docs/api/invoices)\nand [quotes](/docs/api/quotes).\nExamples follow:\n\n* \"user\" for a cloud-collaboration platform.\n* \"GB\" for a data service.\n* \"issue\" for a magazine.\n",
            "maxLength" : 30,
            "example" : null
          },
          "metered" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies whether the item undergoes metered billing. When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the quantity is calculated from <a href=\"/docs/api/usages\">usage records</a>.\nWhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nis as determined while adding an item price to the subscription. Applicable only for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>\nand when <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html\" target=\"_blank\" rel=\"noopener noreferrer\">Metered Billing</a>\nis enabled. The value of this attribute cannot be changed.</p>",
            "example" : null
          },
          "usage_calculation" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">How the quantity is calculated from usage data for the item prices belonging to this item. Only applicable when the item is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>.\nThis value overrides the one <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">set at the site level</a>\n.</p>\n* sum_of_usages - <p class=\"mb-2\">the net quantity is the sum of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nof all usages for the current term.</p>\n* last_usage - <p class=\"mb-2\">from among the usage records for the <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">item price</a>\nwith <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nwithin the relevant billing period, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nof the usage record with the most recent <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nis taken as the net quantity consumed.</p>\n* max_usage - <p class=\"mb-2\">from among the usage records for the <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">item price</a>\nwith <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nwithin the relevant billing period, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nof the usage record with the maximum value is taken as the net quantity consumed.</p>",
            "enum" : [ "sum_of_usages", "last_usage", "max_usage" ],
            "example" : null
          },
          "is_percentage_pricing" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "archived_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this item was archived.\n",
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com)\nfor more information.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the item. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the item has been deleted or not.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the [business entity](/docs/api/business_entities)\nof this item. This is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.\n",
            "maxLength" : 50,
            "example" : null
          },
          "applicable_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The list of addons and charges that are allowed to be applied to the plan. This attribute is applicable only for plan-items and that too when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_applicability</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">restricted</code>\n.</p>\n<p class=\"mb-2\">Other details of attaching items can be specified using the <a href=\"/docs/api/attached_items/create-an-attached-item\">Create</a>\nor <a href=\"/docs/api/attached_items/update-an-attached-item\">Update an attached item</a>\nAPI.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Id of the addon-item or plan-item that can be applied to the plan-item.\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "bundle_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The list of items(plans, addons, and charges) added to the bundle plan. This attribute is only available when the <a href=\"/docs/api/items/item-object#type\">item_type</a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The ID of the item(plan, addon, or charge) associated with this bundle.\n**Note:**\nAt least one plan item must be associated with this bundle.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Type of item\n\\* addon -\n\nA recurring component that can be added to a bundle plan.\n\\* charge -\n\nA non-recurring component that can be added to a bundle plan.\n\\* plan -\n\nAn essential component of the bundle plan.\n**Note:**\nAt least one plan item should be associated with the bundle.\n",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 1,
                  "deprecated" : false,
                  "description" : "Quantity of the item(plan, addon, and charge) associated with the bundle.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "price_allocation" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "description" : "Price allocation of the item(plan, addon, and charge) associated with the bundle.\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "item_id" ],
              "example" : null
            },
            "example" : null
          },
          "bundle_configuration" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This attribute holds additional information about the bundle item. This attribute is only available when the <a href=\"/docs/api/items/item-object#type\">item_type</a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\n.</p>",
            "properties" : {
              "type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Type of the bundle</p>\n* fixed - <p class=\"mb-2\">Fixed <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">bundle_configuration.type</code>\nappears when you create a bundle plan that cannot be updated during checkout or subscription creation.</p>",
                "enum" : [ "fixed" ],
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "deleted", "enabled_for_checkout", "enabled_in_portal", "id", "is_giftable", "metered", "name", "type" ],
        "example" : null
      },
      "ItemBillingMetric" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "contract_term_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "item_price_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "unit_amount_per_billing_cycle" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "quantity_per_billing_cycle" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "minimum" : 1,
            "example" : null
          },
          "effective_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "effective_to" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "total_contract_value" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "total_tax_amount" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "total_discount_amount" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "mrr" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 3,
            "example" : null
          },
          "invoice_level_discount_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "item_level_discount_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "contract_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "contract_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "contract_created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "currency_code", "customer_id", "effective_from", "effective_to", "id", "item_price_id", "modified_at", "quantity_per_billing_cycle", "total_contract_value", "total_discount_amount", "total_tax_amount", "unit_amount_per_billing_cycle" ],
        "example" : null
      },
      "ItemCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item" : {
                "$ref" : "#/components/schemas/Item"
              }
            },
            "required" : [ "item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item" : {
                "$ref" : "#/components/schemas/Item"
              }
            },
            "required" : [ "item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemEntitlement" : {
        "type" : "object",
        "description" : "**Deprecated**\n\nThe Item Entitlements API is deprecated and no longer maintained. Migrate your integration to [Entitlements API](/docs/api/entitlements).  \n**Warning**\n\nAPI operations listed on this page are not supported when [grandfathering](/docs/api/entitlements) is enabled.\n\n[Items](/docs/api/items) represent the products or services that you offer to your customers. Items often differ from each other in the product [features](/docs/api/features) that are available in them. An item entitlement object represents the entitlement an item has towards a feature. An item can have multiple such entitlements, each corresponding to a unique feature it is entitled to.\nItem entitlements can be created while [creating a feature](/docs/api/features/create-a-feature). All subscriptions containing an item also [inherit](/docs/api/subscription_entitlements) its entitlements.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A unique identifier for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>.\nThis is auto-generated.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nto which this entitlement belongs.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "item_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nto which this entitlement belongs.</p>\n* charge - <p class=\"mb-2\">Charge</p>\n* item - <p class=\"mb-2\">Item</p>\n* subscription - <p class=\"mb-2\">Subscription</p>\n* addon - <p class=\"mb-2\">Addon</p>\n* plan - <p class=\"mb-2\">Plan</p>",
            "enum" : [ "plan", "addon", "charge", "subscription", "item" ],
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the feature towards which this entitlement has been granted.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "feature_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>\ntowards which this entitlement has been granted.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The level of entitlement that the item has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can also be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> and:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][1]</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[is_unlimited]</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> for one of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code>, then the value can be:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[value][0]</code></li>\n<li class=\"text-base leading-relaxed\">or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then the value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[value][]</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, then the value is set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">available</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The display name for the entitlement level. The default values are auto-generated based on <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> as follows:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> and the pluralized version of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code>. For example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.unit</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>; it&#x27;s set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Not Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "ItemEntitlementsRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item" : {
                "$ref" : "#/components/schemas/ImpactedItem"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemEntitlementsUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item" : {
                "$ref" : "#/components/schemas/ImpactedItem"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemFamily" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "If you're a company that sells multiple product lines then each product line or service is an item family in the Chargebee API. For example, if you are a SaaS company that offers separate products for project management, content collaboration, and customer support. Each of those can be an item family under which the various plans, addons and charges can be the [items](/docs/api/items).\nItem families compartmentalize items such that only items belonging to the same family can be part of any given subscription.  \n**Note:**\nYou must have the [Product Families](https://www.chargebee.com/docs/2.0/product-families.html) enabled for your site to be able to set up item families.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier for the item family. It is unique and immutable.\n",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique display name for the item family. This is visible only in Chargebee and not to customers.\n",
            "maxLength" : 50,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Description of the item family. This is visible only in Chargebee and not to customers.\n",
            "maxLength" : 500,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Status of the item family.</p>\n* active - <p class=\"mb-2\">The item family is active and can be used to create new items.</p>\n* deleted - <p class=\"mb-2\">The item family has been deleted and cannot be used to create new items. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ncan be reused to create a new item family.</p>",
            "enum" : [ "active", "deleted" ],
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "When the item family was last updated.\n",
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family</code>.\nThis is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the item family has been deleted or not.\n",
            "example" : null
          }
        },
        "required" : [ "deleted", "id", "name" ],
        "example" : null
      },
      "ItemFamilyCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item_family" : {
                "$ref" : "#/components/schemas/ItemFamily"
              }
            },
            "required" : [ "item_family" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemFamilyDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item_family" : {
                "$ref" : "#/components/schemas/ItemFamily"
              }
            },
            "required" : [ "item_family" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemFamilyUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item_family" : {
                "$ref" : "#/components/schemas/ItemFamily"
              }
            },
            "required" : [ "item_family" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemPrice" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">An item price is a price point for an item. It defines the currency, pricing model, price, billing period and other attributes for an <a href=\"/docs/api/items\">item</a>. For example, consider a cloud storage service as an item. Then each of the following defines an item price:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The cloud storage sold at USD 10 per month.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The same service sold at AUD 100 per year.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The service sold at a monthly rate determined by the following <a href=\"https://www.chargebee.com/docs/2.0/plans.html#pricing-models\" target=\"_blank\">stairstep</a> pricing model:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">1-10 users for EUR 10</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">11-25 users for EUR 20</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">26-50 users for EUR 45</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">51 and above for EUR 100</p>\n</li>\n</ul><div class=\"warning alert alert-warning\"><p class=\"mb-2\">The <strong class=\"font-semibold\">billing period</strong>\nof an item price (only applies to plan-item prices and addon-item prices), is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nof the item price in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ns. An item can have only one item price for a given currency and billing period.</p></div><h2>Types of item prices</h2><p class=\"mb-2\">The type of an item price corresponds to the <a href=\"/docs/api/items\">type of the item</a> that the item price belongs to. In other words, item prices can be of the following types:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Plan-item prices</li>\n<li class=\"text-base leading-relaxed\">Addon-item prices</li>\n<li class=\"text-base leading-relaxed\">Charge-item prices</li>\n</ul></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier for the item price. It is unique and immutable.\n",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A unique display name for the item price in the Chargebee UI. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">external_name</code>\nis not provided, this is also used in customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "item_family_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Id of the item_family\n",
            "maxLength" : 100,
            "example" : null
          },
          "item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id of the item that the item price belongs to.\n",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Description of the item price.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The description field supports up to 2000 characters, including HTML tags. The inner text (excluding HTML tags) must not exceed 500 characters.\nFor example:\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-   testing -   desc  </code>.\nTotal with tags: 38 characters,\ninner text: &#x27;testing desc&#x27; (12 characters).</li>\n<li class=\"text-base leading-relaxed\">If your input includes characters requiring sanitization, such as incomplete HTML tags, the sanitization process may alter the input and increase its length. If the sanitized content exceeds the allowed limit, the request will be rejected.</li>\n</ul></div>",
            "maxLength" : 2000,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The status of the item price.</p>\n* archived - <p class=\"mb-2\">The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.</p>\n* active - <p class=\"mb-2\">The item price can be used in subscriptions.</p>\n* deleted - <p class=\"mb-2\">Indicates that the item price has been deleted. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ncan be reused.</p>",
            "enum" : [ "active", "archived", "deleted" ],
            "example" : null
          },
          "external_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The name of the item price used in customer-facing pages and documents. These include <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nIf not provided, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nis used</p>",
            "maxLength" : 100,
            "example" : null
          },
          "price_variant_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "An immutable unique identifier of a [price variant](/docs/api/price_variants).\n",
            "maxLength" : 100,
            "example" : null
          },
          "proration_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only for item prices with:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#item_type\">item_type</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>.</li>\n<li class=\"text-base leading-relaxed\"><code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.</li>\n</ul></div>\n<p class=\"mb-2\">Specifies how to manage charges or credits for the addon item price during a <a href=\"/docs/api/subscriptions/update-subscription-for-items\">subscription update</a>\nor <a href=\"/docs/api/estimates/estimate-for-updating-a-subscription\">estimating</a>\na subscription update.</p>\n* site_default - <p class=\"mb-2\">Use the <a href=\"https://www.chargebee.com/docs/2.0/proration.html#proration-for-subscription-change\" target=\"_blank\">site-wide proration setting</a>\n.</p>\n* partial_term - <p class=\"mb-2\">Prorate the charges or credits for the rest of the current term.</p>\n* full_term - <p class=\"mb-2\">Charge the full price of the addon item price or give the full credit. Don&#x27;t apply any proration.</p>",
            "enum" : [ "site_default", "partial_term", "full_term" ],
            "example" : null
          },
          "pricing_model" : {
            "type" : "string",
            "default" : "flat_fee",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"https://www.chargebee.com/docs/2.0/plans.html#pricing-models\" target=\"_blank\">pricing scheme</a> for this item price. If subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a> exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> cannot be changed.</p>\n* tiered - <p class=\"mb-2\">There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.</p>\n* per_unit - <p class=\"mb-2\">A fixed price per unit quantity.</p>\n* flat_fee - <p class=\"mb-2\">A fixed price that is not quantity-based.</p>\n* volume - <p class=\"mb-2\">The per unit price is based on the tier that the total quantity falls in.</p>\n* stairstep - <p class=\"mb-2\">A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.</p>",
            "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
            "example" : null
          },
          "price" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The cost of the item price when the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the <a href=\"/docs/api/currencies\">minor unit of the currency</a>\n.</p>",
            "minimum" : 0,
            "example" : null
          },
          "price_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The price of the item when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
            "maxLength" : 39,
            "example" : null
          },
          "period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>: The billing period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create a 6 month plan by providing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> as 6 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as month.</li>\n<li class=\"text-base leading-relaxed\">When item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>: The period of the addon in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create an addon with a 2 month <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> by providing period as 2 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>. The period of an addon is the duration for which its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price</code> applies. When attached to a plan, the addon is billed for the billing period of the plan. <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">Learn more.</a></li>\n</ul>\n<p class=\"mb-2\">If subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></p>",
            "minimum" : 1,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The currency code (<a href=\"https://www.chargebee.com/docs/2.0/supported-currencies.html\" target=\"_blank\">ISO 4217 format</a>\n) for the item price. If subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a>\nexist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\ncannot be changed.</p>",
            "maxLength" : 3,
            "example" : null
          },
          "period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nIf subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "trial_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The trial period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period_unit</code>\ns. You can also set <a href=\"https://www.chargebee.com/docs/2.0/addons-trial.html\">trial periods for addons</a>\n; contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Support</a>\nto enable that feature.</p>",
            "minimum" : 0,
            "example" : null
          },
          "trial_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period</code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
            "enum" : [ "day", "month" ],
            "example" : null
          },
          "trial_end_action" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Applicable only when <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">End-of-trial Action</a>\nhas been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nand a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the <a href=\"/docs/api/subscriptions/subscription-object#trial_end_action\">subscription-level</a>\n.</p>\n* cancel_subscription - <p class=\"mb-2\">The subscription cancels.</p>\n* activate_subscription - <p class=\"mb-2\">The subscription activates and charges are raised for non-metered items.</p>\n* site_default - <p class=\"mb-2\">The action <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">configured for the site</a>\nat the time when the trial ends, takes effect.</p>",
            "enum" : [ "site_default", "activate_subscription", "cancel_subscription" ],
            "example" : null
          },
          "shipping_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Defines the shipping frequency. Example: to bill customer every 2 weeks, provide \"2\" here.\n",
            "minimum" : 1,
            "example" : null
          },
          "shipping_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Defines the shipping frequency in association with shipping period.\n\\* year -\n\nA period of 1 calendar year.\n\\* day -\n\nA period of 24 hours.\n\\* week -\n\nA period of 7 days.\n\\* month -\n\nA period of 1 calendar month.\n",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "billing_cycles" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The default number of billing cycles a subscription to the plan must run. Can be <a href=\"/docs/api/subscriptions\">overridden</a> for a subscription.\nAddons can also <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">have billing cycles</a>. Also, for addons, you can <a href=\"/docs/api/attached_items\">override this</a> while attaching it to a plan. However, if you provide the value while <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_type\">applying the addon to a subscription</a>, then that value takes still higher precedence.\nIf subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a>\nexist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\ncannot be changed.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf you want to change the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nto unlimited renewals, enter an empty string. This value can only be updated if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis not attached to a subscription or invoice. If no <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nvalue is entered, then by default the value will be set as unlimited <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nrenewals.</p></div>",
            "minimum" : 1,
            "example" : null
          },
          "free_quantity" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 0,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Free quantity the subscriptions of this <strong class=\"font-semibold\">plan</strong> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> will have. Only the quantity exceeding this value will be charged in the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code> is currently supported only for <a href=\"/docs/api/items/item-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\">plan</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\nis not supported for the <a href=\"https://www.chargebee.com/docs/2.0/understanding-usages.html\">Usage-Based Billing</a>\n(UBB). All included or free quantities should be configured exclusively through <a href=\"/docs/api/entitlements\">entitlements</a>\n.</li>\n</ul></div>",
            "minimum" : 0,
            "example" : null
          },
          "free_quantity_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 33,
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.  \nIn-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com)\nfor more information.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this item price was last updated\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this item price was created\n",
            "example" : null
          },
          "usage_accumulation_reset_frequency" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the frequency at which the usage counter needs to be reset.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nChanges to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_accumulation_reset_frequency</code>\nparameter for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis not allowed if the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nis already linked to a subscription.</p></div>\n* never - <p class=\"mb-2\">Accumulates usage without ever resetting it.</p>\n* subscription_billing_frequency - <p class=\"mb-2\">Accumulates usage until the subscription&#x27;s billing frequency ends.</p>",
            "enum" : [ "never", "subscription_billing_frequency" ],
            "example" : null
          },
          "archived_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this item price was archived.\n",
            "example" : null
          },
          "invoice_notes" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
            "maxLength" : 2000,
            "example" : null
          },
          "is_taxable" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Specifies whether taxes apply to this item price. This value is set and returned even if [Taxes](https://www.chargebee.com/docs/tax.html)\nhave been disabled in Chargebee. However, the value is effective only while Taxes are enabled.\n",
            "example" : null
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the item price. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
            "example" : null
          },
          "item_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of item.\n\\* charge -\n\nA non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](/docs/api/v2/pcv-1/invoices/create-invoice-for-a-one-time-charge)\nwithout being applied to a subscription.\n\\* plan -\n\nAn essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription.\n\\* addon -\n\nA recurring component that can be added to a subscription in addition to its plan.\n",
            "enum" : [ "plan", "addon", "charge" ],
            "example" : null
          },
          "show_description_in_invoices" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Whether the item price's description should be shown on [invoice PDFs](/docs/api/invoices/retrieve-invoice-as-pdf).\nIf this Boolean is changed, only invoices generated (or [regenerated](https://www.chargebee.com/docs/invoice-operations.html#actions-for-payment-due-not-paid-invoices_regenerate-invoice)\n) after the change are affected; past invoices are not.\n",
            "example" : null
          },
          "show_description_in_quotes" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Whether the item price's description should be shown on [quote PDFs](/docs/api/quotes/retrieve-quote-as-pdf).\nIf this Boolean is changed, only quotes created after the change are affected; past quotes are not.\n",
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the item price has been deleted ot not.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_family</code>.\nThis is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">List of quantity-based pricing tiers for the item price. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_models</code>\n.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lower limit of a range of units for the tier\n",
                  "minimum" : 1,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The upper limit of a range of units for the tier\n",
                  "example" : null
                },
                "price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\n; the total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the <a href=\"/docs/api/currencies\">minor unit of the currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20, consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "tax_detail" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "The tax details for the item price. Includes those details relevant for third-party integrations.\n",
            "properties" : {
              "tax_profile_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The tax profile of the item price.\n",
                "maxLength" : 50,
                "example" : null
              },
              "avalara_sale_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Indicates the [Avalara sale type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* retail -\n\nTransaction is a sale to an end user\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n",
                "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                "example" : null
              },
              "avalara_transaction_type" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "Indicates the [Avalara transaction type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
                "example" : null
              },
              "avalara_service_type" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "Indicates the [Avalara service type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
                "example" : null
              },
              "avalara_tax_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [Avalara tax codes](https://taxcode.avatax.avalara.com)\nfor the item price. Applicable only if you use [AvaTax for Sales integration](https://www.chargebee.com/docs/2.0/avatax-for-sales.html)\n.\n",
                "maxLength" : 50,
                "example" : null
              },
              "hsn_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
                "maxLength" : 50,
                "example" : null
              },
              "taxjar_product_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [TaxJar product code](https://developers.taxjar.com/api/reference/#get-list-tax-categories)\nfor the item price. Applicable only if you use [TaxJar integration](https://www.chargebee.com/docs/2.0/taxjar.html)\n.\n",
                "maxLength" : 50,
                "example" : null
              }
            },
            "example" : null
          },
          "tax_providers_fields" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of vendor specific tax related information.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "provider_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the tax provider currently supported.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "field_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Field id of the attribute which tax vendor has provided while getting onboarded with us.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "field_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The value of the corresponding tax field.\n",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "field_id", "field_value", "provider_name" ],
              "example" : null
            },
            "example" : null
          },
          "accounting_detail" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Accounting integration details. The values are typically dependent on the \\[accounting integration\\](https://www.chargebee.com/docs/finance-integration-index.html) used.\n",
            "properties" : {
              "sku" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This maps to the sku or product name in the accounting integration.\n",
                "maxLength" : 100,
                "example" : null
              },
              "accounting_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The identifier of the chart of accounts under which the item price falls in the accounting system.\n",
                "maxLength" : 100,
                "example" : null
              },
              "accounting_category1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, provide the category name and option. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">:</code> . For example:<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: Singapore.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::...</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Services: Plan.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Locations, provide the name of the Location here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
                "maxLength" : 100,
                "example" : null
              },
              "accounting_category2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, then provide the second category name and option here. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: ....</code> For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Region: South</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Location, provide the Location name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: North America: Canada</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Locations, provide the location name here. Use the following format <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">NA:US:CA</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Dimensions, provide the value of the Dimension here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
                "maxLength" : 100,
                "example" : null
              },
              "accounting_category3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Departments, pass the department name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Production: Assembly.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under multiple Dimensions, provide the value of the second Dimension here.</li>\n</ul>",
                "maxLength" : 100,
                "example" : null
              },
              "accounting_category4" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/1.0/finance-integration-index.html )\n\n* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html ) Provide the \"Revenue Recognition Rule Id\" for the product from NetSuite.\n* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html ) If you have configured \"Revenue Recognition Templates\" for products in Intacct, provide the template ID for the product.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "currency_code", "deleted", "free_quantity", "id", "name", "pricing_model" ],
        "example" : null
      },
      "ItemPriceCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item_price" : {
                "$ref" : "#/components/schemas/ItemPrice"
              }
            },
            "required" : [ "item_price" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemPriceDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item_price" : {
                "$ref" : "#/components/schemas/ItemPrice"
              }
            },
            "required" : [ "item_price" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemPriceEntitlementsRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item_price" : {
                "$ref" : "#/components/schemas/ImpactedItemPrice"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item_price", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemPriceEntitlementsUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "feature" : {
                "$ref" : "#/components/schemas/Feature"
              },
              "metadata" : {
                "$ref" : "#/components/schemas/Metadata"
              },
              "impacted_item_price" : {
                "$ref" : "#/components/schemas/ImpactedItemPrice"
              },
              "impacted_subscription" : {
                "$ref" : "#/components/schemas/ImpactedSubscription"
              }
            },
            "required" : [ "feature", "impacted_item_price", "impacted_subscription", "metadata" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemPriceUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item_price" : {
                "$ref" : "#/components/schemas/ItemPrice"
              }
            },
            "required" : [ "item_price" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ItemType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "plan", "addon", "charge" ],
        "example" : null
      },
      "ItemUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "item" : {
                "$ref" : "#/components/schemas/Item"
              }
            },
            "required" : [ "item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Layout" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "in_app", "full_page" ],
        "example" : null
      },
      "Level" : {
        "type" : "object",
        "description" : "This resource returns the entitlement level attributes.\n",
        "properties" : {
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A case-sensitive display name for the entitlement level. Provide a name that helps you clearly identify the entitlement level. For example: a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code>\ncan have entitlement levels named as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All weekdays</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">All days</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">40 hours per week</code>\nand so on.</p>\n<p class=\"mb-2\">When not provided for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this name is auto-generated as the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nand the pluralized version of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>.\nFor example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>\n, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].name</code>\nbecomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>\n.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The value denoting the entitlement level granted.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>:</strong> this attribute denotes the quantity of units of the feature for this entitlement level. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code>. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is used to set the entitlement level to &quot;unlimited&quot;.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>:</strong> there can be be only two elements in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code> array; one corresponding to the minimum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0]</code>) and the other to the maximum value (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1]</code>) of the range of possible entitlement levels. For example, a feature such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number of users</code> may have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50000</code>. When the upper limit is &quot;unlimited&quot;, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> is not set and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>:</strong> this attribute denotes the value of this custom entitlement level. For example, a feature <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Email Support</code> can have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> as one of say, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×7</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24×5</code>.</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "level" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This attribute represents the order of the entitlement levels from lowest to highest.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>: The lowest entitlement level has the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>, the next higher level has the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>, followed by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, and so on.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>: This attribute is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> for the minimum value and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code> for the maximum value in the range.</li>\n</ul>\n<p class=\"mb-2\">When not defined, it is assumed as the index of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[]</code>\narray.</p>",
            "example" : null
          },
          "is_unlimited" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n, this attribute indicates whether the entitlement level corresponds to unlimited units of the feature. Possible values:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The entitlement level corresponds to unlimited units of the feature. <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> is ignored for this level. This can only be set for the level that has the highest value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].level.</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>: The entitlement level does not correspond to unlimited units of the feature.</li>\n</ul>",
            "example" : null
          }
        },
        "required" : [ "is_unlimited", "level", "value" ],
        "example" : null
      },
      "Media" : {
        "type" : "object",
        "description" : "A media artifact uploaded to Chargebee.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier for the media file. This is auto-generated by Chargebee.\n",
            "maxLength" : 42,
            "minLength" : 8,
            "example" : null
          },
          "url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The public URL for accessing the media file. This is auto-generated by Chargebee.\n",
            "maxLength" : 512,
            "minLength" : 10,
            "example" : null
          },
          "alt_text" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"https://webaim.org/techniques/alttext/\" target=\"_blank\">alternative text</a>\nfor the image. Applicable only when the top-level <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">media_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">image</code>\n.</p>",
            "maxLength" : 128,
            "minLength" : 2,
            "example" : null
          },
          "media_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [media type](https://en.wikipedia.org/wiki/Media_type)\nof the file.\n",
            "maxLength" : 20,
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "Metadata" : {
        "type" : "object",
        "properties" : {
          "change_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        },
        "example" : null
      },
      "Meter" : {
        "type" : "object",
        "properties" : {
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "simple", "compound" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "active", "archived", "deleted" ],
            "example" : null
          },
          "query" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "meter_strategy" : {
            "type" : "string",
            "deprecated" : false,
            "example" : null
          },
          "feature_ids" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 50,
              "example" : null
            },
            "example" : null
          },
          "column_definitions" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "column_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "property_data_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "number", "string" ],
                  "example" : null
                },
                "data_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "number", "string" ],
                  "example" : null
                }
              },
              "required" : [ "column_name", "data_type", "property_data_type" ],
              "example" : null
            },
            "example" : null
          },
          "features" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 500,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "active", "archived", "draft" ],
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "switch", "custom", "quantity", "range" ],
                  "example" : null
                },
                "unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "resource_version" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "example" : null
                },
                "updated_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "levels" : {
                  "type" : "array",
                  "deprecated" : false,
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "name" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 50,
                        "example" : null
                      },
                      "value" : {
                        "type" : "string",
                        "deprecated" : false,
                        "maxLength" : 50,
                        "example" : null
                      },
                      "level" : {
                        "type" : "integer",
                        "format" : "int32",
                        "deprecated" : false,
                        "example" : null
                      },
                      "is_unlimited" : {
                        "type" : "boolean",
                        "deprecated" : false,
                        "example" : null
                      }
                    },
                    "required" : [ "is_unlimited", "level", "value" ],
                    "example" : null
                  },
                  "example" : null
                }
              },
              "required" : [ "created_at", "id", "name" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "feature_id", "id", "name", "query", "type" ],
        "example" : null
      },
      "MeteredFeature" : {
        "type" : "object",
        "properties" : {
          "meter_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "column_definitions" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "column_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "property_data_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "number", "string" ],
                  "example" : null
                },
                "data_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "number", "string" ],
                  "example" : null
                }
              },
              "required" : [ "column_name", "data_type", "property_data_type" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "feature_id", "meter_id" ],
        "example" : null
      },
      "Mode" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "absolute", "percentage" ],
        "example" : null
      },
      "MrrUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              }
            },
            "required" : [ "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "NetdPaymentDueReminderEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "NonSubscription" : {
        "type" : "object",
        "description" : "**Important:**\n\n* We've stopped giving access to the legacy solution due to the limitations mentioned [here](https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/mobile-subscriptions-limitations). Please [request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/omnichannel-subscription&ref=feature) for enabling the new [Omnichannel Subscriptions](/docs/api/recorded_purchases/recorded-purchase-object) solution.\n* These APIs operate asynchronously. When you receive a successful response code from an API call, it indicates only the successful submission of your request, not the completion of the operation.\n\nUsing the Non-Subscription resource, you can track one-time payments made for consumable, non-consumable, and non-renewing products in Chargebee. Call this API to notify Chargebee of non-subscription purchases made at stores.\n",
        "properties" : {
          "invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique immutable identifier of the invoice imported in Chargebee for which the receipt was sent.\n",
            "maxLength" : 100,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique immutable identifier of the customer object to which the invoice belongs.\n",
            "maxLength" : 100,
            "example" : null
          },
          "charge_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#item_tiers_item_price_id\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_item.item_price_id</code></a> where the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code>.</p>",
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "charge_id", "invoice_id" ],
        "example" : null
      },
      "NotifyReferralSystem" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "none", "first_paid_conversion", "all_invoices" ],
        "example" : null
      },
      "OfferEvent" : {
        "type" : "object",
        "description" : "Offer events are used to record and list user interactions with personalized offers. By logging events such as views and dismissals, these APIs enable growth and analytics teams to measure the effectiveness of offers and optimize the offer funnel based on real usage data.\n",
        "example" : null
      },
      "OfferFulfillment" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Offer fulfillment allows you to initiate, update, and retrieve the lifecycle of an offer fulfillment, after a personalized offer has been accepted. Whether the personalized offer triggers a direct billing change, a hosted checkout flow, or a redirect-based workflow, these APIs track acceptance, execution status, and completion, providing a consistent interface for fulfillment tracking and notifications.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Features of this object:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Records fulfillment IDs for tracking and reference.</li>\n<li class=\"text-base leading-relaxed\">Captures status (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">completed</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>).</li>\n<li class=\"text-base leading-relaxed\">Stores redirect/checkout URLs as needed.</li>\n<li class=\"text-base leading-relaxed\">Contains timestamps for creation, completion, or failure.</li>\n<li class=\"text-base leading-relaxed\">Includes error codes and messages for failure analysis.</li>\n</ul></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "ID of the fulfillment that was created.\n",
            "maxLength" : 50,
            "example" : null
          },
          "personalized_offer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "ID of the personalized offer that was accepted.\n",
            "maxLength" : 50,
            "example" : null
          },
          "option_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "ID of the offer option that was selected by the user.\n",
            "maxLength" : 50,
            "example" : null
          },
          "processing_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The processing mode of the option. This indicates how the offer option is fulfilled: e.g., a direct billing change, a checkout flow, or a redirect to a URL.\n\\* webhook -\n\nChargebee triggers webhook and fulfillment is processed by your system\n\\* email -\n\nChargebee sends an email as configured in the Growth application and the fulfillment is processed by your system\n\\* checkout -\n\nThe offer fulfillment is processed using Chargebee hosted checkout\n\\* url_redirect -\n\nThe offer fulfillment is processed by your system\n\\* billing_update -\n\nThe offer fulfillment is processed by Chargebee\n",
            "enum" : [ "billing_update", "checkout", "url_redirect", "webhook", "email" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Current status of the offer fulfillment process.</p>\n* in_progress - <p class=\"mb-2\">The offer fulfillment is underway (not yet completed).</p>\n* completed - <p class=\"mb-2\">The offer was successfully applied . For URL redirects, this might be returned immediately if the action is completed, potentially along with a redirect_url if the user should be navigated to a specific page.</p>\n* failed - <p class=\"mb-2\">The offer fulfillment failed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">error object</code>\nfield will be present to provide more details in this case.</p>",
            "enum" : [ "in_progress", "completed", "failed" ],
            "example" : null
          },
          "redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A URL to which the user should be redirected. Returned only if the offer's processing type is billing_update or url_redirect\n",
            "maxLength" : 250,
            "example" : null
          },
          "failed_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the fulfillment failed (present only when status = failed).\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the fulfillment record was created.\n",
            "example" : null
          },
          "completed_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the fulfillment succeeded (present only when status = completed).\n",
            "example" : null
          },
          "error" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Error details describing the reason for failure (present only if status is failed).\n",
            "properties" : {
              "code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A Chargebee-defined code that corresponds to the specific error encountered during the fulfillment.\n\\* fulfillment_expired -\n\nReturned when the fulfillment has been in progress for more than 7 days, resulting in the system automatically marking it as failed.\n\\* internal_error -\n\nReturned when a system error occurred during fulfillment via checkout or billing updates.\n\\* external_fulfillment_failed -\n\nReturned when the fulfillment is marked as failed by the your system, particularly in cases involving URL redirects, webhooks, and email processing types.\n\\* billing_update_failed -\n\nReturned when Chargebee is unable to fulfill the offer while updating the Chargebee billing subscription.\n\\* checkout_abandoned -\n\nReturned when the checkout process was abandoned by the user.\n",
                "enum" : [ "billing_update_failed", "checkout_abandoned", "external_fulfillment_failed", "internal_error", "fulfillment_expired" ],
                "example" : null
              },
              "message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A descriptive message about the error. This is intended for your consumption and should not be displayed directly to end customers.\n",
                "maxLength" : 200,
                "example" : null
              }
            },
            "required" : [ "code", "message" ],
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "option_id", "personalized_offer_id", "processing_type", "status" ],
        "example" : null
      },
      "OfflinePaymentMethod" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
        "example" : null
      },
      "OmnichannelOneTimeOrder" : {
        "type" : "object",
        "description" : "This resource provides a unified representation of one-time order data across multiple [sources](/docs/api/omnichannel_one_time_orders/omnichannel_one_time_order-object#source)\n, such as the Apple App Store and Google Play Store. It maps the underlying data one-to-one into Chargebee's omnichannel format. Functioning as a **middleware**\n, this solution ensures the data is delivered in a consistent, standardized format as presented.  \n**Note:**\nThis resource specifically represents in-app product purchases made via the Apple App Store and Google Play Store.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The ID generated by Chargebee for the recorded one-time order.\n",
            "maxLength" : 40,
            "example" : null
          },
          "app_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_id</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Apple</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-app-store#create-an-omnichannel-subscription-for-in-app-purchases\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Google</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-play-store#connect-google-app-to-chargebee-to-generate-unique-app-id-and-notifications-url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n</ul>",
            "maxLength" : 100,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/customers/customer-object#id\">customer</a>\nobject that is associated with this one time order.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "id_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The identifier of the one_time_purchase in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code>.\nFor Apple App Store, it is the <strong class=\"font-semibold\">Transaction ID</strong>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">initial_purchase_transaction</code>.\nFor Google Play Store, it is the <strong class=\"font-semibold\">Order ID</strong>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">initial_purchase_transaction</code>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "origin" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Country code indicating where the one-time order originated, such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US</code>\nfor the United States.</p>",
            "maxLength" : 3,
            "example" : null
          },
          "source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/omnichannel_one_time_orders/omnichannel_one_time_order-object#source\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\nwhere the one-time order was originally made and managed.</p>\n* google_play_store - <p class=\"mb-2\">The source of the app is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">google_play_store</code>\n.</p>\n* apple_app_store - <p class=\"mb-2\">The source of the app is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apple_app_store</code>\n.</p>",
            "enum" : [ "apple_app_store", "google_play_store" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order</code>\ncreated in Chargebee.</p>",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "omnichannel_one_time_order_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "list of omnichannel_one_time_order_items in the omnichannel one time order\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Uniquely identifies a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order_item</code></p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "item_id_at_source" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Identifier of the purchased item in the original <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code>\n(e.g., <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apple_app_store</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">google_play_store</code>\n).</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_type_at_source" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Product type in the <code><a href=\"/docs/api/omnichannel_one_time_orders\">source</a></code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The quantity of the omnichannel order item(s) purchased by the customer.\n",
                  "example" : null
                },
                "cancelled_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates timestamp when this specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order_item</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nin the <a href=\"/docs/api/omnichannel_one_time_orders/omnichannel_one_time_order-object#source\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\n.</p>",
                  "example" : null
                },
                "cancellation_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The reason of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order</code>\ncancellation for an item.</p>",
                  "enum" : [ "customer_cancelled", "customer_did_not_consent_to_price_increase", "refunded_due_to_app_issue", "refunded_for_other_reason", "merchant_revoked" ],
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates timestamp when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order_item</code>\ncreated in Chargebee.</p>",
                  "example" : null
                },
                "resource_version" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
                  "example" : null
                }
              },
              "required" : [ "created_at", "id", "item_id_at_source" ],
              "example" : null
            },
            "example" : null
          },
          "purchase_transaction" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Details of the purchase transaction associated with the one-time order.\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Unique identifier for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction</code>\n.</p>",
                "maxLength" : 40,
                "example" : null
              },
              "id_at_source" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The identifier of the one time order in the <a href=\"/docs/api/omnichannel_one_time_orders\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>.\nFor Apple App Store, it is the <strong class=\"font-semibold\">Transaction ID</strong>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">initial_purchase_transaction</code>.\nFor Google Play Store, it is the <strong class=\"font-semibold\">Order ID</strong>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">initial_purchase_transaction</code>\n.</p>",
                "maxLength" : 100,
                "example" : null
              },
              "app_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_id</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Apple</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-app-store#create-an-omnichannel-subscription-for-in-app-purchases\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Google</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-play-store#connect-google-app-to-chargebee-to-generate-unique-app-id-and-notifications-url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n</ul>",
                "maxLength" : 100,
                "example" : null
              },
              "price_currency" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The currency code for the transaction\n",
                "maxLength" : 3,
                "example" : null
              },
              "price_units" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The whole units of the amount.\nFor example:\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then the unit value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">1</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then the unit value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">123</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then the unit value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">1</strong></p>",
                "example" : null
              },
              "price_nanos" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The fractional price amount, in nanos (billionths of the currency unit).\nThe value must be between <strong class=\"font-semibold\">0</strong> and <strong class=\"font-semibold\">+999,999,999</strong> inclusive.\nFor example:\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then nanos value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">230,000,000</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then nanos value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">0</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then nanos value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">234,000,000</strong></p>",
                "example" : null
              },
              "type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The type of transaction that occurred in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code>\n.</p>\n* renewal - <p class=\"mb-2\">Indicates that the transaction was initiated as part of a renewal for a previously completed purchase.</p>\n* purchase - <p class=\"mb-2\">Indicates that the transaction occurred for a purchase.</p>",
                "enum" : [ "purchase", "renewal" ],
                "example" : null
              },
              "transacted_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Timestamp when the transaction occurred in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code>\n.</p>",
                "example" : null
              },
              "created_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "Timestamp when the transaction was created.\n",
                "example" : null
              },
              "resource_version" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
                "example" : null
              },
              "linked_omnichannel_subscriptions" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">A list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code>\nobjects linked to this transaction. Each entry represents a subscription associated with the transaction.</p>",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "omnichannel_subscription_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "example" : null
              },
              "linked_omnichannel_one_time_orders" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">A list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order</code>\nobjects linked to this transaction. Each entry represents a one-time order associated with the transaction.</p>",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "omnichannel_one_time_order_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "example" : null
              }
            },
            "required" : [ "app_id", "created_at", "id", "id_at_source", "type" ],
            "example" : null
          }
        },
        "required" : [ "app_id", "created_at", "id", "id_at_source", "omnichannel_one_time_order_items", "source" ],
        "example" : null
      },
      "OmnichannelOneTimeOrderCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_one_time_order" : {
                "$ref" : "#/components/schemas/OmnichannelOneTimeOrder"
              },
              "omnichannel_one_time_order_item" : {
                "$ref" : "#/components/schemas/OmnichannelOneTimeOrderItem"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_one_time_order", "omnichannel_one_time_order_item", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelOneTimeOrderItem" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "item_id_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "item_type_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "quantity" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "cancelled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "cancellation_reason" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "customer_cancelled", "customer_did_not_consent_to_price_increase", "refunded_due_to_app_issue", "refunded_for_other_reason", "merchant_revoked" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "item_id_at_source" ],
        "example" : null
      },
      "OmnichannelOneTimeOrderItemCancelledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_one_time_order" : {
                "$ref" : "#/components/schemas/OmnichannelOneTimeOrder"
              },
              "omnichannel_one_time_order_item" : {
                "$ref" : "#/components/schemas/OmnichannelOneTimeOrderItem"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_one_time_order", "omnichannel_one_time_order_item", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscription" : {
        "type" : "object",
        "description" : "This resource unifies representation of the subscription data across multiple [sources](/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source)\n, such as the Apple App Store and Google Play Store. It provides one-to-one mapping of underlying data into Chargebee's omnichannel format. Acting as a **middleware**\n, the solution delivers data in a unified format as it is presented.  \n**Note:**\nThis resource represents in-app subscriptions made on Apple App Store and Google Play Store.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The ID generated by Chargebee for the recorded subscription purchase.\n",
            "maxLength" : 50,
            "example" : null
          },
          "id_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The identifier of the subscription in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code>.\nFor Apple App Store, it is the <strong class=\"font-semibold\">Transaction ID</strong>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">initial_purchase_transaction</code>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "app_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_id</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Apple</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-app-store#create-an-omnichannel-subscription-for-in-app-purchases\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Google</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-play-store#connect-google-app-to-chargebee-to-generate-unique-app-id-and-notifications-url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n</ul>",
            "maxLength" : 100,
            "example" : null
          },
          "source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\nwhere the purchase is originally made and managed.</p>\n* google_play_store - <p class=\"mb-2\">When source of the application is Google Play Store</p>\n* apple_app_store - <p class=\"mb-2\">When source of the application is Apple App Store</p>",
            "enum" : [ "apple_app_store", "google_play_store" ],
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/customers/customer-object#id\" class=\"text-blue-600 hover:text-blue-800 underline\">customer</a>\nobject that is associated with this purchase.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code>\ncreated in Chargebee.</p>",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
            "example" : null
          },
          "omnichannel_subscription_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Items associated with the omnichannel_subscription.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Uniquely identifies a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "item_id_at_source" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Product ID in the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_parent_id_at_source" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The parent name of the product ID in the <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Status of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>.\n<a href=\"/docs/api/omnichannel_statuses\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a>\nabout status and their mapping with the store&#x27;s status.</p>\n* active - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code></p>\n* in_dunning - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_dunning</code>\n.</p>\n* expired - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code></p>\n* cancelled - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code></p>\n* in_grace_period - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_grace_period</code>\n.</p>\n* paused - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>\n.</p>",
                  "enum" : [ "active", "expired", "cancelled", "in_dunning", "in_grace_period", "paused" ],
                  "example" : null
                },
                "auto_renew_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The renewal status for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>\n* off - <p class=\"mb-2\">The auto-renewal of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis disabled.</p>\n* on - <p class=\"mb-2\">The auto-renewal of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis enabled.</p>",
                  "enum" : [ "off", "on" ],
                  "example" : null
                },
                "current_term_start" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Start of the current billing period of the subscription item. It is applicable only if the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#omnichannel_subscription_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n.</p>",
                  "example" : null
                },
                "current_term_end" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">End of the current billing period of the subscription item. It is applicable only if the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#omnichannel_subscription_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.</p>\n<blockquote>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nThis timestamp can be considered closest to the <a href=\"/docs/api/subscriptions/subscription-object#next_billing_at\" class=\"text-blue-600 hover:text-blue-800 underline\">next_billing_at</a>\ntimestamp as Apple does not provide information on the next renewal. Apple can renew the subscription 24 hours before it expires, and after entering the billing retry state, it can attempt to renew the subscription for up to 60 days. <a href=\"https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/handling_subscriptions_billing#3221910\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a>\n.</p>\n</blockquote>",
                  "example" : null
                },
                "expired_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates timestamp when the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code>\nin the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a></p>",
                  "example" : null
                },
                "expiration_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the reason for the subscription expiration.\n\\* product_not_available -\n\nIndicates that the product was unavailable for purchase at the time of renewal.\n\\* other -\n\nIndicates that the subscription associated with the item expired for an unspecified reason.\n\\* billing_error -\n\nIndicates a billing error, such as the customer's payment information being invalid.\n",
                  "enum" : [ "billing_error", "product_not_available", "other" ],
                  "example" : null
                },
                "cancelled_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates timestamp when the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nin the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a></p>",
                  "example" : null
                },
                "cancellation_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The reason of canceling the subscription.\n\\* customer_did_not_consent_to_price_increase -\n\nIndicates that the customer did not consent to the price increase for the subscription item.\n\\* merchant_revoked -\n\nIndicates that the merchant revoked access to the subscription.\n\\* customer_cancelled -\n\nIndicates that the subscription was voluntarily cancelled by the customer.\n\\* refunded_for_other_reason -\n\nIndicates that the subscription was cancelled and refunded for another reason.\n\\* refunded_due_to_app_issue -\n\nIndicates that the subscription was cancelled and refunded due to the app issue.\n",
                  "enum" : [ "customer_cancelled", "customer_did_not_consent_to_price_increase", "refunded_due_to_app_issue", "refunded_for_other_reason", "merchant_revoked" ],
                  "example" : null
                },
                "grace_period_expires_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates timestamp when the grace period of subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nexpires in the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a></p>",
                  "example" : null
                },
                "resumes_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates timestamp when the subscription automatically resumes after being set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>\n.</p>",
                  "example" : null
                },
                "has_scheduled_changes" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates whether the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nhas any scheduled changes.</p>",
                  "example" : null
                },
                "resource_version" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
                  "example" : null
                },
                "omnichannel_subscription_item_offers" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Represents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item_offers</code>\nassociated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>",
                  "items" : {
                    "type" : "object",
                    "deprecated" : false,
                    "properties" : {
                      "id" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Unique identifier for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item_offer</code>.\nSystem-generated.</p>",
                        "maxLength" : 40,
                        "example" : null
                      },
                      "offer_id_at_source" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Identifier of the offer on the source platform (for example, Apple App Store or Google Play Store). Used to map Chargebee's record to the source.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "category" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Indicates functional purpose of the offer. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">introductory</code>\nindicates a first-time offer for new subscribers.</p>\n* introductory - <p class=\"mb-2\">Introductory offer for first-time subscribers, typically providing special pricing or terms for the first billing cycle.</p>\n* promotional - <p class=\"mb-2\">Promotional offer that may be available to both new and existing subscribers, often featuring limited-time pricing or terms.</p>\n* developer_determined - <p class=\"mb-2\">Offer terms are determined by the developer and may include unique pricing or features.\n<strong class=\"font-semibold\">Note:</strong> Support for this category is planned for a future update.</p>",
                        "enum" : [ "introductory", "promotional", "developer_determined" ],
                        "example" : null
                      },
                      "category_at_source" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Category label as defined by the source platform (for example, Apple App Store or Google Play Store). Directly fetched from the source; useful for debugging or platform-specific workflows.\n",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Indicates how the offer is applied from a pricing-model perspective.\n\\* free_trial -\n\nProvides a free trial period. The customer is not charged during the trial; regular billing begins after the trial ends.\n\\* pay_up_front -\n\nRequires a fixed upfront payment for a defined subscription period, often at a discount. For example, pay for two months in advance.\n\\* pay_as_you_go -\n\nApplies a recurring discounted price at each billing cycle over multiple renewals, such as on a monthly plan, a discount on the initial purchase, and the next three billing cycles.\n",
                        "enum" : [ "free_trial", "pay_up_front", "pay_as_you_go" ],
                        "example" : null
                      },
                      "type_at_source" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Offer type as recorded by the source platform (for example, Apple App Store or Google Play Store), such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">category_at_source</code> is useful for tracking and audit.</p>",
                        "maxLength" : 100,
                        "example" : null
                      },
                      "discount_type" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Discount strategy: percentage discount, fixed amount off, or fixed price override.\n\\* percentage -\n\nApplies a percentage discount on the original price of the subscription item. For example, 20% off.\n\\* fixed_amount -\n\nDiscount that subtracts a fixed amount from the original price of the subscription item.\n\\* price -\n\nOverrides the original price with a fixed discounted price for the offer term. For example, set the price to $9.99 during the offer.\n",
                        "enum" : [ "fixed_amount", "percentage", "price" ],
                        "example" : null
                      },
                      "duration" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Indicates how long the offer applies to the subscription. This attribute uses ISO 8601 duration format. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">P1M</code>\n(1 month), <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">P7D</code>\n(7 days). After this duration, regular pricing resumes.</p>",
                        "maxLength" : 5,
                        "example" : null
                      },
                      "percentage" : {
                        "type" : "number",
                        "format" : "double",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Used when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code>.\nSpecifies the discount as a decimal value. For example, a value of 12.5 corresponds to a 12.5% discount.</p>",
                        "maximum" : 100,
                        "minimum" : 0.01,
                        "example" : null
                      },
                      "price_currency" : {
                        "type" : "string",
                        "deprecated" : false,
                        "description" : "Three-letter [ISO 4217](https://www.chargebee.com/docs/billing/2.0/site-configuration/supported-currencies)\ncurrency code for the offer price (for example, USD, EUR, INR).\n",
                        "maxLength" : 3,
                        "example" : null
                      },
                      "price_units" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Whole-unit portion of the offer amount (for example,10 for $10.00).\n**Note:** Depending on the discount type, this value can represent different meanings. For a fixed_amountdiscount, it indicates the amount deducted from the original price, while for aprice discount, it reflects the final amount payable by the customer.\n",
                        "example" : null
                      },
                      "price_nanos" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "Fractional part of the offer amount, expressed in nanos (billionths of the currency unit). For example, 500000000represents 0.50. Combine withprice_units to determine the total price (for example, $10.50).\n**Note:** Depending on the discount type, this value can represent different meanings. For a fixed_amountdiscount, it indicates the amount deducted from the original price, while for aprice discount, it reflects the final amount payable by the customer.\n",
                        "example" : null
                      },
                      "offer_term_start" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Timestamp when the offer becomes effective for the subscription item. It is typically set to the time when the offer is first applied or activated.\n",
                        "example" : null
                      },
                      "offer_term_end" : {
                        "type" : "integer",
                        "format" : "unix-time",
                        "deprecated" : false,
                        "description" : "Timestamp when the offer becomes invalid. After this time, regular pricing or terms apply to the subscription item.\n",
                        "example" : null
                      },
                      "resource_version" : {
                        "type" : "integer",
                        "format" : "int64",
                        "deprecated" : false,
                        "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
                        "example" : null
                      }
                    },
                    "required" : [ "category", "duration", "id", "type" ],
                    "example" : null
                  },
                  "example" : null
                },
                "upcoming_renewal" : {
                  "type" : "object",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">This field contains information about the upcoming renewal. It is present only if the <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\nprovides renewal information (currently available only for Google Play Store purchases) and the <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code></a>\n&#x27;s <a href=\"/docs/api/omnichannel_subscription_items/omnichannel_subscription_item-object#auto_renew_status\" class=\"text-blue-600 hover:text-blue-800 underline\">auto_renew_status</a>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>\nto renew for the next term. Otherwise, this field is absent.</p>",
                  "properties" : {
                    "price_currency" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "The three-letter [ISO 4217](https://www.chargebee.com/docs/supported-currencies.html)\ncurrency code in which the next renewal is set to occur\n",
                      "maxLength" : 3,
                      "example" : null
                    },
                    "price_units" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The whole units of the amount.\nFor example:\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then the unit value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">1</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then the unit value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">123</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then the unit value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">1</strong></p>",
                      "example" : null
                    },
                    "price_nanos" : {
                      "type" : "integer",
                      "format" : "int64",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">The fractional price amount, in nanos (billionths of the currency unit), for the next renewal.\nThe value must be between <strong class=\"font-semibold\">0</strong> and <strong class=\"font-semibold\">+999,999,999</strong> inclusive.\nFor example:\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then nanos value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">230,000,000</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then nanos value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">0</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then nanos value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">234,000,000</strong></p>",
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "linked_item" : {
                  "type" : "object",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Represents an active product catalog mapping between an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nand a Chargebee <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>.\nUse this attribute to retrieve entitlements for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nthat are associated with the linked Chargebee <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\n.</p>",
                  "properties" : {
                    "id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">Represents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\nof the Chargebee item linked to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "linked_at" : {
                      "type" : "integer",
                      "format" : "unix-time",
                      "deprecated" : false,
                      "description" : "<p class=\"mb-2\">Indicates the timestamp when the mapping between the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nand the Chargebee <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nwas created in Chargebee.</p>",
                      "example" : null
                    }
                  },
                  "required" : [ "id" ],
                  "example" : null
                }
              },
              "required" : [ "has_scheduled_changes", "id", "item_id_at_source", "status" ],
              "example" : null
            },
            "example" : null
          },
          "initial_purchase_transaction" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Refers to the record created when a customer makes their first purchase.\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Unique ID of a omnichannel transaction\n",
                "maxLength" : 40,
                "example" : null
              },
              "id_at_source" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The identifier of the subscription in the <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>.\nFor Apple App Store, it is the <strong class=\"font-semibold\">Transaction ID</strong>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">initial_purchase_transaction</code>.\nFor Google Play Store, it is the <strong class=\"font-semibold\">Order ID</strong>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">initial_purchase_transaction</code>\n.</p>",
                "maxLength" : 100,
                "example" : null
              },
              "app_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_id</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Apple</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-app-store#create-an-omnichannel-subscription-for-in-app-purchases\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Google</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-play-store#connect-google-app-to-chargebee-to-generate-unique-app-id-and-notifications-url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n</ul>",
                "maxLength" : 100,
                "example" : null
              },
              "price_currency" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The currency code for the transaction\n",
                "maxLength" : 3,
                "example" : null
              },
              "price_units" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The whole units of the amount.\nFor example:\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then the unit value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">1</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then the unit value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">123</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then the unit value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">1</strong></p>",
                "example" : null
              },
              "price_nanos" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The fractional price amount, in nanos (billionths of the currency unit), for the next renewal.\nThe value must be between <strong class=\"font-semibold\">0</strong> and <strong class=\"font-semibold\">+999,999,999</strong> inclusive.\nFor example:\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then nanos value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">230,000,000</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then nanos value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">0</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then nanos value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">234,000,000</strong></p>",
                "example" : null
              },
              "type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Omnichannel subscription transaction type that describes the transaction\n\\* renewal -\n\nIndicates that the transaction was initiated as part of a renewal for a previously completed purchase.\n\\* purchase -\n\nIndicates that the transaction occurred for a purchase.\n",
                "enum" : [ "purchase", "renewal" ],
                "example" : null
              },
              "transacted_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Timestamp denoting the time when the transaction occurred in <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a></p>",
                "example" : null
              },
              "created_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The timestamp of transaction creation\n",
                "example" : null
              },
              "resource_version" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
                "example" : null
              },
              "linked_omnichannel_subscriptions" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">A list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code>\nobjects linked to this transaction. Each entry represents a subscription associated with the initial purchase transaction.</p>",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "omnichannel_subscription_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "example" : null
              },
              "linked_omnichannel_one_time_orders" : {
                "type" : "array",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">A list of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_one_time_order</code>\nobjects linked to this transaction. Each entry represents a one-time order associated with the initial purchase transaction.</p>",
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "omnichannel_one_time_order_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    }
                  },
                  "example" : null
                },
                "example" : null
              }
            },
            "required" : [ "app_id", "created_at", "id", "id_at_source", "type" ],
            "example" : null
          }
        },
        "required" : [ "app_id", "created_at", "id", "id_at_source", "omnichannel_subscription_items", "source" ],
        "example" : null
      },
      "OmnichannelSubscriptionCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionImportedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "omnichannel_subscription_item_scheduled_change" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_subscription_item_scheduled_change", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItem" : {
        "type" : "object",
        "description" : "This resource unifies representation of a Subscription item across multiple source.  \n**Note:**\nThis resource represents in-app subscriptions made on Apple App Store and Google Play Store.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Uniquely identifies a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "item_id_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Product ID in the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "item_parent_id_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The parent name of the product ID in the <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Status of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>.\n<a href=\"/docs/api/omnichannel_statuses\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a>\nabout status and their mapping with the store&#x27;s status.</p>\n* in_grace_period - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_grace_period</code></p>\n* in_dunning - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_dunning</code></p>\n* expired - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code></p>\n* active - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code></p>\n* cancelled - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code></p>\n* paused - <p class=\"mb-2\">When the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code></p>",
            "enum" : [ "active", "expired", "cancelled", "in_dunning", "in_grace_period", "paused" ],
            "example" : null
          },
          "auto_renew_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The renewal status for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>\n* on - <p class=\"mb-2\">The auto-renewal of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis enabled.</p>\n* off - <p class=\"mb-2\">The auto-renewal of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis disabled.</p>",
            "enum" : [ "off", "on" ],
            "example" : null
          },
          "current_term_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Start of the current billing period of the subscription item. It is applicable only if the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#omnichannel_subscription_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n.</p>",
            "example" : null
          },
          "current_term_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">End of the current billing period of the subscription item. It is applicable only if the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#omnichannel_subscription_items\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code></a>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\n.</p>",
            "example" : null
          },
          "expired_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code>\nin the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a></p>",
            "example" : null
          },
          "expiration_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the reason for the subscription expiration.\n\\* other -\n\nIndicates that the subscription associated with the item expired for an unspecified reason.\n\\* product_not_available -\n\nIndicates that the product was unavailable for purchase at the time of renewal.\n\\* billing_error -\n\nIndicates a billing error, such as the customer's payment information being invalid.\n",
            "enum" : [ "billing_error", "product_not_available", "other" ],
            "example" : null
          },
          "cancelled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nin the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a></p>",
            "example" : null
          },
          "cancellation_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The reason of canceling the subscription.\n\\* refunded_for_other_reason -\n\nIndicates that the subscription was cancelled and refunded for another reason.\n\\* refunded_due_to_app_issue -\n\nIndicates that the subscription was cancelled and refunded due to the app issue.\n\\* customer_did_not_consent_to_price_increase -\n\nIndicates that the customer did not consent to the price increase for the subscription item.\n\\* customer_cancelled -\n\nIndicates that the subscription was voluntarily cancelled by the customer.\n\\* merchant_revoked -\n\nIndicates that the merchant revoked access to the subscription.\n",
            "enum" : [ "customer_cancelled", "customer_did_not_consent_to_price_increase", "refunded_due_to_app_issue", "refunded_for_other_reason", "merchant_revoked" ],
            "example" : null
          },
          "grace_period_expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the grace period of subscription associated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nexpires in the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#source\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a></p>",
            "example" : null
          },
          "resumes_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the subscription automatically resumes after being set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>\n.</p>",
            "example" : null
          },
          "has_scheduled_changes" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates whether the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nhas any scheduled changes.</p>",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
            "example" : null
          },
          "omnichannel_subscription_item_offers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Represents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item_offers</code>\nassociated with the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Unique identifier for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item_offer</code>.\nSystem-generated.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "offer_id_at_source" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Identifier of the offer on the source platform (for example, Apple App Store or Google Play Store). Used to map Chargebee's record to the source.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "category" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates functional purpose of the offer. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">introductory</code>\nindicates a first-time offer for new subscribers.</p>\n* developer_determined - <p class=\"mb-2\">Offer terms are determined by the developer and may include unique pricing or features.\n<strong class=\"font-semibold\">Note</strong>: Support for this category is planned for a future update.</p>\n* promotional - <p class=\"mb-2\">Promotional offer that may be available to both new and existing subscribers, often featuring limited-time pricing or terms.</p>\n* introductory - <p class=\"mb-2\">Introductory offer for first-time subscribers, typically providing special pricing or terms for the first billing cycle.</p>",
                  "enum" : [ "introductory", "promotional", "developer_determined" ],
                  "example" : null
                },
                "category_at_source" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Category label as defined by the source platform (for example, Apple App Store or Google Play Store). Directly fetched from the source; useful for debugging or platform-specific workflows.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Indicates how the offer is applied from a pricing-model perspective.\n\\* pay_as_you_go -\n\nApplies a recurring discounted price at each billing cycle over multiple renewals, such as on a monthly plan, a discount on the initial purchase, and the next three billing cycles.\n\\* free_trial -\n\nProvides a free trial period. The customer is not charged during the trial; regular billing begins after the trial ends.\n\\* pay_up_front -\n\nRequires a fixed upfront payment for a defined subscription period, often at a discount. For example, pay for two months in advance.\n",
                  "enum" : [ "free_trial", "pay_up_front", "pay_as_you_go" ],
                  "example" : null
                },
                "type_at_source" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Offer type as recorded by the source platform (for example, Apple App Store or Google Play Store), such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">category_at_source</code> is useful for tracking and audit.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Discount strategy: percentage discount, fixed amount off, or fixed price override.\n\\* fixed_amount -\n\nDiscount that subtracts a fixed amount from the original price of the subscription item.\n\\* percentage -\n\nApplies a percentage discount on the original price of the subscription item. For example, 20% off.\n\\* price -\n\nOverrides the original price with a fixed discounted price for the offer term. For example, set the price to $9.99 during the offer.\n",
                  "enum" : [ "fixed_amount", "percentage", "price" ],
                  "example" : null
                },
                "duration" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates how long the offer applies to the subscription. This attribute uses ISO 8601 duration format. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">P1M</code>\n(1 month), <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">P7D</code>\n(7 days). After this duration, regular pricing resumes.</p>",
                  "maxLength" : 5,
                  "example" : null
                },
                "percentage" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Used when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">percentage</code>.\nSpecifies the discount as a decimal value. For example, a value of 12.5 corresponds to a 12.5% discount.</p>",
                  "maximum" : 100,
                  "minimum" : 0.01,
                  "example" : null
                },
                "price_currency" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Three-letter [ISO 4217](https://www.chargebee.com/docs/billing/2.0/site-configuration/supported-currencies)\ncurrency code for the offer price (for example, USD, EUR, INR).\n",
                  "maxLength" : 3,
                  "example" : null
                },
                "price_units" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Whole-unit portion of the offer amount (for example,10 for $10.00).\n**Note:** Depending on the discount type, this value can represent different meanings. For a fixed_amountdiscount, it indicates the amount deducted from the original price, while for a price discount, it reflects the final amount payable by the customer.\n",
                  "example" : null
                },
                "price_nanos" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Fractional part of the offer amount, expressed in nanos (billionths of the currency unit). For example, 500000000represents 0.50. Combine withprice_units to determine the total price (for example, $10.50).\n**Note:** Depending on the discount type, this value can represent different meanings. For a fixed_amountdiscount, it indicates the amount deducted from the original price, while for a price discount, it reflects the final amount payable by the customer.\n",
                  "example" : null
                },
                "offer_term_start" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp when the offer becomes effective for the subscription item. It is typically set to the time when the offer is first applied or activated.\n",
                  "example" : null
                },
                "offer_term_end" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp when the offer becomes invalid. After this time, regular pricing or terms apply to the subscription item.\n",
                  "example" : null
                },
                "resource_version" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
                  "example" : null
                }
              },
              "required" : [ "category", "duration", "id", "type" ],
              "example" : null
            },
            "example" : null
          },
          "upcoming_renewal" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This field contains information about the upcoming renewal. It is present only if the <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">source</code></a>\nprovides renewal information (currently available only for Google Play Store purchases) and the <a href=\"/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code></a>\n&#x27;s <a href=\"/docs/api/omnichannel_subscription_items/omnichannel_subscription_item-object#auto_renew_status\" class=\"text-blue-600 hover:text-blue-800 underline\">auto_renew_status</a>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on</code>\nto renew for the next term. Otherwise, this field is absent.</p>",
            "properties" : {
              "price_currency" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The three-letter [ISO 4217](https://www.chargebee.com/docs/supported-currencies.html) currency code in which the next renewal is set to occur\n",
                "maxLength" : 3,
                "example" : null
              },
              "price_units" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The whole units of the amount.\nFor example:\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then the unit value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">1</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then the unit value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">123</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then the unit value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">1</strong></p>",
                "example" : null
              },
              "price_nanos" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The fractional price amount, in nanos (billionths of the currency unit), for the next renewal.\nThe value must be between <strong class=\"font-semibold\">0</strong> and <strong class=\"font-semibold\">+999,999,999</strong> inclusive.\nFor example:\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then nanos value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">230,000,000</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then nanos value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">0</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then nanos value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">234,000,000</strong></p>",
                "example" : null
              }
            },
            "example" : null
          },
          "linked_item" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Represents an active product catalog mapping between an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nand a Chargebee <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>.\nUse this attribute to retrieve entitlements for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nthat are associated with the linked Chargebee <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\n.</p>",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Represents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_id</code>\nof the Chargebee item linked to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\n.</p>",
                "maxLength" : 100,
                "example" : null
              },
              "linked_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Indicates the timestamp when the mapping between the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nand the Chargebee <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>\nwas created in Chargebee.</p>",
                "example" : null
              }
            },
            "required" : [ "id" ],
            "example" : null
          }
        },
        "required" : [ "has_scheduled_changes", "id", "item_id_at_source", "status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemCancellationScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemCancelledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemChangeScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription_item_scheduled_change" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription_item", "omnichannel_subscription_item_scheduled_change" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemChangedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "omnichannel_subscription_item_scheduled_change" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_subscription_item_scheduled_change", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemDowngradeScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemDowngradedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemDunningExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemDunningStartedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemGracePeriodExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemGracePeriodStartedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemOffer" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "offer_id_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "category" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "introductory", "promotional", "developer_determined" ],
            "example" : null
          },
          "category_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "free_trial", "pay_up_front", "pay_as_you_go" ],
            "example" : null
          },
          "type_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "discount_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "fixed_amount", "percentage", "price" ],
            "example" : null
          },
          "duration" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 5,
            "example" : null
          },
          "percentage" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "maximum" : 100,
            "minimum" : 0.01,
            "example" : null
          },
          "price_currency" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 3,
            "example" : null
          },
          "price_units" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "price_nanos" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "offer_term_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "offer_term_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "category", "duration", "id", "type" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemPauseScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription_item_scheduled_change" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription_item", "omnichannel_subscription_item_scheduled_change" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemPausedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemReactivatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemRecoveredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemRenewedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemResubscribedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "omnichannel_subscription_item_scheduled_change" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_subscription_item_scheduled_change", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemResumedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemScheduledCancellationRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemScheduledChange" : {
        "type" : "object",
        "description" : "This resource represents any scheduled changes related to an [Omnichannel subscription item](/docs/api/omnichannel_subscription_items)\n.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Uniquely identifies an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item_scheduled_change</code>\n.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "omnichannel_subscription_item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/omnichannel_subscription_items/omnichannel_subscription_item-object#id\">Omnichannel subscription item</a>\nobject associated with this scheduled change.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "scheduled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When a change to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item</code>\nis scheduled, this is the date and time when it takes effect.</p>",
            "example" : null
          },
          "change_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates the type of scheduled change.</p>\n* downgrade - <p class=\"mb-2\">The scheduled change type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">downgrade</code></p>",
            "enum" : [ "downgrade", "pause" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_item_scheduled_change</code>\nwas created in Chargebee.</p>",
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
            "example" : null
          },
          "current_state" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "The current state of the attributes before the scheduled change takes effect.\n",
            "properties" : {
              "item_id_at_source" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Applicable only if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">downgrade</code>\n.</p>",
                "maxLength" : 100,
                "example" : null
              }
            },
            "example" : null
          },
          "scheduled_state" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "The scheduled state of the attributes for which the change is scheduled.\n",
            "properties" : {
              "item_id_at_source" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Applicable only if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">downgrade</code>\n.</p>",
                "maxLength" : 100,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "change_type", "created_at", "modified_at", "scheduled_at" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemScheduledChangeRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription_item_scheduled_change" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription_item", "omnichannel_subscription_item_scheduled_change" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemScheduledDowngradeRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionItemUpgradedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription_item" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItem"
              },
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              },
              "omnichannel_subscription_item_scheduled_change" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChange"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription", "omnichannel_subscription_item", "omnichannel_subscription_item_scheduled_change", "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelSubscriptionMovedInEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_subscription" : {
                "$ref" : "#/components/schemas/OmnichannelSubscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "omnichannel_subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OmnichannelTransaction" : {
        "type" : "object",
        "description" : "A unified representation of Transaction across multiple source.\n\n### Apple App Store\n\nThe [price](https://developer.apple.com/documentation/appstoreservernotifications/price) value reflects the price you configured in App Store Connect, which the system records at the time of transaction ([transacted_at](/docs/api/omnichannel_transactions/omnichannel_transaction-object#transacted_at)) after the discount if any offers are applied.  \n**Important**\nFor financial and accounting purposes, use the App Store Connect reporting tools. For more information, see [Download financial reports](https://developer.apple.com/help/app-store-connect/getting-paid/download-financial-reports) and [Overview of reporting tools](https://developer.apple.com/help/app-store-connect/measure-app-performance/overview-of-reporting-tools).\n[Learn more](https://developer.apple.com/documentation/appstoreservernotifications/price) about price in Apple App Store.\n\n### Google Play Store\n\nThe Google Play Store does not provide the transaction amount or the purchase time. As a result, the system does not record the price value or time of the transaction([transacted_at](/docs/api/omnichannel_transactions/omnichannel_transaction-object#transacted_at)).\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The ID generated by Chargebee for the recorded purchase.\n",
            "maxLength" : 40,
            "example" : null
          },
          "id_at_source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id of the transaction in the 'source'. For Apple App Store, it is the 'Transaction ID' of the initial subscription purchase transaction\n",
            "maxLength" : 100,
            "example" : null
          },
          "app_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_id</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Apple</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-app-store#create-an-omnichannel-subscription-for-in-app-purchases\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Google</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-play-store#connect-google-app-to-chargebee-to-generate-unique-app-id-and-notifications-url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n</ul>",
            "maxLength" : 100,
            "example" : null
          },
          "price_currency" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The three-letter ISO 4217 currency code associated with the transaction\n",
            "maxLength" : 3,
            "example" : null
          },
          "price_units" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The whole units of the amount.\nFor example:\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then the unit value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">1</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then the unit value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">123</strong>\nif <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then the unit value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">1</strong></p>",
            "example" : null
          },
          "price_nanos" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The fraction part of the amount.\nThe value must be between <strong class=\"font-semibold\">0</strong> and <strong class=\"font-semibold\">+999,999,999</strong> inclusive.\nFor example:\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">USD</strong> (i.e. two decimal currency), then nanos value for <strong class=\"font-semibold\">USD</strong> <strong class=\"font-semibold\">1.23</strong> will be <strong class=\"font-semibold\">230,000,000</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">JPY</strong> (i.e. zero decimal currency), then nanos value for <strong class=\"font-semibold\">JPY</strong> <strong class=\"font-semibold\">123</strong> will be <strong class=\"font-semibold\">0</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currencyCode</code> is <strong class=\"font-semibold\">BHD</strong> (i.e. three decimal currency), then nanos value for <strong class=\"font-semibold\">BHD</strong> <strong class=\"font-semibold\">1.234</strong> will be <strong class=\"font-semibold\">234,000,000</strong></p>",
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Omni-subscription transaction type that describes the transaction\n\\* renewal -\n\nIndicates that the transaction was initiated as part of a renewal for a previously completed purchase.\n\\* purchase -\n\nIndicates that the transaction occurred for a purchase.\n",
            "enum" : [ "purchase", "renewal" ],
            "example" : null
          },
          "transacted_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp denoting the time when the transaction occurred in Source\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Omnichannel Transaction created time\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
            "example" : null
          },
          "linked_omnichannel_subscriptions" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "omnichannel_subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "linked_omnichannel_one_time_orders" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "omnichannel_one_time_order_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "app_id", "created_at", "id", "id_at_source", "type" ],
        "example" : null
      },
      "OmnichannelTransactionCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "omnichannel_transaction" : {
                "$ref" : "#/components/schemas/OmnichannelTransaction"
              }
            },
            "required" : [ "omnichannel_transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OnEvent" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
        "example" : null
      },
      "Operation" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "create", "update", "delete" ],
        "example" : null
      },
      "OperationType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "add", "remove" ],
        "example" : null
      },
      "Order" : {
        "type" : "object",
        "description" : "**Note:**\nThis doc is for the latest version of Chargebee Orders. If you enabled Chargebee Orders before *September-30-2018*\n, you may be using the legacy version of the feature and its API. For help in migrating to the current system or using the legacy API for Chargebee Orders, please [contact support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support)\n\nOrders are automatically generated for an invoice when it gets paid, based on the shipping preference chosen for the invoice's product and the shipping date configuration. They can be updated either via api or merchant web console (a.k.a admin console).\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies the order. It is the api identifier for the order\n",
            "maxLength" : 40,
            "example" : null
          },
          "document_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The order's serial number\n",
            "maxLength" : 50,
            "example" : null
          },
          "invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The invoice number which acts as an identifier for invoice and is generated sequentially.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription for which the order is created\n",
            "maxLength" : 50,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The customer for which the order is created\n",
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "new",
            "deprecated" : false,
            "description" : "The status of this order.\n\\* complete -\n\nOrder has been processed successfully. Applicable only if you are using Chargebee's legacy order management system\n\\* partially_delivered -\n\nThe order has been partially delivered to the customer.\n\\* voided -\n\nOrder has been voided. Applicable only if you are using Chargebee's legacy order management system\n\\* on_hold -\n\nThe order is paused from being processed.\n\\* awaiting_shipment -\n\nThe order has been picked up by an integration system, and synced to a shipping management platform\n\\* shipped -\n\nThe order has moved from order management system to a shipping system.\n\\* queued -\n\nOrder is yet to be processed by any system, these are scheduled orders created by Chargebee\n\\* new -\n\nOrder has been created. Applicable only if you are using Chargebee's legacy order management system.\n\\* returned -\n\nThe order has been returned after delivery.\n\\* delivered -\n\nThe order has been delivered to the customer.\n\\* cancelled -\n\nOrder has been cancelled. Applicable only if you are using Chargebee's legacy order management system\n\\* processing -\n\nOrder is being processed. Applicable only if you are using Chargebee's legacy order management system\n",
            "enum" : [ "new", "processing", "complete", "cancelled", "voided", "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned" ],
            "example" : null
          },
          "cancellation_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Cancellation reason\n\\* payment_declined -\n\nPayment declined.\n\\* shipping_cut_off_passed -\n\nThe invoice has been paid late and Chargebee cancel's the first order for the invoice.\n\\* product_not_available -\n\nProduct not available.\n\\* alternative_found -\n\nAlternative found.\n\\* others -\n\nOther reason\n\\* order_resent -\n\nOrder resent\n\\* product_unsatisfactory -\n\nProduct unsatisfactory.\n\\* delivery_date_missed -\n\nDelivery date missed.\n\\* fraudulent_transaction -\n\nFraudulent transaction.\n\\* invoice_voided -\n\nThe invoice for which the order was createed has been voided.\n\\* subscription_cancelled -\n\nThe subsctiption for which the order was created has been cancelled.\n\\* invoice_written_off -\n\nThe invoice has been completely written off. Orders are generated by Chargebee in cancelled state.\n\\* product_not_required -\n\nProduct not required.\n\\* third_party_cancellation -\n\nThird party cancellation.\n",
            "enum" : [ "shipping_cut_off_passed", "product_unsatisfactory", "third_party_cancellation", "product_not_required", "delivery_date_missed", "alternative_found", "invoice_written_off", "invoice_voided", "fraudulent_transaction", "payment_declined", "subscription_cancelled", "product_not_available", "others", "order_resent" ],
            "example" : null
          },
          "payment_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The payment status of the order\n\\* paid -\n\nPAID\n\\* not_paid -\n\nNOT_PAID\n",
            "enum" : [ "not_paid", "paid" ],
            "example" : null
          },
          "order_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Order type\n\\* manual -\n\nThe order has been created by the user using Chargebee's legacy order management system.\n\\* system_generated -\n\nThe order has been created by Chargebee automatically based on the preferences set by the user.\n",
            "enum" : [ "manual", "system_generated" ],
            "example" : null
          },
          "price_type" : {
            "type" : "string",
            "default" : "tax_exclusive",
            "deprecated" : false,
            "description" : "The price type of the order\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n",
            "enum" : [ "tax_exclusive", "tax_inclusive" ],
            "example" : null
          },
          "reference_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is same as the order id in the third party application.\n",
            "maxLength" : 50,
            "example" : null
          },
          "fulfillment_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;\n",
            "maxLength" : 50,
            "example" : null
          },
          "order_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date on which the order will start getting processed.\n",
            "example" : null
          },
          "shipping_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "This is the date on which the order will be delivered to the customer.\n",
            "example" : null
          },
          "note" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The custom note for the order.\n",
            "maxLength" : 600,
            "example" : null
          },
          "tracking_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The tracking id of the order.\n",
            "maxLength" : 50,
            "example" : null
          },
          "tracking_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The tracking url of the order.\n",
            "maxLength" : 255,
            "example" : null
          },
          "batch_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique id to identify a group of orders.\n",
            "maxLength" : 50,
            "example" : null
          },
          "created_by" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The source (or the user) from where the order has been created.\n",
            "maxLength" : 50,
            "example" : null
          },
          "shipment_carrier" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Shipment carrier\n",
            "maxLength" : 50,
            "example" : null
          },
          "invoice_round_off_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The total round off taken from the invoice level\n",
            "minimum" : 0,
            "example" : null
          },
          "tax" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The total tax for the order.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_paid" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total amount paid for the order.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_adjusted" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total amount adjusted for the order.\n",
            "minimum" : 0,
            "example" : null
          },
          "refundable_credits_issued" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The total amount issued as credits on behalf of this order.\n",
            "minimum" : 0,
            "example" : null
          },
          "refundable_credits" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The total amount that can be issued as credits for this order.\n",
            "minimum" : 0,
            "example" : null
          },
          "rounding_adjustement" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Rounding adjustment\n",
            "example" : null
          },
          "paid_on" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The timestamp indicating the date \\& time the order's invoice got paid.\n",
            "example" : null
          },
          "shipping_cut_off_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time after which an order becomes unservicable\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which the order was created\n",
            "example" : null
          },
          "status_update_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which the order status was last updated.\n",
            "example" : null
          },
          "delivered_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which the order was delivered\n",
            "example" : null
          },
          "shipped_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which the order was shipped.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The order's last modified time.\n",
            "example" : null
          },
          "cancelled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which the order was cancelled.\n",
            "example" : null
          },
          "resent_status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Resent status of the order.\n\\* fully_resent -\n\nOrder is Fully resent\n\\* partially_resent -\n\nOrder is Partially resent\n",
            "enum" : [ "fully_resent", "partially_resent" ],
            "example" : null
          },
          "is_resent" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Show if the order is resent order or not.\n",
            "example" : null
          },
          "original_order_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Refers to the original order id of the resent order.\n",
            "maxLength" : 40,
            "example" : null
          },
          "discount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total discount given for the order.\n",
            "minimum" : 0,
            "example" : null
          },
          "sub_total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The order's sub-total\n",
            "minimum" : 0,
            "example" : null
          },
          "total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total amount charged for the order.\n",
            "minimum" : 0,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates that this resource has been deleted.\n",
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) for the invoice\n",
            "maxLength" : 3,
            "example" : null
          },
          "is_gifted" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Boolean indicating whether this order is gifted or not.\n",
            "example" : null
          },
          "gift_note" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gift message added by the gifter during purchase\n",
            "maxLength" : 500,
            "example" : null
          },
          "gift_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gift_id if the order is a gift order\n",
            "maxLength" : 50,
            "example" : null
          },
          "resend_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reason code for resending the order. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Orders \\> Order Resend**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive\n",
            "maxLength" : 100,
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the\n[business entity](/docs/api/advanced-features)\nof this subscription. This is always the same as the\n[business entity](/docs/api/subscriptions/subscription-object#customer_id)\nof the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "order_line_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of line items for this order.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier for the order line item.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "invoice_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The invoice of the line item.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "invoice_line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The invoice line item id associated with this order line item.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The unit price.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The line item description.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The sub total, of the order line item\n",
                  "minimum" : 0,
                  "example" : null
                },
                "fulfillment_quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The quantity that is going to get fulfilled for this order\n",
                  "minimum" : 0,
                  "example" : null
                },
                "fulfillment_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount that is going to get fulfilled for this order(amount after tax and discount)\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The total tax applied on this line item\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_paid" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The total amount paid on the invoice, on behalf of this delivery\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_adjusted" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The total amount adjusted on the invoice, on behalf of this delivery\n",
                  "minimum" : 0,
                  "example" : null
                },
                "refundable_credits_issued" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The total refundable credits issued on the invoice, on behalf of this delivery\n",
                  "minimum" : 0,
                  "example" : null
                },
                "refundable_credits" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The total amount issued as credits on behalf of this delivery\n",
                  "minimum" : 0,
                  "example" : null
                },
                "is_shippable" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Appliable only if configured to include non shippable charges in orders, specifies if the charge is applicable for shipping\n",
                  "example" : null
                },
                "sku" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The SKU for the delivery.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "default" : "queued",
                  "deprecated" : false,
                  "description" : "The status of this order.\n\\* shipped -\n\nThe order line item has been shipped.\n\\* on_hold -\n\nThe delivery has been moved to \"On hold\" status.\n\\* cancelled -\n\nThe order has been returned after delivery.\n\\* returned -\n\nThe order has been returned after delivery.\n\\* partially_delivered -\n\nThe order has been partially delivered to the customer.\n\\* delivered -\n\nThe order line item has been delivered.\n\\* queued -\n\nNot processed for shipping yet.\n\\* awaiting_shipment -\n\nMoved to shipping platform.\n",
                  "enum" : [ "queued", "awaiting_shipment", "on_hold", "delivered", "shipped", "partially_delivered", "returned", "cancelled" ],
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the modelled entity ([plan](/docs/api/v2/pcv-1/plans/plan-object)\n/ [addon](/docs/api/v2/pcv-1/addons/addon-object)\netc) this line item is based on\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n",
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "item_level_discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Item level discount amount\n",
                  "minimum" : 0,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The discount given on the order line item.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the modelled entity this lineitem is based on. Will be null for 'adhoc' entity type\n",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "entity_type", "id", "invoice_id", "invoice_line_item_id", "is_shippable" ],
              "example" : null
            },
            "example" : null
          },
          "shipping_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Shipping address for the order.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The state/province name.\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "billing_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Billing address for the order.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "State or Province\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "line_item_taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applied on the order line items.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique reference id of the line item for which the tax is applicable\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "tax_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The rate of tax used to calculate tax amount\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period end of the tax rate for the line item.\n",
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period start of the tax rate for the line item.\n",
                  "example" : null
                },
                "prorated_taxable_amount" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "description" : "Indicates the prorated line item amount in cents.\n",
                  "maximum" : 1000000000,
                  "minimum" : -1000000000,
                  "example" : null
                },
                "is_partial_tax_applied" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                  "example" : null
                },
                "is_non_compliance_tax" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                  "example" : null
                },
                "taxable_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The tax amount\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_juris_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The type of tax jurisdiction\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* state -\n\nThe tax jurisdiction is a state\n\\* county -\n\nThe tax jurisdiction is a county\n\\* country -\n\nThe tax jurisdiction is a country\n\\* city -\n\nThe tax jurisdiction is a city\n\\* special -\n\nSpecial tax jurisdiction.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* other -\n\nJurisdictions other than the ones listed above.\n",
                  "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                  "example" : null
                },
                "tax_juris_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax jurisdiction\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_juris_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The tax jurisdiction code\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_amount_in_local_currency" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "local_currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                  "maxLength" : 3,
                  "example" : null
                }
              },
              "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of discounts applied for the order\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique reference id of the line item for which the discount is applicable.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Type of this discount line item</p>\n* prorated_credits - <p class=\"mb-2\">Represents the credit adjustment items in invoice. The &#x27;coupon_id&#x27; attribute will be null in this case</p>\n* document_level_coupon - <p class=\"mb-2\">Represents the &#x27;Document&#x27; level coupons applied to this document. Further the &#x27;coupon_id&#x27; attribute specifies the <a href=\"/docs/api/coupons/coupon-object\" target=\"_blank\">coupon</a>\nid this discount is based on</p>\n* custom_discount - <p class=\"mb-2\">Represents the discount applied on an resent order against the orginal order.</p>\n* promotional_credits - <p class=\"mb-2\">Represents the Promotional Credits item in invoice. The &#x27;coupon_id&#x27; attribute will be null in this case</p>\n* item_level_coupon - <p class=\"mb-2\">Represents the &#x27;Item&#x27; level coupons applied to this invoice. Further the &#x27;coupon_id&#x27; attribute specifies the <a href=\"/docs/api/coupons/coupon-object\" target=\"_blank\">coupon</a>\nid this discount is based on</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a discount applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount id is available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a discount applied to a line item of the invoice. The discount id is available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "custom_discount", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/getting-started\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Discount amount.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "discount_amount", "discount_type", "line_item_id" ],
              "example" : null
            },
            "example" : null
          },
          "linked_credit_notes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The credit notes linked to the order\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount issued for this order\n",
                  "minimum" : 0,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The credit note type. [Learn more](/docs/api/credit_notes/credit-note-object)\nabout credit note types.\n\\* store -\n\nStore Credit Note\n\\* refundable -\n\nRefundable Credit Note\n\\* adjustment -\n\nAdjustment Credit Note\n",
                  "enum" : [ "adjustment", "refundable", "store" ],
                  "example" : null
                },
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit-note id.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The credit note status.\n\\* voided -\n\nWhen the Credit Note has been cancelled.\n\\* refunded -\n\nWhen the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded).\n\\* adjusted -\n\nWhen the Credit Note has been adjusted against an invoice.\n\\* refund_due -\n\nWhen the credits are yet to be used, or have been partially used.\n",
                  "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                  "example" : null
                },
                "amount_adjusted" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount adjusted on the order for the linked credit note. Applicable if the linked credit note is of the type 'adjustement'\n",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_refunded" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total refundable credits issued on the order for the linked credit note. Applicable if the linked credit note is of the type 'refundable'\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "id", "status", "type" ],
              "example" : null
            },
            "example" : null
          },
          "resent_orders" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of resent orders applied on the order.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "order_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The order which is linked.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The order resent reason.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Value of the resent order.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "order_id" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "deleted", "id", "is_resent", "price_type" ],
        "example" : null
      },
      "OrderCancelledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderDeliveredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderReadyToProcessEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderReadyToShipEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderResentEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderReturnedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OrderUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "order" : {
                "$ref" : "#/components/schemas/Order"
              }
            },
            "required" : [ "order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "OverridesMetric" : {
        "type" : "object",
        "properties" : {
          "item_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan", "addon", "charge" ],
            "example" : null
          },
          "total_overridden_item_count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "total_overridden_count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "last_updated_at" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          }
        },
        "example" : null
      },
      "PauseOption" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "immediately", "end_of_term", "specific_date", "billing_cycles" ],
        "example" : null
      },
      "PaymentDueReminderEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "customer", "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentFailedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentInitiatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentInitiator" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "customer", "merchant" ],
        "example" : null
      },
      "PaymentIntent" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> is created to help you navigate the 3DS flow of collecting payment from your customer. It is necessary only for implementing 3DS flow using Chargebee.js.</p><h4>Auto-expiry</h4><p class=\"mb-2\">All <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code>s with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">inited</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorized</code> become <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expired</code> after an <strong class=\"font-semibold\">hour</strong> automatically.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier for PaymentIntent.\n",
            "maxLength" : 150,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current status of PaymentIntent.\n\\* in_progress -\n\nStatus will be in_progress if the Active Payment Attempt state is in requires_identification, requires_challenge or requires_redirection.\n\\* inited -\n\nIntent is initialized.\n\\* authorized -\n\n3DS verification successfully completed.\n\\* consumed -\n\nIf any Chargebee operation such as create subscription etc. is completed using the intent, it will be in consumed state. Intent cannot be used if it's already in consumed state.\n\\* expired -\n\nIntent has expired, since it was not consumed before the predefined time-out.\n",
            "enum" : [ "inited", "in_progress", "authorized", "consumed", "expired" ],
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) of the amount used in transaction.\n",
            "maxLength" : 3,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Amount(in cents) to be authorized for 3DS flow.\n",
            "minimum" : 0,
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account used for performing the 3DS flow.\n",
            "maxLength" : 50,
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the PaymentIntent will expire if left unconsumed.\n",
            "example" : null
          },
          "reference_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reference for payment method at gateway. Only applicable when the PaymentIntent is created for cards stored in the gateway.\n",
            "maxLength" : 200,
            "example" : null
          },
          "payment_method_type" : {
            "type" : "string",
            "default" : "card",
            "deprecated" : false,
            "description" : "The payment method of this intent\n\\* apple_pay -\n\napple_pay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* venmo -\n\nVenmo\n\\* after_pay -\n\nPayments made via Afterpay\n\\* giropay -\n\ngiropay\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* pix -\n\nPix\n\\* amazon_payments -\n\namazon_payments\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* card -\n\ncard\n\\* go_pay -\n\nPayments made via GoPay\n\\* google_pay -\n\ngoogle_pay\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* ideal -\n\nideal\n\\* dotpay -\n\ndotpay\n\\* sofort -\n\nsofort\n\\* faster_payments -\n\nFaster Payments\n\\* swish -\n\nPayments made via Swish\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* bancontact -\n\nbancontact\n\\* trustly -\n\nTrustly\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* boleto -\n\nboleto\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* pay_by_bank -\n\nPay By Bank\n\\* payme -\n\nPayments made via PayMe\n\\* pay_co -\n\nPayments made via PayCo\n\\* pay_to -\n\nPayTo\n\\* alipay -\n\nPayments made via Alipay.\n\\* sepa_instant_transfer -\n\nSEPA Instant Transfer\n\\* direct_debit -\n\ndirect_debit\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* upi -\n\nupi\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* twint -\n\nPayments made via Twint\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n",
            "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
            "example" : null
          },
          "success_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The URL the customer will be directed to once 3DS verification is successful. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ideal</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sofort</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">dotpay</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">giropay</code>\n.</p>",
            "maxLength" : 250,
            "example" : null
          },
          "failure_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The URL the customer will be directed to when 3DS verification fails. Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_method_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ideal</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sofort</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">dotpay</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">giropay</code>\n.</p>",
            "maxLength" : 250,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the PaymentIntent was created.\n",
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the PaymentIntent was last modified.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this payment intent was last updated.\n",
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique identifier of the customer for whom the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> will be created. If specified, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> will be used exclusively for that customer. If not specified, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code> won&#x27;t be associated with any customer and will be available for any customer.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also</strong></p><a href=\"/docs/api/payment_intents\">Customer resource lookup and creation</a></div>",
            "maxLength" : 50,
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Gateway associated with the PaymentIntent.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/advanced-features\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_intent</code></p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "active_payment_attempt" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Active payment attempt for the PaymentIntent.\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Identifier for PaymentIntent's active payment attempt.\n",
                "maxLength" : 70,
                "example" : null
              },
              "status" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Current status of active payment attempt\n\\* requires_challenge -\n\nThe transaction has to go through 3DS Challenge flow and the customer needs to authenticate via 3DS 2.0\n\\* inited -\n\nPayment attempt is initialized.\n\\* requires_identification -\n\nCustomer's device fingerprint is used to verify their identity. It needs to be sent to the Issuing Bank for verification.\n\\* refused -\n\n3DS verification attempt failed.\n\\* authorized -\n\n3DS verification successfully completed.\n\\* pending_authorization -\n\nWaiting for the authorization.\n\\* requires_redirection -\n\nThe transaction has to go through 3DS Redirection flow and the customer needs to authenticate via 3DS 1.0\n",
                "enum" : [ "inited", "requires_identification", "requires_challenge", "requires_redirection", "authorized", "refused", "pending_authorization" ],
                "example" : null
              },
              "payment_method_type" : {
                "type" : "string",
                "default" : "card",
                "deprecated" : false,
                "description" : "The payment method of this attempt\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* venmo -\n\nVenmo\n\\* sofort -\n\nsofort\n\\* alipay -\n\nPayments made via Alipay.\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* giropay -\n\ngiropay\n\\* bancontact -\n\nbancontact\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* go_pay -\n\nPayments made via GoPay\n\\* card -\n\ncard\n\\* faster_payments -\n\nFaster Payments\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* ideal -\n\nideal\n\\* sepa_instant_transfer -\n\nSEPA Instant Transfer\n\\* pay_by_bank -\n\nPay By Bank\n\\* swish -\n\nPayments made via Swish\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* boleto -\n\nboleto\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* trustly -\n\nTrustly\n\\* payme -\n\nPayments made via PayMe\n\\* upi -\n\nupi\n\\* amazon_payments -\n\namazon_payments\n\\* direct_debit -\n\ndirect_debit\n\\* after_pay -\n\nPayments made via Afterpay\n\\* dotpay -\n\ndotpay\n\\* apple_pay -\n\napple_pay\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* google_pay -\n\ngoogle_pay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* pay_co -\n\nPayments made via PayCo\n\\* twint -\n\nPayments made via Twint\n\\* pay_to -\n\nPayTo\n\\* pix -\n\nPix\n",
                "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                "example" : null
              },
              "id_at_gateway" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Reference of PaymentIntent at gateway\n",
                "maxLength" : 50,
                "example" : null
              },
              "error_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Error code received from the payment gateway when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_attempt</code>\nfails.</p>",
                "maxLength" : 100,
                "example" : null
              },
              "error_text" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Error message received from the payment gateway on failure.\n",
                "maxLength" : 65000,
                "example" : null
              },
              "checkout_details" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "JSON-encoded object that includes customer and browser details collected during checkout.\n",
                "maxLength" : 65000,
                "example" : null
              },
              "created_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "Timestamp indicating when the active payment attempt was created.\n",
                "example" : null
              },
              "modified_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "Timestamp indicating when the active payment attempt was last modified.\n",
                "example" : null
              },
              "error_detail" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "Comprehensive information regarding the error experienced during an unsuccessful or declined transaction. Learn more about \\[gateway error references\\](/docs/api/v2/pcv-1/gateway_error_references)\n",
                "properties" : {
                  "request_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This is a unique identifier assigned by the payment gateway. It is used to track the request at the payment gateway\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "error_category" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This parameter categorizes the type of error that occurred for the request. It helps in understanding whether the error is due to API error, validation, processing, network issues, and more\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "error_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A gateway-specific code that corresponds to the particular error encountered for the request. This code can be used for identifying the error in a standardized manner across the gateway's services\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "error_message" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A message provided by the gateway that describes the nature of the error encountered\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "decline_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "When a transaction is declined, this code is provided by the gateway to specify the reason for the decline\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "decline_message" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This message gives a descriptive explanation of the reason for the transaction's decline\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "network_error_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This code represents errors that originate from the payment network (such as Visa, MasterCard, and more). It is different from the gateway error code and is specific to the network's error-handling system\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "network_error_message" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This the network related error message from the gateway, this is a detailed message provided by the payment network explaining the nature of the network error encountered\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "error_field" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This parameter indicates which specific data field or attribute in the request caused the error\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "recommendation_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "After an error has occurred, the gateway or payment network may provide a recommendation code. This code suggests a course of action or remedy that you can follow to resolve the issue\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "recommendation_message" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This message is intended to provide guidance or suggestions on action or remedy that you can follow to resolve the issue\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "processor_error_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This code is provided by the payment processor (the entity that handles the transaction between the bank accounts and the payment networks) and indicates errors that occur at this stage of the payment process\n",
                    "maxLength" : 100,
                    "example" : null
                  },
                  "processor_error_message" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "This message describes the specific error that the payment processor encountered\n",
                    "maxLength" : 65000,
                    "example" : null
                  },
                  "error_cause_id" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "A [Chargebee-defined code](/docs/api/errors)\nthat corresponds to the specific error encountered during the request. This code helps in identifying and standardizing the error across different gateway services for consistent error handling.\n",
                    "maxLength" : 150,
                    "example" : null
                  },
                  "processor_advice_code" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "Advice code returned by the payment gateway or processor that provides guidance on how to handle a declined transaction, for example, whether to retry or take a different action.\n",
                    "maxLength" : 100,
                    "example" : null
                  }
                },
                "example" : null
              }
            },
            "required" : [ "created_at", "modified_at", "status" ],
            "example" : null
          },
          "payment_attempts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">List of payment attempts associated with this PaymentIntent. Each item in the list is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_attempt</code>\nobject, identical in structure to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active_payment_attempt</code>\n.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Identifier for the payment attempt.\n",
                  "maxLength" : 70,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Current status of the payment attempt.</p>\n* requires_challenge - <p class=\"mb-2\">The transaction requires the 3DS Challenge flow, where the customer completes authentication through an inline 3DS 2.0 challenge presented by their card issuer.</p>\n* requires_identification - <p class=\"mb-2\">Customer&#x27;s device fingerprint is used to verify their identity. It needs to be sent to the Issuing Bank for verification.</p>\n* requires_redirection - <p class=\"mb-2\">The transaction must go through the 3DS Redirection flow, where the customer is redirected to their card issuer&#x27;s authentication page (3DS 1.0) to verify the payment. After authentication, the customer is redirected to the specified <code><a href=\"/docs/api/payment_intents/payment_intent-object#success_url\">success_url</a></code>\nor <code><a href=\"/docs/api/payment_intents/payment_intent-object#failure_url\">failure_url</a></code>\n.</p>\n* inited - <p class=\"mb-2\">Payment attempt is initialized.</p>\n* authorized - <p class=\"mb-2\">3DS verification successfully completed.</p>\n* pending_authorization - <p class=\"mb-2\">Waiting for the authorization.</p>\n* refused - <p class=\"mb-2\">3DS verification attempt failed.</p>",
                  "enum" : [ "inited", "requires_identification", "requires_challenge", "requires_redirection", "authorized", "refused", "pending_authorization" ],
                  "example" : null
                },
                "payment_method_type" : {
                  "type" : "string",
                  "default" : "card",
                  "deprecated" : false,
                  "description" : "The payment method of this attempt.\n\\* swish -\n\nPayments made via Swish\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* alipay -\n\nPayments made via Alipay.\n\\* sofort -\n\nsofort\n\\* giropay -\n\ngiropay\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* boleto -\n\nboleto\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* pix -\n\nPix\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* faster_payments -\n\nFaster Payments\n\\* paypal_express_checkout -\n\npaypal_express_checkout\n\\* go_pay -\n\nPayments made via GoPay\n\\* pay_by_bank -\n\nPay By Bank\n\\* after_pay -\n\nPayments made via Afterpay\n\\* bancontact -\n\nbancontact\n\\* trustly -\n\nTrustly\n\\* wechat_pay -\n\nPayments made via WeChat Pay.\n\\* twint -\n\nPayments made via Twint\n\\* upi -\n\nupi\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* direct_debit -\n\ndirect_debit\n\\* netbanking_emandates -\n\nnetbanking_emandates\n\\* amazon_payments -\n\namazon_payments\n\\* sepa_instant_transfer -\n\nSEPA Instant Transfer\n\\* klarna_pay_now -\n\nKlarna Pay Now\n\\* dotpay -\n\ndotpay\n\\* google_pay -\n\ngoogle_pay\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* payme -\n\nPayments made via PayMe\n\\* card -\n\ncard\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* ideal -\n\nideal\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* pay_co -\n\nPayments made via PayCo\n\\* venmo -\n\nVenmo\n\\* apple_pay -\n\napple_pay\n\\* pay_to -\n\nPayTo\n",
                  "enum" : [ "card", "ideal", "sofort", "bancontact", "google_pay", "dotpay", "giropay", "apple_pay", "upi", "netbanking_emandates", "paypal_express_checkout", "direct_debit", "boleto", "venmo", "amazon_payments", "pay_to", "faster_payments", "sepa_instant_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "wechat_pay", "alipay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
                  "example" : null
                },
                "id_at_gateway" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Reference of the payment attempt at the gateway.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "error_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Error code received from the payment gateway on failure.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "error_text" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Error message received from the payment gateway on failure.\n",
                  "maxLength" : 65000,
                  "example" : null
                },
                "checkout_details" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "JSON-encoded object that includes customer and browser details collected during checkout.\n",
                  "maxLength" : 65000,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when the payment attempt was created.\n",
                  "example" : null
                },
                "modified_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when the payment attempt was last modified.\n",
                  "example" : null
                },
                "error_detail" : {
                  "type" : "object",
                  "deprecated" : false,
                  "description" : "Comprehensive information regarding the error experienced during an unsuccessful or declined transaction. Learn more about \\[gateway error references\\](/docs/api/v2/pcv-1/gateway_error_references)\n",
                  "properties" : {
                    "request_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This is a unique identifier assigned by the payment gateway. It is used to track the request at the payment gateway\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "error_category" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This parameter categorizes the type of error that occurred for the request. It helps in understanding whether the error is due to API error, validation, processing, network issues, and more\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "error_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "A gateway-specific code that corresponds to the particular error encountered for the request. This code can be used for identifying the error in a standardized manner across the gateway's services\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "error_message" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "A message provided by the gateway that describes the nature of the error encountered\n",
                      "maxLength" : 65000,
                      "example" : null
                    },
                    "decline_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Code provided by the gateway that specifies the reason for the transaction decline.\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "decline_message" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Descriptive message explaining the reason for the transaction's decline.\n",
                      "maxLength" : 65000,
                      "example" : null
                    },
                    "network_error_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This code represents errors that originate from the payment network (such as Visa, MasterCard, and more). It is different from the gateway error code and is specific to the network's error-handling system\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "network_error_message" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This is the network-related error message from the gateway; a detailed message provided by the payment network explaining the nature of the network error encountered\n",
                      "maxLength" : 65000,
                      "example" : null
                    },
                    "error_field" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This parameter indicates which specific data field or attribute in the request caused the error\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "recommendation_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "After an error has occurred, the gateway or payment network may provide a recommendation code. This code suggests a course of action or remedy that you can follow to resolve the issue\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "recommendation_message" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This message is intended to provide guidance or suggestions on action or remedy that you can follow to resolve the issue\n",
                      "maxLength" : 65000,
                      "example" : null
                    },
                    "processor_error_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This code is provided by the payment processor (the entity that handles the transaction between the bank accounts and the payment networks) and indicates errors that occur at this stage of the payment process\n",
                      "maxLength" : 100,
                      "example" : null
                    },
                    "processor_error_message" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "This message describes the specific error that the payment processor encountered\n",
                      "maxLength" : 65000,
                      "example" : null
                    },
                    "error_cause_id" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "A [Chargebee-defined code](/docs/api/errors)\nthat corresponds to the specific error encountered during the request. This code helps in identifying and standardizing the error across different gateway services for consistent error handling.\n",
                      "maxLength" : 150,
                      "example" : null
                    },
                    "processor_advice_code" : {
                      "type" : "string",
                      "deprecated" : false,
                      "description" : "Advice code returned by the payment gateway or processor that provides guidance on how to handle a declined transaction, for example, whether to retry or take a different action.\n",
                      "maxLength" : 100,
                      "example" : null
                    }
                  },
                  "example" : null
                }
              },
              "required" : [ "created_at", "modified_at", "status" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "amount", "created_at", "customer_id", "expires_at", "id", "modified_at", "status" ],
        "example" : null
      },
      "PaymentIntentCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_intent" : {
                "$ref" : "#/components/schemas/PaymentIntent"
              }
            },
            "required" : [ "payment_intent" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentIntentUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_intent" : {
                "$ref" : "#/components/schemas/PaymentIntent"
              }
            },
            "required" : [ "payment_intent" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentMethod" : {
        "type" : "string",
        "default" : "card",
        "deprecated" : false,
        "enum" : [ "cash", "check", "bank_transfer", "other", "custom", "chargeback", "card", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
        "example" : null
      },
      "PaymentMethodSavePolicy" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "always", "ask", "never" ],
        "example" : null
      },
      "PaymentMethodType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
        "example" : null
      },
      "PaymentReferenceNumber" : {
        "type" : "object",
        "description" : "Using this resource you can create reference numbers for Payment Instructions at the invoice level, allowing for multiple payment information and payment reference numbers to be associated with a single invoice. However, only one PRN is generated for each payment method.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reference_number</code>\nresource is a unique identifier assigned to the PRN to track and reference in systems.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This attribute helps <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nfield in the API, specifies how to reconcile offline payments, and generate <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reference_number</code>\non invoices based on country-specific rules. Setting the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nfield generates <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reference_number</code>\nfor the respective country and includes them on the invoice for correct reconciliation.</p>\n* frn - <p class=\"mb-2\">The reference number printed on invoices in Finland is utilized by buyers for payment via bank transfer, facilitating the association of payments with invoices.</p>\n* fik - <p class=\"mb-2\">Denmark based number calculated using recursive MOD 10 algorithm.</p>\n* kid - <p class=\"mb-2\">The KID number (kundeidentifikasjon) in Norway is an abbreviation for &quot;Customer identification&quot;. It is used to associate payments with the customer and invoice.</p>\n* ocr - <p class=\"mb-2\">A OCR-based payment, contains an OCR reference, which is used to identify the vendor and the purchase document in connection with a payment. Swedish reference number can contain customer ID and/or invoice number to identify customer and invoice.</p>",
            "enum" : [ "kid", "ocr", "frn", "fik", "swiss_reference" ],
            "example" : null
          },
          "number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A number is generated based on the configuration type of the PRN during the invoice creation process.\n",
            "maxLength" : 100,
            "example" : null
          },
          "invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_id</code>\nof the payment reference number (PRN) resource is the unique identifier assigned to the invoice that the PRN is associated with.</p>",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "id", "number", "type" ],
        "example" : null
      },
      "PaymentRefundedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "credit_note", "customer", "invoice", "subscription", "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSchedule" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-payment-schedules\"></span><p class=\"mb-2\">Payment schedules for an invoice refer to a payment structure where the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code>\non an invoice is divided into smaller, more manageable parts, each of which is paid over a specified period.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "An auto-generated unique identifier for the payment schedule.\n",
            "maxLength" : 40,
            "example" : null
          },
          "scheme_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule_scheme</code>\n, used to create the payment schedules.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the types of entity this payment schedule is based on.\n\\* invoice -\n\nIndicates the invoice entity type\n",
            "enum" : [ "invoice" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the entity this payment schedule is based on.\n",
            "maxLength" : 50,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The part of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>\nto be distributed across the payment schedules. If not specified, the entire <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.amount_due</code>\nis considered by default.</p>",
            "minimum" : 0,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The timestamp at which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule</code>\nwas created.</p>",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Specifies when these payment schedules are updated recently.\n",
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) of the transaction amount.\n",
            "maxLength" : 3,
            "example" : null
          },
          "schedule_entries" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of schedule entries\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An auto-generated unique identifier for the payment schedules.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Date at which this payment schedule is scheduled.\n",
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Maximum amount that this payment schedule is allowed to collect.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Defines the status for each payment schedule.</p>\n* posted - <p class=\"mb-2\">The installment is unpaid or partially paid and the due date (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date</code>) has not passed.</p>\n* payment_due - <p class=\"mb-2\">The installment is unpaid or partially paid and the due date (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date</code>) has passed.</p>\n* paid - <p class=\"mb-2\">The installment has been paid.</p>",
                  "enum" : [ "posted", "payment_due", "paid" ],
                  "example" : null
                }
              },
              "required" : [ "amount", "date", "id", "status" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "entity_id", "entity_type", "id", "scheme_id" ],
        "example" : null
      },
      "PaymentScheduleEstimate" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "scheme_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "invoice" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "minimum" : 0,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 3,
            "example" : null
          },
          "schedule_entries" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 40,
                  "example" : null
                },
                "date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "minimum" : 0,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "posted", "payment_due", "paid" ],
                  "example" : null
                }
              },
              "required" : [ "amount", "date", "id", "status" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "amount", "entity_type", "id", "scheme_id" ],
        "example" : null
      },
      "PaymentScheduleScheme" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-payment-schedules\"></span><p class=\"mb-2\">Payment schedules for an invoice refer to a payment structure where the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_due</code>\non an invoice is divided into smaller, more manageable parts, each of which is paid over a specified period. Payment schedule scheme is a configuration or set of rules for creating payment schedules. After creating a payment schedule scheme, you can use it to generate payment schedules for multiple invoices.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "An auto-generated unique identifier for the payment schedule scheme.\n",
            "maxLength" : 40,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The name of a payment schedule scheme.\n",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A brief description for this payment schedule scheme.\n",
            "maxLength" : 200,
            "example" : null
          },
          "number_of_schedules" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the total number of payment schedules for the invoice. The maximum <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">number_of_schedules</code>\nvaries based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n: -   <strong class=\"font-semibold\">Day</strong>: Up to 30 schedules</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Week</strong>: Up to 52 schedules</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Month</strong>: Up to 12 schedules</li>\n</ul>",
            "maximum" : 52,
            "minimum" : 1,
            "example" : null
          },
          "period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Defines the time unit for intervals between payment schedules. Possible values are: day, week, and month.\n\\* month -\n\nWhen the time unit for intervals between payment schedules is set as month\n\\* week -\n\nWhen the time unit for intervals between payment schedules is set as week\n\\* day -\n\nWhen the time unit for intervals between payment schedules is set as day\n",
            "enum" : [ "day", "week", "month" ],
            "example" : null
          },
          "period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The time period between the effective dates of two consecutive payment schedules, expressed in period_units. Use this parameter to have fixed intervals between payment schedules. The maximum <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nvaries based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n: -   <strong class=\"font-semibold\">Day</strong>: Up to 30 days</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Week</strong>: Up to 6 weeks</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Month</strong>: Up to 6 months</li>\n</ul>",
            "maximum" : 30,
            "minimum" : 1,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The timestamp at which the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_schedule_scheme</code>\nwas created.</p>",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Defines the timestamp when the config was last updated\n",
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "number_of_schedules", "period_unit" ],
        "example" : null
      },
      "PaymentScheduleSchemeCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_schedule_scheme" : {
                "$ref" : "#/components/schemas/PaymentScheduleScheme"
              },
              "flexible_schedules" : {
                "type" : "object",
                "description" : "JSON object\n",
                "example" : null
              }
            },
            "required" : [ "flexible_schedules", "payment_schedule_scheme" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentScheduleSchemeDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_schedule_scheme" : {
                "$ref" : "#/components/schemas/PaymentScheduleScheme"
              },
              "flexible_schedules" : {
                "type" : "object",
                "description" : "JSON object\n",
                "example" : null
              }
            },
            "required" : [ "flexible_schedules", "payment_schedule_scheme" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSchedulesCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_schedule" : {
                "$ref" : "#/components/schemas/PaymentSchedule"
              }
            },
            "required" : [ "payment_schedule" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSchedulesUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_schedule" : {
                "$ref" : "#/components/schemas/PaymentSchedule"
              }
            },
            "required" : [ "payment_schedule" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSource" : {
        "type" : "object",
        "description" : "**Updates**\n\nThis API obsoletes the [Cards API](/docs/api/cards)\nin Chargebee.\n\nRepresents the payment source for the customer. Specific types of payment source (Card, Direct Debit, Paypal Express Checkout, etc.) is defined as sub-resource in the response object. You can find the list of supported payment sources and the expected input parameters [here](/docs/api/payment_parameters). See [Payment source attributes](/docs/api/payment_sources/payment-source-object) for a descriptive list of attributes and payment source types.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the payment source\n",
            "maxLength" : 40,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this payment source resource was last updated.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this payment source resource is created.\n",
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the customer with whom this payment source is associated.\n",
            "maxLength" : 50,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of payment source\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* giropay -\n\nPayments made via giropay.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* pay_by_bank -\n\nPay By Bank\n\\* online_banking_poland -\n\nPayments made via Online Banking Poland\n\\* after_pay -\n\nPayments made via Afterpay\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* twint -\n\nPayments made via Twint\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* trustly -\n\nTrustly\n\\* upi -\n\nUPI Payments.\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* pay_to -\n\nPayments made via PayTo\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* sofort -\n\nPayments made via Sofort.\n\\* pix -\n\nPayments made via Pix\n\\* pay_co -\n\nPayments made via PayCo\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* go_pay -\n\nPayments made via GoPay\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* payme -\n\nPayments made via PayMe\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* swish -\n\nPayments made via Swish\n\\* venmo -\n\nPayments made via Venmo\n\\* ideal -\n\nPayments made via iDEAL.\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n",
            "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
            "example" : null
          },
          "reference_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The reference id. In the case of Amazon and PayPal this will be the 'billing agreement id'. For GoCardless direct debit this will be 'mandate id'. In the case of card payments this will be the identifier provided by the gateway/card vault for the specific payment method resource.\n**Note:**\nThis is not the one time temporary token provided by gateways like Stripe.\n",
            "maxLength" : 200,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "valid",
            "deprecated" : false,
            "description" : "Current status of the payment source.\n\\* valid -\n\nA payment source that is valid and active.\n\\* expiring -\n\nA payment source that is expiring (like card's status based on its expiry date).\n\\* invalid -\n\nThe billing agreement cannot be used. It might become valid again either automatically or due to customer action.\n\\* pending_verification -\n\nThe payment source needs to be verified\n\\* expired -\n\nA payment source that has expired\n",
            "enum" : [ "valid", "expiring", "expired", "invalid", "pending_verification" ],
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the gateway this payment source is stored with.\n\\* bluesnap -\n\nBlueSnap is a payment gateway.\n\\* jp_morgan -\n\nJ.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different [payment_source_type](/docs/api/payment_sources/payment_source-object#type).  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/jp-morgan-bacs&ref=feature) to enable the J.P. Morgan Mobility Payment Solutions gateway via payFURL for your test and live sites.\n\\* tco -\n\n2Checkout is a payment gateway.\n\\* razorpay -\n\nRazorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n\\* dlocal -\n\nDlocal provides payment solutions for global commerce by accepting local payment methods.\n\\* checkout_com -\n\nCheckout.com is a payment gateway.\n\\* adyen -\n\nAdyen is a payment gateway.\n\\* braintree -\n\nBraintree is a payment gateway.\n\\* paystack -\n\nPaystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/paystack&ref=feature) to enable Paystack for your test and live sites.\n\\* pay_com -\n\nPay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.\n\\* moneris_us -\n\nMoneris USA is a payment gateway.\n\\* pin -\n\nPin is a payment gateway\n\\* moneris -\n\nMoneris is a payment gateway.\n\\* chargebee -\n\nChargebee test gateway.\n\\* cybersource -\n\nCyberSource is a payment gateway.\n\\* ecentric -\n\nEcentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n\\* first_data_global -\n\nFirst Data Global Gateway Virtual Terminal Account\n\\* exact -\n\nExact Payments is a payment gateway.\n\\* nuvei -\n\nNuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/nuvei&ref=feature) to enable Nuvei for your test and live sites.\n\\* eway -\n\neWAY Account is a payment gateway.\n\\* amazon_payments -\n\nAmazon Payments is a payment service provider.\n\\* sage_pay -\n\nSage Pay is a payment gateway.\n\\* elavon -\n\nElavon Virtual Merchant is a payment solution.\n\\* orbital -\n\nChase Paymentech(Orbital) is a payment gateway.\n\\* beanstream -\n\nBambora(formerly known as Beanstream) is a payment gateway.\n\\* hdfc -\n\nHDFC Account is a payment gateway.\n\\* bank_of_america -\n\nBank of America Gateway\n\\* gocardless -\n\nGoCardless is a payment service provider.\n\\* paymill -\n\nPAYMILL is a payment gateway.\n\\* balanced_payments -\n\nBalanced is a payment gateway\n\\* twikey -\n\nTwikey is a payment service provider that specializes in processing direct debit payments across the EU.\n\\* deutsche_bank -\n\nDeutsche Bank is the leading German bank with strong European roots and a global network.  \nThis feature is a **Private Beta Release**.\n\\* bluepay -\n\nBluePay is a payment gateway.\n\\* paypal_express_checkout -\n\nPayPal Express Checkout is a payment gateway.\n\\* paypal_payflow_pro -\n\nPayPal Payflow Pro is a payment gateway.\n\\* global_payments -\n\nGlobal Payments is a payment service provider.\n\\* not_applicable -\n\nIndicates that payment gateway is not applicable for this resource.\n\\* nmi -\n\nNMI is a payment gateway.\n\\* worldpay -\n\nWorldPay is a payment gateway\n\\* authorize_net -\n\nAuthorize.net is a payment gateway\n\\* stripe -\n\nStripe is a payment gateway.\n\\* metrics_global -\n\nMetrics global is a leading payment service provider providing unified payment services in the US.\n\\* windcave -\n\nWindcave provides an end to end payment processing solution in ANZ and other leading global markets.\n\\* quickbooks -\n\nIntuit QuickBooks Payments gateway\n\\* wepay -\n\nWePay is a payment gateway.\n\\* ezidebit -\n\nEzidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.  \nThis feature is a **Private Beta Release**.\n\\* wirecard -\n\nWireCard Account is a payment service provider.\n\\* chargebee_payments -\n\nChargebee Payments gateway\n\\* paypal_pro -\n\nPayPal Pro Account is a payment gateway.\n\\* paypal -\n\nPayPal Commerce is a payment gateway.\n\\* ingenico_direct -\n\nWorldline Online Payments is a payment gateway.\n\\* ogone -\n\nIngenico ePayments (formerly known as Ogone) is a payment gateway.\n\\* migs -\n\nMasterCard Internet Gateway Service payment gateway.\n\\* vantiv -\n\nVantiv is a payment gateway.\n\\* eway_rapid -\n\neWAY Rapid is a payment gateway.\n\\* mollie -\n\nMollie is a payment gateway.\n\\* solidgate -\n\nSolidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release**.\n\\* ebanx -\n\nEBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.\n",
            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account to which this payment source is stored with.\n",
            "maxLength" : 50,
            "example" : null
          },
          "ip_address" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The IP address of the customer. Used primarily for referral integration and EU VAT validation.\n",
            "maxLength" : 50,
            "example" : null
          },
          "issuing_country" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "[two-letter(alpha2)](https://www.iso.org/iso-3166-country-codes.html)\nISO country code.\n",
            "maxLength" : 50,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates that this resource has been deleted.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/advanced-features\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_source</code>.\nThis is always the same as the business entity of the <a href=\"/docs/api/payment_sources/payment_source-object#customer_id\">customer</a>.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "card" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Card details associated with this payment source.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Cardholder's first name\n",
                "maxLength" : 50,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Cardholder's last name\n",
                "maxLength" : 50,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "maxLength" : 70,
                "example" : null
              },
              "iin" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The Issuer Identification Number, i.e. the first six digits of the card number\n",
                "maxLength" : 6,
                "minLength" : 6,
                "example" : null
              },
              "last4" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Last four digits of the card number\n",
                "maxLength" : 4,
                "minLength" : 4,
                "example" : null
              },
              "brand" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Card brand\n\\* cartes_bancaires -\n\nA Cartes Bancaires card.\n\\* not_applicable -\n\nUsed for offline entries in transactions. Not applicable for cards\n\\* maestro -\n\nA Maestro card.\n\\* dankort -\n\nA Dankort card.\n\\* tarjeta_naranja -\n\nA Tarjeta Naranja card.\n\\* jcb -\n\nA JCB card.\n\\* other -\n\nCard belonging to types other than those listed above.\n\\* trustly -\n\nTrustly\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* cmr_falabella -\n\nA CMR Falabella card.\n\\* discover -\n\nA Discover card.\n\\* elo -\n\nA Elo card.\n\\* diners_club -\n\nA Diner's Club card.\n\\* mada -\n\nA Mada card.\n\\* cabal -\n\nA Cabal card.\n\\* american_express -\n\nAn American Express card.\n\\* visa -\n\nA Visa card.\n\\* cencosud -\n\nA Cencosud card.\n\\* carnet -\n\nA Carnet card.\n\\* argencard -\n\nAn Argencard.\n\\* mastercard -\n\nA MasterCard.\n\\* pay_by_bank -\n\nPay By Bank\n\\* hipercard -\n\nAn Hipercard.\n\\* bancontact -\n\nA Bancontact card.\n\\* rupay -\n\nA Rupay card.\n\\* nativa -\n\nA Nativa card.\n\\* kbc_payment_button -\n\nKBC Payment Button\n",
                "enum" : [ "visa", "mastercard", "american_express", "discover", "jcb", "diners_club", "other", "bancontact", "cmr_falabella", "tarjeta_naranja", "nativa", "cencosud", "cabal", "argencard", "elo", "hipercard", "carnet", "rupay", "maestro", "dankort", "cartes_bancaires", "mada", "not_applicable" ],
                "example" : null
              },
              "funding_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Card Funding type\n\\* not_known -\n\nAn unknown card.\n\\* debit -\n\nA debit card.\n\\* credit -\n\nA credit card.\n\\* not_applicable -\n\nUsed for ACH. Not applicable for cards\n\\* prepaid -\n\nA prepaid card.\n",
                "enum" : [ "credit", "debit", "prepaid", "not_known", "not_applicable" ],
                "example" : null
              },
              "expiry_month" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "Card expiry month.\n",
                "maximum" : 12,
                "minimum" : 1,
                "example" : null
              },
              "expiry_year" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "Card expiry year.\n",
                "example" : null
              },
              "billing_addr1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1, as available in card billing address.\n",
                "maxLength" : 150,
                "example" : null
              },
              "billing_addr2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2, as available in card billing address.\n",
                "maxLength" : 150,
                "example" : null
              },
              "billing_city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "City, as available in card billing address.\n",
                "maxLength" : 50,
                "example" : null
              },
              "billing_state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "billing_state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The state/province name.\n",
                "maxLength" : 50,
                "example" : null
              },
              "billing_country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "billing_zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Postal or Zip code, as available in card billing address.\n",
                "maxLength" : 20,
                "example" : null
              },
              "masked_number" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Masked credit card number that is safe to show.\n",
                "maxLength" : 19,
                "example" : null
              }
            },
            "required" : [ "brand", "expiry_month", "expiry_year", "funding_type", "iin", "last4" ],
            "example" : null
          },
          "bank_account" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Bank account details the direct debit or ACH or NetBanking agreement/mandate created with this payment source.\n",
            "properties" : {
              "last4" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Last four digits of the bank account number\n",
                "maxLength" : 4,
                "minLength" : 4,
                "example" : null
              },
              "name_on_account" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Account holder's name as per bank account.\n",
                "maxLength" : 300,
                "example" : null
              },
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Account holder's first name as per bank account.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Account holder's last name as per bank account.\n",
                "maxLength" : 150,
                "example" : null
              },
              "direct_debit_scheme" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Bank account's scheme to which the mandate and associated payments are submitted.\n\\* becs_nz -\n\nThe Bulk Electronic Clearing System (BECS) is a Direct Debit scheme and followed in New-Zealand for Direct Debit system.\n\\* becs -\n\nThe Bulk Electronic Clearing System (BECS) is a Direct Debit scheme and followed in Australia for Direct Debit system.\n\\* pad -\n\nPre-Authorized Debit (PAD) is the scheme used for collecting Direct Debit payments from customers in Canada.\n\\* ach -\n\nUS Bank Account\n\\* sepa_core -\n\nSEPA Direct Debit is a Europe-wide Direct Debit system that allows merchants to collect Euro-denominated payments.\n\\* autogiro -\n\nBg Autogiro is a Direct Debit scheme for collecting Krona-denominated payments from a bank account in Sweden.\n\\* bacs -\n\nAutomated payments are at the very centre of the UK's financial system, providing an essential service for both consumers and organisations. Bacs is the company which runs Direct Debit in the UK.\n\\* not_applicable -\n\nnot_applicable\n",
                "enum" : [ "ach", "bacs", "sepa_core", "autogiro", "becs", "becs_nz", "pad", "not_applicable" ],
                "example" : null
              },
              "bank_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Name of account holder's bank.\n",
                "maxLength" : 100,
                "example" : null
              },
              "mandate_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Mandate Id. Applicable for SEPA, BACS, Autogiro, and BECS.\n",
                "maxLength" : 50,
                "minLength" : 1,
                "example" : null
              },
              "account_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Represents the account type used to create a payment source. Available for [Authorize.net](https://www.authorize.net/)\nACH and Razorpay NetBanking users only. If not passed, account type is taken as null.\n\\* checking -\n\nChecking Account\n\\* business_checking -\n\nBusiness Checking Account\n\\* savings -\n\nSavings Account\n\\* current -\n\nCurrent Account\n",
                "enum" : [ "checking", "savings", "business_checking", "current" ],
                "example" : null
              },
              "echeck_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "For Authorize.net ACH users only. Indicates the type of eCheck.\n\\* ppd -\n\nPayment Authorization is prearranged between the customer and the merchant.\n\\* ccd -\n\nPayment Authorization agreement from the corporate customer is required. Applicable for business_checking account_type.\n\\* web -\n\nPayment Authorization obtained from the customer via the internet.\n",
                "enum" : [ "web", "ppd", "ccd" ],
                "example" : null
              },
              "account_holder_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "For Stripe ACH users only. Indicates the account holder type.\n\\* individual -\n\nIndividual Account.\n\\* company -\n\nCompany Account.\n",
                "enum" : [ "individual", "company" ],
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "Account holder's email address. If not passed, details from customer details will be considered. All Direct Debit compliant emails will be sent to this email address.\n",
                "maxLength" : 70,
                "example" : null
              }
            },
            "required" : [ "last4" ],
            "example" : null
          },
          "boleto" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Boleto payment source details of the customer\n",
            "properties" : {
              "last4" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Last four digits of unique id for voucher payment source ex: tax_id\n",
                "maxLength" : 4,
                "minLength" : 4,
                "example" : null
              },
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Customer first name as per voucher payment source.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Customer last name as per voucher payment source.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "Email address associated Customer's voucher payment source.\n",
                "maxLength" : 70,
                "example" : null
              }
            },
            "required" : [ "last4" ],
            "example" : null
          },
          "billing_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Billing address for the payment source.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "State or Province\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "amazon_payment" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Amazon payments details associated with this payment source.\n",
            "properties" : {
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "Email address associated with Amazon payment account\n",
                "maxLength" : 70,
                "example" : null
              },
              "agreement_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Billing agreement id\n",
                "maxLength" : 50,
                "example" : null
              }
            },
            "example" : null
          },
          "upi" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Represents the payment method that allows you to make payments directly using a bank account.\n",
            "properties" : {
              "vpa" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A unique identifier mapped with an individuals bank account to help UPI track the account.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "example" : null
          },
          "paypal" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "PayPal Express Checkout details associated with this payment source.\n",
            "properties" : {
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "Email address associated with PayPal Express Checkout\n",
                "maxLength" : 70,
                "example" : null
              },
              "agreement_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Billing agreement id\n",
                "maxLength" : 50,
                "example" : null
              }
            },
            "example" : null
          },
          "venmo" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Venmo details associated with this payment source.\n",
            "properties" : {
              "user_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "User name associated with customer's account in Venmo\n",
                "maxLength" : 50,
                "example" : null
              }
            },
            "example" : null
          },
          "klarna_pay_now" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Klarna Pay Now payment source details of the customer\n",
            "properties" : {
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "Email address associated Customer's klarna payment source.\n",
                "maxLength" : 70,
                "example" : null
              }
            },
            "example" : null
          },
          "mandates" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Mandate details associated with the payment source.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique mandate identifier used for recurring payments.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Chargebee's subscription id used to find the mapping between the payment source and the Subscription.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when the mandate is created\n",
                  "example" : null
                }
              },
              "required" : [ "created_at", "id", "subscription_id" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "customer_id", "deleted", "gateway", "id", "reference_id", "status", "type" ],
        "example" : null
      },
      "PaymentSourceAddedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "payment_source" : {
                "$ref" : "#/components/schemas/PaymentSource"
              }
            },
            "required" : [ "customer", "payment_source" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSourceDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "payment_source" : {
                "$ref" : "#/components/schemas/PaymentSource"
              }
            },
            "required" : [ "customer", "payment_source" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSourceExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "payment_source" : {
                "$ref" : "#/components/schemas/PaymentSource"
              }
            },
            "required" : [ "customer", "payment_source" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSourceExpiringEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "payment_source" : {
                "$ref" : "#/components/schemas/PaymentSource"
              }
            },
            "required" : [ "customer", "payment_source" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSourceLocallyDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "payment_source" : {
                "$ref" : "#/components/schemas/PaymentSource"
              }
            },
            "required" : [ "customer", "payment_source" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSourceUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "payment_source" : {
                "$ref" : "#/components/schemas/PaymentSource"
              }
            },
            "required" : [ "customer", "payment_source" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentSucceededEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PaymentVoucher" : {
        "type" : "object",
        "description" : "The Payment Voucher resource represents a voucher that has been created for a customer to initiate voucher-based payment. This resource contains relevant details such as the voucher URL, the amount of the voucher, the status of the voucher, and more. Currently, the only supported voucher-based payment source is Boleto. Boleto is a payment method in Brazil that is regulated by the Central Bank of Brazil and is considered an official form of payment. This is also a popular voucher-based payment method in Brazil.  \n**Note:**\nThis resource can be extended in the future to support other types of payment sources for vouchers.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies the payment voucher.\n",
            "maxLength" : 40,
            "example" : null
          },
          "id_at_gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id with which this voucher is referred in gateway.\n",
            "maxLength" : 100,
            "example" : null
          },
          "payment_voucher_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of the payment source.\n\\* boleto -\n\nBoleto\n",
            "enum" : [ "boleto" ],
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the Voucher will expire if left unconsumed.\n",
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current status of the payment voucher.\n\\* consumed -\n\nConsumed for a transaction and cannot be used again\n\\* expired -\n\nExpired before consumed and cannot be used again\n\\* active -\n\nActive and ready to be consumed\n\\* failure -\n\nFailed to create the voucher due to gateway rejection\n",
            "enum" : [ "active", "consumed", "expired", "failure" ],
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the subscription for which this payment voucher is made.\n",
            "maxLength" : 50,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) for the voucher.\n",
            "maxLength" : 3,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Amount for this payment voucher.\n",
            "minimum" : 1,
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account used for this voucher\n",
            "maxLength" : 50,
            "example" : null
          },
          "payment_source_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the payment source for which this payment voucher is created\n",
            "maxLength" : 40,
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The gateway through which this payment voucher was created.\n<strong class=\"font-semibold\">Note</strong>:\nNote: Currently, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stripe</code>\nis the only supported gateway through which you can create the payment voucher.</p>\n* twikey - <p class=\"mb-2\">Twikey is a payment service provider that specializes in processing direct debit payments across the EU. <span featureId=\"cb-twikey\" isMicro=\"true\"></span></p>\n* ecentric - <p class=\"mb-2\">Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.</p>\n* bluesnap - <p class=\"mb-2\">BlueSnap is a payment gateway.</p>\n* jp_morgan - <p class=\"mb-2\">J.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different <a href=\"/docs/api/payment_sources/payment_source-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\">payment_source_type</a>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This feature is a <strong class=\"font-semibold\">Private Beta Release</strong>. <a href=\"https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/jp-morgan-bacs&amp;ref=feature\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Request access</a> to enable the J.P. Morgan Mobility Payment Solutions gateway via payFURL for your test and live sites.</p></div>\n* tco - <p class=\"mb-2\">2Checkout is a payment gateway.</p>\n* first_data_global - <p class=\"mb-2\">First Data Global Gateway Virtual Terminal Account</p>\n* exact - <p class=\"mb-2\">Exact Payments is a payment gateway.</p>\n* deutsche_bank - <p class=\"mb-2\">Deutsche Bank is the leading German bank with strong European roots and a global network.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This feature is a <strong class=\"font-semibold\">Private Beta Release</strong>.</p></div>\n* bluepay - <p class=\"mb-2\">BluePay is a payment gateway.</p>\n* paypal_express_checkout - <p class=\"mb-2\">PayPal Express Checkout is a payment gateway.</p>\n* nuvei - <p class=\"mb-2\">Nuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This feature is a <strong class=\"font-semibold\">Private Beta Release</strong>. <a href=\"https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/nuvei&amp;ref=feature\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Request access</a> to enable Nuvei for your test and live sites.</p></div>\n* eway - <p class=\"mb-2\">eWAY Account is a payment gateway.</p>\n* metrics_global - <p class=\"mb-2\">Metrics global is a leading payment service provider providing unified payment services in the US.</p>\n* paypal_payflow_pro - <p class=\"mb-2\">PayPal Payflow Pro is a payment gateway.</p>\n* razorpay - <p class=\"mb-2\">Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.</p>\n* global_payments - <p class=\"mb-2\">Global Payments is a payment service provider.</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments is a payment service provider.</p>\n* dlocal - <p class=\"mb-2\">Dlocal provides payment solutions for global commerce by accepting local payment methods.</p>\n* not_applicable - <p class=\"mb-2\">Indicates that payment gateway is not applicable for this resource.</p>\n* windcave - <p class=\"mb-2\">Windcave provides an end to end payment processing solution in ANZ and other leading global markets.</p>\n* checkout_com - <p class=\"mb-2\">Checkout.com is a payment gateway.</p>\n* adyen - <p class=\"mb-2\">Adyen is a payment gateway.</p>\n* braintree - <p class=\"mb-2\">Braintree is a payment gateway.</p>\n* nmi - <p class=\"mb-2\">NMI is a payment gateway.</p>\n* quickbooks - <p class=\"mb-2\">Intuit QuickBooks Payments gateway</p>\n* wepay - <p class=\"mb-2\">WePay is a payment gateway.</p>\n* worldpay - <p class=\"mb-2\">WorldPay is a payment gateway</p>\n* paystack - <p class=\"mb-2\">Paystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both   online and offline.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This feature is a <strong class=\"font-semibold\">Private Beta Release</strong>. <a href=\"https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/paystack&amp;ref=feature\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Request access</a> to enable Paystack for your test and live sites.</p></div>\n* ezidebit - <p class=\"mb-2\">Ezidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This feature is a <strong class=\"font-semibold\">Private Beta Release</strong>.</p></div>\n* pay_com - <p class=\"mb-2\">Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.</p>\n* wirecard - <p class=\"mb-2\">WireCard Account is a payment service provider.</p>\n* chargebee_payments - <p class=\"mb-2\">Chargebee Payments gateway</p>\n* sage_pay - <p class=\"mb-2\">Sage Pay is a payment gateway.</p>\n* moneris_us - <p class=\"mb-2\">Moneris USA is a payment gateway.</p>\n* pin - <p class=\"mb-2\">Pin is a payment gateway</p>\n* authorize_net - <p class=\"mb-2\">Authorize.net is a payment gateway</p>\n* elavon - <p class=\"mb-2\">Elavon Virtual Merchant is a payment solution.</p>\n* paypal_pro - <p class=\"mb-2\">PayPal Pro Account is a payment gateway.</p>\n* orbital - <p class=\"mb-2\">Chase Paymentech(Orbital) is a payment gateway.</p>\n* paypal - <p class=\"mb-2\">PayPal Commerce is a payment gateway.</p>\n* beanstream - <p class=\"mb-2\">Bambora(formerly known as Beanstream) is a payment gateway.</p>\n* hdfc - <p class=\"mb-2\">HDFC Account is a payment gateway.</p>\n* ingenico_direct - <p class=\"mb-2\">Worldline Online Payments is a payment gateway.</p>\n* ogone - <p class=\"mb-2\">Ingenico ePayments (formerly known as Ogone) is a payment gateway.</p>\n* migs - <p class=\"mb-2\">MasterCard Internet Gateway Service payment gateway.</p>\n* stripe - <p class=\"mb-2\">Stripe is a payment gateway.</p>\n* vantiv - <p class=\"mb-2\">Vantiv is a payment gateway.</p>\n* moneris - <p class=\"mb-2\">Moneris is a payment gateway.</p>\n* bank_of_america - <p class=\"mb-2\">Bank of America Gateway</p>\n* chargebee - <p class=\"mb-2\">Chargebee test gateway.</p>\n* eway_rapid - <p class=\"mb-2\">eWAY Rapid is a payment gateway.</p>\n* gocardless - <p class=\"mb-2\">GoCardless is a payment service provider.</p>\n* mollie - <p class=\"mb-2\">Mollie is a payment gateway.</p>\n* paymill - <p class=\"mb-2\">PAYMILL is a payment gateway.</p>\n* balanced_payments - <p class=\"mb-2\">Balanced is a payment gateway</p>\n* solidgate - <p class=\"mb-2\">Solidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This feature is a <strong class=\"font-semibold\">Private Beta Release</strong>.</p></div>\n* cybersource - <p class=\"mb-2\">CyberSource is a payment gateway.</p>\n* ebanx - <p class=\"mb-2\">EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.</p>\n<span featureId=\"cb-ebanx\" isMicro=\"true\"></span>",
            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
            "example" : null
          },
          "payload" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Payload from the gateway response with voucher details\n",
            "maxLength" : 65000,
            "example" : null
          },
          "error_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Error code received from the payment gateway on failure.\n",
            "maxLength" : 100,
            "example" : null
          },
          "error_text" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Error message received from the payment gateway on failure.\n",
            "maxLength" : 65000,
            "example" : null
          },
          "url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Chargebee Hosted Page url for payment voucher\n",
            "maxLength" : 65000,
            "example" : null
          },
          "date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates when this payment voucher occurred date.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this voucher was last updated.\n",
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "linked_invoices" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Invoices related to the generated voucher\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "invoice_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Identifier for the invoice.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "txn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies the payment voucher.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "applied_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp at which the transaction is applied.\n",
                  "example" : null
                }
              },
              "required" : [ "applied_at", "invoice_id", "txn_id" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "customer_id", "gateway", "id", "payment_voucher_type" ],
        "example" : null
      },
      "PaymentVoucherType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "boleto" ],
        "example" : null
      },
      "Pc2Migration" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "initiated", "data_transfer_started", "data_transfer_completed", "migration_completed", "failed", "draft_items_step_1_started", "draft_items_step_1_completed", "draft_item_families_step_2_completed", "id_correction_step_3_completed", "pc1_to_draft_model_started" ],
            "example" : null
          },
          "current_action" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "prepare_draft_data", "autocorrect_invalid_and_duplicate_ids", "enable_site_settings", "transfer_custom_field", "transfer_item_family", "transfer_item", "transfer_coupon", "enable_pc2_site_setting", "no_pending_action", "contact_support", "clear_sandbox_stale_ms_data", "transfer_attached_item", "map_pc1_data_to_draft_items" ],
            "example" : null
          },
          "status_details" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "error_details" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "api_hit_count" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 0,
            "deprecated" : false,
            "example" : null
          },
          "is_internal_migration" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "is_id_processor_applicable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "is_attached_item_processor_applicable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "started_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "data_transfer_started_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "migration_completed_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "started_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "data_transfer_completed_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "migration_completed_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "id", "started_at", "status" ],
        "example" : null
      },
      "Pc2MigrationApplicableItem" : {
        "type" : "object",
        "properties" : {
          "pc1_plan_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "pc1_plan_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "pc1_addon_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "pc2_addon_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "pc2_plan_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "pc2_plan_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          }
        },
        "example" : null
      },
      "Pc2MigrationItem" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "pc2_migration_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "pc2_migration_item_family_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "pc1_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan", "addon" ],
            "example" : null
          },
          "is_recurring" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "example" : null
          },
          "is_shippable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "is_giftable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "enabled_for_checkout" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "enabled_in_portal" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "gift_claim_redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "unit" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 30,
            "example" : null
          },
          "included_in_mrr" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "metadata" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "draft", "completed" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "is_recurring", "name", "pc1_type", "pc2_migration_id", "status" ],
        "example" : null
      },
      "Pc2MigrationItemFamily" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "pc2_migration_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "is_default" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "metadata" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "draft", "completed" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "id", "is_default", "name", "pc2_migration_id", "status" ],
        "example" : null
      },
      "Pc2MigrationItemPrice" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "pc2_migration_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "pc2_migration_item_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "ref_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "pc1_item_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan", "addon" ],
            "example" : null
          },
          "is_recurring" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "example" : null
          },
          "is_primary_attached_item" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 5,
            "example" : null
          },
          "period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "day", "week", "month", "year", "not_applicable" ],
            "example" : null
          },
          "is_invalid_pc1_id" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "sanitized_pc1_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "metadata" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "draft", "completed" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "currency_code", "id", "is_invalid_pc1_id", "is_primary_attached_item", "is_recurring", "name", "pc2_migration_id", "pc2_migration_item_id", "status" ],
        "example" : null
      },
      "Pc2PreviewApproval" : {
        "type" : "object",
        "properties" : {
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "approval_required" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "preview_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "approval_details" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "rule_name" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "version" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "rule_id" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "stages" : {
                "type" : "array",
                "deprecated" : false,
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "name" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "approver_policy" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 50,
                      "example" : null
                    },
                    "users" : {
                      "type" : "array",
                      "deprecated" : false,
                      "items" : {
                        "type" : "object",
                        "deprecated" : false,
                        "properties" : {
                          "name" : {
                            "type" : "string",
                            "deprecated" : false,
                            "maxLength" : 50,
                            "example" : null
                          },
                          "email" : {
                            "type" : "string",
                            "deprecated" : false,
                            "maxLength" : 100,
                            "example" : null
                          }
                        },
                        "required" : [ "email", "name" ],
                        "example" : null
                      },
                      "example" : null
                    }
                  },
                  "required" : [ "approver_policy", "name" ],
                  "example" : null
                },
                "example" : null
              },
              "conditions" : {
                "type" : "array",
                "deprecated" : false,
                "items" : {
                  "type" : "object",
                  "deprecated" : false,
                  "properties" : {
                    "operand" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "operator" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 100,
                      "example" : null
                    },
                    "value" : {
                      "type" : "string",
                      "deprecated" : false,
                      "maxLength" : 65000,
                      "example" : null
                    }
                  },
                  "required" : [ "operand", "operator" ],
                  "example" : null
                },
                "example" : null
              }
            },
            "required" : [ "rule_id", "rule_name", "version" ],
            "example" : null
          }
        },
        "required" : [ "created_at" ],
        "example" : null
      },
      "PdfType" : {
        "type" : "string",
        "default" : "detailed",
        "deprecated" : true,
        "enum" : [ "consolidated", "detailed", "changes_only" ],
        "example" : null
      },
      "PendingInvoiceCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PendingInvoiceUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PeriodUnit" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "day", "week", "month", "year" ],
        "example" : null
      },
      "PersonalizedOffer" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">A Personalized Offer represents the best possible offer for a subscriber at a given moment in their lifecycle. It is generated by combining subscriber profile, subscription details, and contextual signals with the plays configured by Growth Managers in the Chargebee Growth dashboard. Learn more about <a href=\"https://www.chargebee.com/docs/retention/getting-started-guide/chargebee-growth-solutions\">Growth Solutions</a>.\nGrowth Managers define strategic plays that guide customer engagement. Developers then use the Personalized Offers API to fetch and surface these offers within the subscriber experience; whether in an app, portal, checkout flow, websites or communications like email and SMS. Some common plays include:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Acquire</code>: Incentivize trial users or prospects to subscribe.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Expand</code>: Encourage existing subscribers to purchase higher-value products or add-ons.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Retain</code>: Engage at-risk subscribers with targeted winbacks or discounts.</li>\n</ul><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> Growth solutions are currently in <strong class=\"font-semibold\">Early Access</strong> and available only for Chargebee Billing customers at no additional cost during the EAP period. This API is also part of the Early Access Program (EAP). To request access, go to the <a href=\"https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/chargebee-growth&amp;ref=feature\">Chargebee Growth Early Access</a> page in Chargebee Billing.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Features of this object</strong></p><p class=\"mb-2\">The Personalized Offers object enables you to:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Fetch context-aware offers generated by the Growth system.</li>\n<li class=\"text-base leading-relaxed\">Display offer content (title and description) to subscribers.</li>\n<li class=\"text-base leading-relaxed\">Provide subscribers with options they can act on.</li>\n<li class=\"text-base leading-relaxed\">Attribute offers to the correct brand (for multi-brand merchants).</li>\n<li class=\"text-base leading-relaxed\">Respect time-bound validity with the expires_at attribute.</li>\n</ul></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique and immutable identifier for the personalized offer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "offer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "ID of the base offer configured. This ID is immutable and always refers to the core offer and its latest published version.\n",
            "maxLength" : 50,
            "example" : null
          },
          "content" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The offer content to display to the user, includes title and description.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nThe content is formatted in HTML and can be rendered safely in the DOM. However, the code may contain empty <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">&lt;div&gt;</code> elements of the form <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">&lt;div class=&quot;slate-p&quot;&gt;&lt;/div&gt;</code>. Replace these with one or two newlines to preserve the intended line breaks.</p></div>",
            "properties" : {
              "title" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The offer headline to display to the end user.\n",
                "maxLength" : 100,
                "example" : null
              },
              "description" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The offer content or description.\n",
                "maxLength" : 100,
                "example" : null
              }
            },
            "required" : [ "description", "title" ],
            "example" : null
          },
          "options" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of offer options (choices or call-to-action buttons) in this offer.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for a specific option within the offer.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "label" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The text to display on the call-to-action button or link for this option.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "processing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Defines what happens after a customer accepts an offer and how the offer benefit is fulfilled. <a href=\"https://www.chargebee.com/docs/growth/offers/in-app-offers#offer-processing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a>.</p>\n* email - <p class=\"mb-2\">Chargebee sends an email as configured in Growth, and the fulfillment is processed by your system.</p>\n* checkout - <p class=\"mb-2\">The offer is fulfilled by Chargebee via a Chargebee-hosted <a href=\"https://www.chargebee.com/docs/billing/2.0/hosted-capabilities/hosted-checkout\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Checkout</a> flow.</p>\n* webhook - <p class=\"mb-2\">Chargebee triggers webhook and fulfillment is processed by your system.</p>\n* url_redirect - <p class=\"mb-2\">Chargebee provides the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">redirect_url</code> as configured in Growth, and the fulfillment is processed by your system.</p>\n* billing_update - <p class=\"mb-2\">The offer is fulfilled by Chargebee by applying the offer benefit directly to the subscription.</p>",
                  "enum" : [ "billing_update", "checkout", "url_redirect", "webhook", "email" ],
                  "example" : null
                },
                "processing_layout" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Indicated the suggested UI flow for checkout type offers. Possible values: in_app or full_page.\n\\* in_app -\n\nUse an embedded checkout experience within the current interface.\n\\* full_page -\n\nRedirect the user to a dedicated full-page checkout.\n",
                  "enum" : [ "in_app", "full_page" ],
                  "example" : null
                },
                "redirect_url" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A URL to which the user should be redirected. Returned only if the offer's processing type is 'url_redirect'\n",
                  "maxLength" : 250,
                  "example" : null
                }
              },
              "required" : [ "id", "label", "processing_layout", "processing_type", "redirect_url" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "content", "id", "offer_id", "options" ],
        "example" : null
      },
      "PortalSession" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Customer Portal lets your customers to manage their account and billing themselves. Chargebee supports Single Sign-on (SSO) to access the customer portal. If you already have your own authentication for your website, it allows your authenticated customers to access their portal without having to login again.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> You can instead allow your customers to access the portal via login page provided by Chargebee. <a href=\"https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html\" target=\"_blank\">Read more</a>.</p><p class=\"mb-2\">Please follow the below steps for supporting portal access via SSO:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">To enable the &quot;Allow access to customer portal via API&quot;, click <strong class=\"font-semibold\">Settings</strong> &gt; <strong class=\"font-semibold\">Configure Chargebee</strong> &gt; <strong class=\"font-semibold\">Customer Facing Essentials</strong> &gt; <strong class=\"font-semibold\">Checkout and Self Serve Portal</strong> &gt; <strong class=\"font-semibold\">Portal</strong>.</li>\n<li class=\"text-base leading-relaxed\">Provide a link in your website/application which your authenticated customers can use to access the portal (For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">{your_website_url}/portal_link</code>).</li>\n<li class=\"text-base leading-relaxed\">Handle the link request in your server code and create a portal session for the customer by calling Chargebee&#x27;s &quot;Create a portal session&quot; API</li>\n<li class=\"text-base leading-relaxed\">Forward the user to the access URL present in the &quot;Portal Session&quot; resource returned by the above API call.</li>\n</ol><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Notes about access URL:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The access URL should be accessed by the customer within one hour from the time it was created.</li>\n<li class=\"text-base leading-relaxed\">Once accessed, the session is valid until the user logs out from the portal UI or logout API is called from your application for this session.</li>\n<li class=\"text-base leading-relaxed\">Once accessed, the access url cannot be reused. Hence do not persist this URL. Whenever you need to provide access to the portal, you need to create a new portal session.</li>\n</ul></div><div id=\"using-chargebee-auth\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#using-chargebee-auth-content\" aria-expanded=\"false\" aria-controls=\"using-chargebee-auth-content\">Using Chargebee&#x27;s authentication<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"using-chargebee-auth-content\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong> This feature is not supported in <a href=\"https://www.chargebee.com/docs/inapp-self-serve-portal.html\" target=\"_blank\">in-app</a> portal.\nChargebee allows you to integrate your website by building user authentication on top of Chargebee. You can also use the portal login to provide authenticated access for your customers to your website pages.\n<strong class=\"font-semibold\">Workflow:</strong>\nUsers should be redirected to the portal login URL - <strong class=\"font-semibold\">https://yourdomain.chargebeeportal.com/portal/login</strong> by passing the following parameters:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">return_url</strong> - URL the users should be redirected to upon successful authentication.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">cancel_url</strong> - URL the users should be redirected to when they want to go back to your website during login.\nThe domain name used in the Return/Cancel URL should be added as a &#x27;Whitelisted Domain&#x27; in Chargebee. Add just the domain name in Chargebee and not the entire URL: E.g. yourdomain.com.</li>\n</ul><p class=\"mb-2\">Upon successful authentication, a session is created for the user and Chargebee redirects the user to the return_url along with the following parameters:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">auth_session_id</strong> - Identifier to the authenticated session.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">auth_session_token</strong> - Token for the session which should be sent later to activate this session.\nUsing the <strong class=\"font-semibold\">auth_session_id</strong> &amp; <strong class=\"font-semibold\">auth_session_token</strong>, you should call <a href=\"/docs/api/portal_sessions/activate-a-portal-session\">Activate a Portal Session</a> API to validate the session details and create a session for that user in your website.\n<strong class=\"font-semibold\">Note:</strong> The process of setting up the portal account will take place along with the authentication process.</li>\n</ul></div></div><div id=\"scheduled-subscription-changes\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#scheduled-subscription-changes-content\" aria-expanded=\"false\" aria-controls=\"scheduled-subscription-changes-content\">Scheduled subscription changes<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"scheduled-subscription-changes-content\"><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <a href=\"ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are disabled, the customer can view and edit the single scheduled change if it exists.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <a href=\"ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps</a> are enabled with compatibility mode:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The customer can view and edit the first ramp if it exists.</li>\n<li class=\"text-base leading-relaxed\">If they edit the subscription, the impacts are the same as those described in the documentation for <a href=\"subscriptions#update_subscription_for_items_changes_scheduled_at\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code></a> parameter in the Update subscription API.</li>\n</ul>\n<p class=\"mb-2\">For more details, see <a href=\"subscriptions#ramps-compat-mode\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps API compatibility mode</a>.</p>\n</li>\n</ul></div></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier for the portal session.\n",
            "maxLength" : 70,
            "example" : null
          },
          "token" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique pre-authenticated portal session token to access customer portal directly.\n",
            "maxLength" : 70,
            "example" : null
          },
          "access_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique URL for accessing the customer portal. Once accessed, this cannot be reused.\n",
            "maxLength" : 550,
            "example" : null
          },
          "redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "URL to redirect when the user logs out from the portal.\n",
            "maxLength" : 250,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "created",
            "deprecated" : false,
            "description" : "Indicates the current status of the portal session.\n\\* created -\n\nIndicates that the portal session is just created and not yet accessed by the user.\n\\* logged_out -\n\nIndicates that the portal session is logged out either by user or via API.\n\\* not_yet_activated -\n\nIndicates that the portal session is created and not yet activated for the customer to allow access to your website. This is applicable when you use Chargebee's authentication for your website\n\\* activated -\n\nIndicates that the portal session is activated for the customer to allow access to your website. This is applicable when you use Chargebee's authentication for your website.\n\\* logged_in -\n\nIndicates that the portal session URL has been accessed by the user and the session is active.\n",
            "enum" : [ "created", "logged_in", "logged_out", "not_yet_activated", "activated" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this portal session was generated.\n",
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Specifies when the portal session URL expires. After this time, it is no longer accessible. The expiration time is set to 1 hour after the portal session is created.\n",
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "login_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this portal session URL was accessed by the user.\n",
            "example" : null
          },
          "logout_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this portal session was logged out either by user or via API.\n",
            "example" : null
          },
          "login_ipaddress" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "IP Address from which the portal session URL was accessed.\n",
            "maxLength" : 50,
            "example" : null
          },
          "logout_ipaddress" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "IP Address from which the portal session was logged out either by user or via API.\n",
            "maxLength" : 50,
            "example" : null
          },
          "linked_customers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of customers for this session\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Identifier of the customer.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "format" : "email",
                  "deprecated" : false,
                  "description" : "Email of the customer. Configured email notifications will be sent to this email.\n",
                  "maxLength" : 70,
                  "example" : null
                },
                "has_billing_address" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "The customer has billing address.\n",
                  "example" : null
                },
                "has_payment_method" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "The customer has payment method.\n",
                  "example" : null
                },
                "has_active_subscription" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "The customer has atleast one active subscription.\n",
                  "example" : null
                }
              },
              "required" : [ "customer_id", "has_active_subscription", "has_billing_address", "has_payment_method" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "access_url", "created_at", "customer_id", "id", "status", "token" ],
        "example" : null
      },
      "PriceType" : {
        "type" : "string",
        "default" : "tax_exclusive",
        "deprecated" : false,
        "enum" : [ "tax_exclusive", "tax_inclusive" ],
        "example" : null
      },
      "PriceVariant" : {
        "type" : "object",
        "description" : "Price variant resource offers businesses the flexibility to manage pricing for multiple variations of an [item](/docs/api/items) (plan, addon, or charge) in the Product Catalog. It enables the creation of diverse pricing structures based on variables such as geography, partners, versions, and more.  \n**See also:**\nFor a more detailed understanding of Price Variants, including how to enable, configure, and manage them, as well as their impact on other features, follow these resources:\n\n* [Price Variant Overview](https://www.chargebee.com/docs/2.0/variant-pricing-overview.html)\n* [Enabling Price Variant](https://www.chargebee.com/docs/2.0/variant-pricing-enable.html)\n* [Configuring Price Variant](https://www.chargebee.com/docs/2.0/variant-pricing-config.html)\n* [Impacted Features by Price Variant](https://www.chargebee.com/docs/2.0/variant-pricing-impacted-features.html)\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique and immutable identifier of the price variant.\n",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique name of the price variant.\n",
            "maxLength" : 100,
            "example" : null
          },
          "external_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique display name for the price variant.\n",
            "maxLength" : 100,
            "example" : null
          },
          "variant_group" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant_group</code>\norganizes similar <code><a href=\"/docs/api/price_variants\">price_variants</a></code>\nto optimize strategies such as bundling, geo-based pricing experiments, and campaign-specific pricing like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cb-atomic-pricing-</code>\nfor effective grouping. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">variant_group</code>\nprovides greater flexibility and precision in your pricing models.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Description of the price variant.\n",
            "maxLength" : 500,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Status of a price variant.</p>\n* active - <p class=\"mb-2\">Active price variant. This price variant can be attached to <a href=\"/docs/api/item_prices\">item prices</a>\n.</p>\n* deleted - <p class=\"mb-2\">Deleted price variant. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nof the deleted price variant can be reused.</p>\n* archived - <p class=\"mb-2\">Archived price variant. This price variant is no longer <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nand cannot be attached to new <a href=\"/docs/api/item_prices\">item prices</a>.\nExisting item prices that already have this price variant attached will continue to remain as is.</p>",
            "enum" : [ "active", "archived", "deleted" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this price variant is created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The version number of this resource. For every change made to the resource, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this price variant was last updated.\n",
            "example" : null
          },
          "archived_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this price variant was archived.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the\n<a href=\"/docs/api/business_entities\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price_variant</code>.\nThis is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether the price variant has been deleted or not.\n",
            "example" : null
          },
          "attributes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of price variant attribute values.\nAttributes can be used to store additional information about the price variant. For example, for a price variant called 'Germany', the attributes can be 'Country':'Germany', 'City':'Berlin' and so on.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Attribute name\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Attribute value\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "name", "value" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "deleted", "id", "name" ],
        "example" : null
      },
      "PriceVariantCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "price_variant" : {
                "$ref" : "#/components/schemas/PriceVariant"
              },
              "attribute" : {
                "$ref" : "#/components/schemas/Attribute"
              }
            },
            "required" : [ "attribute", "price_variant" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PriceVariantDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "price_variant" : {
                "$ref" : "#/components/schemas/PriceVariant"
              },
              "attribute" : {
                "$ref" : "#/components/schemas/Attribute"
              }
            },
            "required" : [ "attribute", "price_variant" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PriceVariantUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "price_variant" : {
                "$ref" : "#/components/schemas/PriceVariant"
              },
              "attribute" : {
                "$ref" : "#/components/schemas/Attribute"
              }
            },
            "required" : [ "attribute", "price_variant" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PricingModel" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
        "example" : null
      },
      "PricingPageSession" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-pricing-page-session\"></span><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_page_session</code>\nresource allows you to create a pricing page that incorporates customer and subscription details. This page helps customers choose a plan, start a new subscription, or modify an existing one. Each session is distinct and has a limited duration, ensuring a unique and time-sensitive experience.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier generated for each pricing page session requested.\n",
            "maxLength" : 70,
            "example" : null
          },
          "url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique URL for the pricing page that can be included in your website.\n",
            "maxLength" : 250,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates when this pricing page session is generated.\n",
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates when this pricing page session will expire. After this, the pricing page cannot be accessed.\n",
            "example" : null
          }
        },
        "example" : null
      },
      "PricingType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "per_unit", "flat_fee", "package" ],
        "example" : null
      },
      "Product" : {
        "type" : "object",
        "description" : "Products are offerings that can be sold to customers either as one-time purchases or as recurring subscriptions. These products could include physical items, digital goods, or services that are delivered over a period of time. Chargebee's API allows developers to interact with and manipulate product data, enabling businesses to seamlessly integrate their product offerings into their subscription management workflows.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The immutable unique identifier of the product.\n",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique display name for the product. This is visible only in Chargebee.\n",
            "maxLength" : 100,
            "example" : null
          },
          "external_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This is a unique name appears for each product to the end user.\n",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Description of the product.\n",
            "maxLength" : 500,
            "example" : null
          },
          "has_variant" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Whether the product has variants or not.\n",
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "active",
            "deprecated" : false,
            "description" : "Status of the product.\n\\* active -\n\nThe active products are visible on the storefront, subscription, or checkout.\n\\* inactive -\n\nThe inactive products are not visible on the storefront, subscription, or checkout.\n",
            "enum" : [ "active", "inactive" ],
            "example" : null
          },
          "shippable" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Whether a product is shippable or not.\n",
            "example" : null
          },
          "sku" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier code a seller assigns to each product or item. Retailers and merchants use SKUs to keep track of inventory and sales data and help organize products within a store or warehouse. SKUs can include a combination of letters, numbers, and symbols and can vary in length depending on the seller's needs.\n",
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the product was created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this product was last updated\n",
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Determines if the product is deleted or not. If the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the product has been deleted else it exists. Once the product is deleted, you can reuse the product <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\n.</p>",
            "example" : null
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the product. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
            "example" : null
          },
          "options" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Array of option list which helps in the product variant creation.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of an option.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the option.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "values" : {
                  "type" : "array",
                  "deprecated" : false,
                  "description" : "List of values for the option.\n",
                  "items" : {
                    "example" : null
                  },
                  "example" : null
                },
                "default_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Default value for the option.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Type of options.\n\\* select -\n\nselect\n",
                  "enum" : [ "select" ],
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "deleted", "external_name", "has_variant", "id", "name", "shippable", "status" ],
        "example" : null
      },
      "ProductCatalogVersion" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "v1", "v2" ],
        "example" : null
      },
      "ProductCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "product" : {
                "$ref" : "#/components/schemas/Product"
              }
            },
            "required" : [ "product" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ProductDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "product" : {
                "$ref" : "#/components/schemas/Product"
              }
            },
            "required" : [ "product" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ProductUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "product" : {
                "$ref" : "#/components/schemas/Product"
              }
            },
            "required" : [ "product" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PromotionalCredit" : {
        "type" : "object",
        "description" : "These credits can be provided to the customer for promoting the product. You can use Promotional Credits to offer referral bonuses, cash back offers and more. When a customer has promotional credits, it is automatically applied whenever a new invoice is created.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique reference ID provided for promotional credits\n",
            "maxLength" : 150,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of promotional credits\n\\* decrement -\n\nDecrement\n\\* increment -\n\nIncrement\n",
            "enum" : [ "increment", "decrement" ],
            "example" : null
          },
          "amount_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Amount in decimal\n",
            "maxLength" : 33,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Promotional credits amount\n",
            "minimum" : 0,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) for promotional credit\n",
            "maxLength" : 3,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Detailed description of this promotional credits.\n",
            "maxLength" : 250,
            "example" : null
          },
          "credit_type" : {
            "type" : "string",
            "default" : "general",
            "deprecated" : false,
            "description" : "Type of promotional credits provided to customer\n\\* referral_rewards -\n\nReferral\n\\* loyalty_credits -\n\nLoyalty Credits\n\\* general -\n\nGeneral\n",
            "enum" : [ "loyalty_credits", "referral_rewards", "general" ],
            "example" : null
          },
          "reference" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Describes why promotional credits were provided\n",
            "maxLength" : 500,
            "example" : null
          },
          "closing_balance" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Closing balance as on end date.\n",
            "minimum" : 0,
            "example" : null
          },
          "done_by" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The user who added/deducted the credit. If created via API, this contains the name given for the API key used.\n",
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this promotional credit resource is created.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [business entity](/docs/api/business_entities)\nassociated with this promotional credit.\n",
            "maxLength" : 50,
            "example" : null
          }
        },
        "required" : [ "amount", "closing_balance", "created_at", "credit_type", "currency_code", "customer_id", "description", "id", "type" ],
        "example" : null
      },
      "PromotionalCreditsAddedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "promotional_credit" : {
                "$ref" : "#/components/schemas/PromotionalCredit"
              }
            },
            "required" : [ "customer", "promotional_credit" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "PromotionalCreditsDeductedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "promotional_credit" : {
                "$ref" : "#/components/schemas/PromotionalCredit"
              }
            },
            "required" : [ "customer", "promotional_credit" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ProrationType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "full_term", "partial_term", "none" ],
        "example" : null
      },
      "Purchase" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-purchases\"></span><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Deprecated</strong>\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource and its associated operations on this page are deprecated. Avoid using them in your integrations. The ability to purchase multiple plans in a single subscription will be supported through the <a href=\"/docs/api/subscriptions\">Subscriptions API</a> in the future.</p></div><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource represents a collection of <a href=\"/docs/api/item_prices\">item prices</a> bought together. A purchase can contain one or more of the following:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">subscriptions (a <code><a href=\"/docs/api/subscriptions\">subscription</a></code> resource consists of item prices such that at least one of the item prices belongs to an <code><a href=\"/docs/api/items\">item</a></code> of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.)</li>\n<li class=\"text-base leading-relaxed\">group of one-time charges (aka <a href=\"/docs/api/item_prices\">charge item prices</a>)</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Prerequisite</strong></p><p class=\"mb-2\">Purchases must be enabled explicitly for the site. If not already enabled, contact eap@chargebee.com. Purchases require the following features to work so they&#x27;re automatically enabled along with them:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<a href=\"https://www.chargebee.com/docs/2.0/consolidated-invoicing.html\" target=\"_blank\">Consolidated Invoicing</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"https://www.chargebee.com/docs/2.0/subscription-manual-discounts.html\" target=\"_blank\">Manual discounts</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"https://www.chargebee.com/docs/2.0/coupons.html#applying-multiple-coupons-to-a-subscription\" target=\"_blank\">Multiple coupon support</a>\n</li>\n<li class=\"text-base leading-relaxed\">\n<a href=\"https://www.chargebee.com/docs/2.0/multi-decimal-support.html\" target=\"_blank\">Multi-decimal pricing and quantities</a>\n</li>\n</ul></div><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><p class=\"mb-2\">Once created, Chargebee never modifies a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">purchase</code> resource; it cannot be modified via API either.</p></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the purchase resource. This is always autogenerated.\n",
            "maxLength" : 100,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [customer](/docs/api/customers)\nthat made this purchase.\n",
            "maxLength" : 50,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which this purchase was created.\n",
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which the purchase was modified.\n",
            "example" : null
          },
          "subscription_ids" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The unique identifiers of the [subscriptions](/docs/api/subscriptions)\nthat are created as part of this purchase. These IDs remain even when the associated subscriptions have been deleted.\n",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 50,
              "example" : null
            },
            "example" : null
          },
          "invoice_ids" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The unique identifier of the [invoice(s)](/docs/api/invoices)\ncreated immediately as part of this purchase.\n",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 50,
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "customer_id" ],
        "example" : null
      },
      "PurchaseCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "purchase" : {
                "$ref" : "#/components/schemas/Purchase"
              }
            },
            "required" : [ "purchase" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Quote" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "A quote is an estimate of the invoice with the charges likely to occur when customers buy an item. A quote can be converted to a regular invoice once the customer accepts it.\n\nThe line items of a quote are grouped by charge events and are available as a separate [resource](/docs/api/quote_line_groups). This resource can be retrieved using the [List quote line groups](/docs/api/quotes/list-quote-line-groups) endpoint. Note that the first quote line group is available within the quote resource itself and parsing the quote line groups object is not required.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The quote number. Acts as a identifier for quote and typically generated sequentially.\n",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The quote name will be used as the pdf name of the quote.\n",
            "maxLength" : 100,
            "example" : null
          },
          "po_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Purchase Order Number\n",
            "maxLength" : 100,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the customer this quote belongs to.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the subscription this quote belongs to.\n",
            "maxLength" : 50,
            "example" : null
          },
          "invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the invoice generated while converting this quote.\n",
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current status of this quote.\n\\* open -\n\nThe quote is either newly created, or has been approved but not yet sent to the customer.\n\\* invoiced -\n\nThe accepted quote has been converted into a subscription or one-time charge and invoiced through Chargebee.\n\\* voided -\n\nThe quote has been invalidated and can no longer be acted upon.  \n**Note**\n\nApplicable only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n\\* accepted -\n\nThe customer has accepted the quote.\n\\* closed -\n\nThe quote has been marked as closed.  \n**Note**\n\nNot applicable when Chargebee CPQ is enabled.\n\\* declined -\n\nThe customer declined/rejected the quote.\n\\* proposed -\n\nThe quote has been shared with the customer via email or e-signature and is awaiting their response.  \n**Note**\n\nApplicable only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n\\* expired -\n\nThe quote has passed its expiration date and is no longer valid.  \n**Note**\n\nApplicable only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n\\* approval_rejected -\n\nThe quote was rejected with comments, allowing for revisions.  \n**Note**\n\nApplicable only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n\\* pending_approval -\n\nThe quote has been submitted for internal approval and is awaiting review.  \n**Note**\n\nApplicable only when Chargebee CPQ is enabled. To request access, contact [Chargebee Support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support).\n",
            "enum" : [ "open", "accepted", "declined", "invoiced", "closed", "pending_approval", "approval_rejected", "proposed", "voided", "expired" ],
            "example" : null
          },
          "operation_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Operation Type\n\\* onetime_invoice -\n\nonetime_invoice\n\\* create_subscription_for_customer -\n\ncreate_subscription_for_customer\n\\* change_subscription -\n\nchange_subscription\n",
            "enum" : [ "create_subscription_for_customer", "change_subscription", "onetime_invoice", "renew_subscription" ],
            "example" : null
          },
          "vat_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "VAT/ Tax registration number of the customer. [Learn more](https://www.chargebee.com/docs/tax.html#capture-tax-registration-number)\n",
            "maxLength" : 20,
            "example" : null
          },
          "price_type" : {
            "type" : "string",
            "default" : "tax_exclusive",
            "deprecated" : false,
            "description" : "The price type of the quote.\n\\* tax_inclusive -\n\nAll amounts in the document are inclusive of tax.\n\\* tax_exclusive -\n\nAll amounts in the document are exclusive of tax.\n",
            "enum" : [ "tax_exclusive", "tax_inclusive" ],
            "example" : null
          },
          "valid_till" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Quote will be valid till this date. After this date quote will be marked as closed.\n",
            "example" : null
          },
          "date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Creation date of the quote. Typically this is the date on which quote is generated.\n",
            "example" : null
          },
          "total_payable" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total contract value. Applicable when multi billing cycle quote is enabled.\n",
            "minimum" : 0,
            "example" : null
          },
          "charge_on_acceptance" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Charge on acceptance. Applicable when multi billing cycle quote is enabled.\n",
            "minimum" : 0,
            "example" : null
          },
          "sub_total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Subtotal (in cents) of the first quote line group.\n",
            "minimum" : 0,
            "example" : null
          },
          "total" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Total (in cents) of the first quote line group.\n",
            "minimum" : 0,
            "example" : null
          },
          "credits_applied" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Credits applied (in cents) for the first quote line group.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_paid" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Existing outstanding payments (in cents) if any, applied to the first quote line group.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_due" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Amount due (in cents) for the first quote line group.\n",
            "minimum" : 0,
            "example" : null
          },
          "version" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "deprecated" : false,
            "description" : "Version of the quote.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this quote was last updated.\n",
            "example" : null
          },
          "vat_number_prefix" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An overridden value for the first two characters of the <a href=\"https://en.wikipedia.org/wiki/VAT_identification_number\" target=\"_blank\">full VAT number</a>.\nOnly applicable specifically for customers with <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\n(which is <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>\n).</p>\n<p class=\"mb-2\">When you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\">EU VAT</a>\nin 2021 or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\">manually enabled</a>\nthe Brexit configuration, you have the option of setting <code><a href=\"/docs/api/customers/customer-object#billing_address\">billing_address</a></code></p>\n<p class=\"mb-2\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">country</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>.\nThat&#x27;s the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>.\nThe first two characters of the VAT number in such a case is\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code>\nby default. However, if the VAT number was registered in UK, the value should be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>.\nSet\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">vat_number_prefix</code>\nto <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">GB</code>\nfor such cases.</p>",
            "maxLength" : 10,
            "example" : null
          },
          "tax_category" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the customer's category for the Goods and Services Tax (GST). This field is returned only if you've configured GST for the India region.\n",
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) of the quote.\n",
            "maxLength" : 3,
            "example" : null
          },
          "notes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of notes associated with this quotes.\n",
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "contract_term_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Specifies the contract term's start date.\n",
            "example" : null
          },
          "contract_term_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the contract term&#x27;s end date. It indicates when the action set in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code>\ngets triggered.</p>",
            "example" : null
          },
          "contract_term_termination_fee" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Specifies the charge to be applied for terminating the contract term.\n",
            "minimum" : 0,
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the [business entity](/docs/api/advanced-features)\nof this quote.\n",
            "maxLength" : 50,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates that this resource has been deleted when the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n.</p>",
            "example" : null
          },
          "total_contract_value" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The total contract value of the quote.\n\n**Note:** This parameter applies only when Chargebee CPQ is enabled. To request access, please contact [support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support)\n",
            "minimum" : 0,
            "example" : null
          },
          "total_discount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The total discount value of the quote for the contract period.\n\n**Note:** This parameter applies only when Chargebee CPQ is enabled. To request access, please contact [support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support)\n",
            "minimum" : 0,
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of line items for this quote.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies a line_item\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the subscription this line item belongs to.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Start date of this line item.\n",
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "End date of this line item.\n",
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Unit amount of the line item.\n",
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 1,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a>\nwhich is represented by this line item. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nline items, this value is updated from <a href=\"/docs/api/usages\">usages</a>\nonce when the invoice is generated as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\nand finally when the invoice is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>\n.</p>",
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                  "example" : null
                },
                "pricing_model" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n",
                  "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                  "example" : null
                },
                "is_taxed" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Specifies whether this line item is taxed or not\n",
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The tax amount charged for this item\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "Rate of tax used to calculate tax for this lineitem\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total discounts for this line\n",
                  "minimum" : 0,
                  "example" : null
                },
                "item_level_discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Line Item-level discounts for this line.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "metered" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates whether the line item is for a metered item.If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the item is metered; otherwise, it is non-metered.</p>",
                  "example" : null
                },
                "is_percentage_pricing" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "reference_line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Invoice Reference Line Item ID\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this line item.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "entity_description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this item.\n",
                  "maxLength" : 500,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the modelled entity this line item is based on.\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n",
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "tax_exempt_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* zero_value_item - <p class=\"mb-2\">If the total invoice value/amount is equal to zero. E.g., If the total order value is $10 and a $10 coupon has been applied against that order, the total order value becomes $0. Hence the invoice value also becomes $0.</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* tax_not_configured_external_provider - <p class=\"mb-2\">If the tax is not configured for the country in 3rd party tax provider.</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>",
                  "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the customer this line item belongs to\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of tiers applicable for the various line items in this quote.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies a line_item\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lower limit of a range of units for the tier\n",
                  "minimum" : 0,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The upper limit of a range of units for the tier\n",
                  "example" : null
                },
                "quantity_used" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The number of units purchased in a range.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "quantity_used_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of deductions applied for each line item of this quote.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique id of the line item that this deduction is for.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "discount_amount", "discount_type", "line_item_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applied on the line items of this quote.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique reference id of the line item for which the tax is applicable\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "tax_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The rate of tax used to calculate tax amount\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period end of the tax rate for the line item.\n",
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates the service period start of the tax rate for the line item.\n",
                  "example" : null
                },
                "prorated_taxable_amount" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "description" : "Indicates the prorated line item amount in cents.\n",
                  "maximum" : 1000000000,
                  "minimum" : -1000000000,
                  "example" : null
                },
                "is_partial_tax_applied" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                  "example" : null
                },
                "is_non_compliance_tax" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                  "example" : null
                },
                "taxable_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The tax amount\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_juris_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The type of tax jurisdiction\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* state -\n\nThe tax jurisdiction is a state\n\\* county -\n\nThe tax jurisdiction is a county\n\\* country -\n\nThe tax jurisdiction is a country\n\\* city -\n\nThe tax jurisdiction is a city\n\\* special -\n\nSpecial tax jurisdiction.\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* other -\n\nJurisdictions other than the ones listed above.\n",
                  "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                  "example" : null
                },
                "tax_juris_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax jurisdiction\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_juris_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The tax jurisdiction code\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_amount_in_local_currency" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "local_currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                  "maxLength" : 3,
                  "example" : null
                }
              },
              "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of all deductions applied to the quote.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description for this deduction.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>",
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a <code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "coupon_set_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "amount", "entity_type" ],
              "example" : null
            },
            "example" : null
          },
          "taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applicable for this quote.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied. E.g. GST.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The tax amount.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description of the tax item.\n",
                  "maxLength" : 250,
                  "example" : null
                }
              },
              "required" : [ "amount", "name" ],
              "example" : null
            },
            "example" : null
          },
          "shipping_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Shipping address for the quote.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The state/province name.\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "billing_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Billing address for the quote.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the billing contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "State or Province\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "customer_id", "date", "deleted", "id", "operation_type", "price_type", "status", "sub_total", "valid_till" ],
        "example" : null
      },
      "QuoteCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "quote" : {
                "$ref" : "#/components/schemas/Quote"
              }
            },
            "required" : [ "quote" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "QuoteDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "quote" : {
                "$ref" : "#/components/schemas/Quote"
              }
            },
            "required" : [ "quote" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "QuoteEntitlement" : {
        "type" : "object",
        "properties" : {
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan_price", "addon_price", "charge_price", "charge" ],
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "is_enabled" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "example" : null
          },
          "start_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "end_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "entity_id", "entity_type", "feature_id", "is_enabled", "modified_at", "value" ],
        "example" : null
      },
      "QuoteLineGroup" : {
        "type" : "object",
        "description" : "The line items of a quote are grouped by charge event. Each of these groups is called a quote line group. A quote would have at least one quote line group. Let's look at an example.\n\nConsider the following:\n\n* A monthly plan A for $500 per month.\n* A non-recurring addon B for $50. Now consider a quote that is created for 3 billing cycles of the plan with the addon applied immediately. This quote would be associated with a list of quote line groups: one for each charge event as shown below:\n\n#### Quote Line group 1\n\n**Plan A:**\n$500\n\n**Addon B:**\n$50\n\n**Total:**\n$550\n\n#### Quote Line group 2\n\n**Plan A:**\n$500\n\n**Total:**\n$500\n\n#### Quote Line group 3\n\n**Plan A:**\n$500\n\n**Total:**\n$500\n",
        "properties" : {
          "version" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "deprecated" : false,
            "description" : "Version of the quote line group.\n",
            "example" : null
          },
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies a quote line group.\n",
            "maxLength" : 40,
            "example" : null
          },
          "sub_total" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Subtotal in cents.\n",
            "minimum" : 0,
            "example" : null
          },
          "total" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Total in cents.\n",
            "minimum" : 0,
            "example" : null
          },
          "credits_applied" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Credits (in cents) applied to this quote line group.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_paid" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Existing outstanding payments (in cents) if any, applied to this quote line group.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount_due" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 0,
            "deprecated" : false,
            "description" : "Amount due in cents\n",
            "minimum" : 0,
            "example" : null
          },
          "charge_event" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Describes the time in the subscription lifecycle when the charge is to occur.\n\\* subscription_creation -\n\nSubscription Creation\n\\* trial_start -\n\nTrial Start\n\\* subscription_renewal -\n\nSubscription Renewal\n\\* subscription_change -\n\nSubscription Change\n\\* subscription_cancel -\n\nSubscription Cancel\n\\* immediate -\n\nImmediate\n",
            "enum" : [ "immediate", "subscription_creation", "trial_start", "subscription_change", "subscription_renewal", "subscription_cancel" ],
            "example" : null
          },
          "billing_cycle_number" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "The serial number of the billing cycle of which the quote line group is a part.\n",
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of items in this quote line group.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies a line_item\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the subscription this line item belongs to.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Start date of this line item.\n",
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "End date of this line item.\n",
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Unit amount of the line item.\n",
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 1,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\"><a href=\"/docs/api/invoices/invoice-object#line_items_quantity\">Quantity of the recurring item</a>\nwhich is represented by this line item. For\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>\nline items, this value is updated from\n<a href=\"/docs/api/usages\">usages</a>\nonce when the invoice is generated as\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>\nand finally when the invoice is\n<a href=\"/docs/api/invoices/close-a-pending-invoice\">closed</a>\n.</p>",
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of this line item. Typically equals to unit amount x quantity\n",
                  "example" : null
                },
                "pricing_model" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The\n[pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models)\nfor this item price.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n",
                  "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
                  "example" : null
                },
                "is_taxed" : {
                  "type" : "boolean",
                  "default" : false,
                  "deprecated" : false,
                  "description" : "Specifies whether this line item is taxed or not\n",
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The tax amount charged for this item\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "Rate of tax used to calculate tax for this lineitem\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the unit amount of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity of this line_item. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the amount for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\n, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total discounts for this line\n",
                  "minimum" : 0,
                  "example" : null
                },
                "item_level_discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Line Item-level discounts for this line.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "metered" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "is_percentage_pricing" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "example" : null
                },
                "reference_line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Invoice Reference Line Item ID\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this line item.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "entity_description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Detailed description about this item.\n",
                  "maxLength" : 500,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the modelled entity this line item is based on.\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n",
                  "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
                  "example" : null
                },
                "tax_exempt_reason" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The reason due to which the line item price/amount is exempted from tax.</p>\n* reverse_charge - <p class=\"mb-2\">If the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only</p>\n* tax_not_configured - <p class=\"mb-2\">If tax is not enabled for the site</p>\n* high_value_physical_goods - <p class=\"mb-2\">If physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied</p>\n* product_exempt - <p class=\"mb-2\">If the Plan or Addon is marked as Tax exempt</p>\n* zero_rated - <p class=\"mb-2\">If the rate of tax is 0% and no Sales/ GST tax is collectable for that line item</p>\n* customer_exempt - <p class=\"mb-2\">If the Customer is marked as Tax exempt</p>\n* region_non_taxable - <p class=\"mb-2\">If the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction</p>\n* export - <p class=\"mb-2\">You are not registered for tax in the customer&#x27;s region. This is also the reason code when both <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_address</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">shipping_address</code>\nhave not been provided for the customer and subscription respectively</p>",
                  "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "customer_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique identifier for the customer this line item belongs to\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "date_from", "date_to", "description", "entity_type", "is_taxed", "unit_amount" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of discount(s) applied for line items in this quote line group.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique id of the line item that this deduction is for.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to a line item of the invoice. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case.</p>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a\n<code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "discount_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "discount_amount", "discount_type", "line_item_id" ],
              "example" : null
            },
            "example" : null
          },
          "line_item_taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applied on line items in this quote line group.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique reference id of the line item for which the tax is applicable\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "tax_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "tax_rate" : {
                  "type" : "number",
                  "format" : "double",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "The rate of tax used to calculate tax amount\n",
                  "maximum" : 100,
                  "minimum" : 0,
                  "example" : null
                },
                "date_to" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "date_from" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "prorated_taxable_amount" : {
                  "type" : "number",
                  "format" : "decimal",
                  "deprecated" : false,
                  "maximum" : 1000000000,
                  "minimum" : -1000000000,
                  "example" : null
                },
                "is_partial_tax_applied" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates if tax is applied only on a portion of the line item amount.\n",
                  "example" : null
                },
                "is_non_compliance_tax" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "Indicates the non-compliance tax that should not be reported to the jurisdiction.\n",
                  "example" : null
                },
                "taxable_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Indicates the actual portion of the line item amount that is taxable.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The tax amount\n",
                  "minimum" : 0,
                  "example" : null
                },
                "tax_juris_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The type of tax jurisdiction\n\\* unincorporated -\n\nCombined tax of state and county.\n\\* federal -\n\nThe tax jurisdiction is a federal\n\\* state -\n\nThe tax jurisdiction is a state\n\\* county -\n\nThe tax jurisdiction is a county\n\\* country -\n\nThe tax jurisdiction is a country\n\\* city -\n\nThe tax jurisdiction is a city\n\\* other -\n\nJurisdictions other than the ones listed above.\n\\* special -\n\nSpecial tax jurisdiction.\n",
                  "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
                  "example" : null
                },
                "tax_juris_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax jurisdiction\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_juris_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The tax jurisdiction code\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "tax_amount_in_local_currency" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "local_currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.\n",
                  "maxLength" : 3,
                  "example" : null
                }
              },
              "required" : [ "tax_amount", "tax_name", "tax_rate", "taxable_amount" ],
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of discounts applied to this quote line group.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount deducted. The format of this value depends on the [kind of currency](/docs/api/currencies)\n.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description for this deduction.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "line_item_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unique id of the line item that this deduction is for. Is required when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code>\n.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount to which it is applied.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe coupon id is passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* prorated_credits - <p class=\"mb-2\">The deduction is due to a legacy adjustment credit applied to the invoice. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nin this case. The legacy credits feature is superseded by <code><a href=\"/docs/api/invoices/invoice-object#adjustment_credit_notes\">adjustment_credit_notes</a></code>\n.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction is due to a coupon applied to line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis passed as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to a line item of the invoice. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* promotional_credits - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/promotional_credits\">promotional credit</a>\napplied to the invoice.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction is due to a <a href=\"/docs/api/discounts\">discount</a>\napplied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>.\nThe discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nis available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "promotional_credits", "prorated_credits", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "discount_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of discount that is applied to the line item. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discounts[entity_type]</code>\nis one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_coupon</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_discount</code>\n, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">document_level_coupon</code></p>\n* percentage - <p class=\"mb-2\">when percentage is applied as discount</p>\n* fixed_amount - <p class=\"mb-2\">when amount is applied as discount</p>",
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction is due to a\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">coupon</code>\nor a\n<code><a href=\"/docs/api/discounts\">discount</a></code>\n, then this is the\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the coupon or discount.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "coupon_set_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/coupon_codes/coupon_code-object#code\">coupon code</a>\n, if applicable, used to provide the discount. The <a href=\"/docs/api/coupons/coupon-object#id\">coupon.id</a>\nis available in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code>\n.</p>",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "amount", "entity_type" ],
              "example" : null
            },
            "example" : null
          },
          "taxes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of taxes applied to this quote line group.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the tax applied. E.g. GST.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The tax amount.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description of the tax item.\n",
                  "maxLength" : 250,
                  "example" : null
                }
              },
              "required" : [ "amount", "name" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "sub_total" ],
        "example" : null
      },
      "QuoteUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "quote" : {
                "$ref" : "#/components/schemas/Quote"
              }
            },
            "required" : [ "quote" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "QuotedCharge" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When the\n<code><a href=\"/docs/api/quotes/quote-object#operation_type\">operation_type</a></code>\nof a\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quote</code>\nis\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">onetime_invoice</code>\n, the\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_charges</code>\nresource contains the details of the invoice that is eventually created once the quote is invoiced. It is always returned along with the quote.</p></div>",
        "properties" : {
          "charges" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Provides details of all the ad-hoc charges\n[added to the quote](/docs/api/quotes/create-a-quote-for-charge-and-charge-items)\n.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The amount to be charged. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the amount for the one-time charge. The value is in [major units of the currency](/docs/api/getting-started).\nApplicable only when multi-decimal pricing is enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "description" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Description for this charge\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "service_period_in_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the service period of the charge in days. When the quote is converted, the <code><a href=\"/docs/api/invoices/invoice-object#line_items\">invoice.line_item.date_from</a></code>\nis set to current date/time and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.date_to</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">service_period_in_days</code>\nahead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">date_from</code>\n.</p>",
                  "maximum" : 4000,
                  "minimum" : 1,
                  "example" : null
                },
                "avalara_sale_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Indicates the type of sale carried out. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n\\* retail -\n\nTransaction is a sale to an end user\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n",
                  "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
                  "example" : null
                },
                "avalara_transaction_type" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Indicates the type of product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                  "example" : null
                },
                "avalara_service_type" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Indicates the type of service for the product to be taxed. Values for this field can be taken from Avalara. This is applicable only if you use [Chargebee's AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html)\nintegration.\n",
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "invoice_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Details of individual [item prices](/docs/api/item_prices)\nthat are part of this subscription\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique ID for your system to identify the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Item price quantity\n",
                  "minimum" : 1,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price or per-unit-price of the item price. By default, it is the <a href=\"/docs/api/item_prices/item_price-object#price\">value set</a>\nfor the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.\nThis is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nThe value depends on the <a href=\"/docs/api/getting-started\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "service_period_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Defines service period of the item in days from the day of charge.\n",
                  "maximum" : 730,
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "item_price_id" ],
              "example" : null
            },
            "example" : null
          },
          "item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The pricing details of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nwhich have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\n<a href=\"https://www.chargebee.com/docs/plans.html#pricing-models\" target=\"_blank\">Learn more</a>\nabout pricing models.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The id of the item price to which this tier belongs.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lowest value in the quantity tier.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The highest value in the quantity tier.\n",
                  "example" : null
                },
                "price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "null\n",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 1,
                  "example" : null
                },
                "index" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index number of the subscription to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>\n(inclusive) for each subscription that is to be created.</p>",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "index", "item_price_id", "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "coupons" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of coupons for this charge\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Used to uniquely identify the coupon\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "coupon_id" ],
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of discounts for the charges in this quote.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "invoice_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The name of the discount as it should appear on customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nThis is auto-generated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nof the discount. For example, it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10% off</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10$ off</code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "default" : "percentage",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of discount.\nPossible value are:</p>\n* offer_quantity - <p class=\"mb-2\">A specified number of units of the item price are offered for free. The number of free units is specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\noption is valid only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code>\nand the <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n.</p>\n* percentage - <p class=\"mb-2\">The specified percentage will be given as discount.</p>\n* fixed_amount - <p class=\"mb-2\">The specified amount will be given as discount.</p>",
                  "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                  "example" : null
                },
                "percentage" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "The percentage of the original amount that should be deducted from it.\n",
                  "maximum" : 100,
                  "minimum" : 0.01,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the number of free units provided for the item, without affecting the total quantity sold. This parameter is applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The currency code (<a href=\"https://www.chargebee.com/docs/supported-currencies.html\" target=\"_blank\">ISO 4217 format</a>\n) of the discount. This is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\n.</p>",
                  "maxLength" : 3,
                  "example" : null
                },
                "apply_on" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                  "enum" : [ "invoice_amount", "specific_item_price" ],
                  "example" : null
                },
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maxLength" : 100,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when this discount is created.\n",
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>",
                  "maxLength" : 100,
                  "example" : null
                },
                "index" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index number of the subscription to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>\n(inclusive) for each subscription that is to be created.</p>",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "apply_on", "coupon_id", "created_at", "id", "index", "type" ],
              "example" : null
            },
            "example" : null
          },
          "coupon_applicability_mappings" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "applicable_item_price_ids" : {
                  "type" : "array",
                  "deprecated" : false,
                  "items" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          }
        },
        "example" : null
      },
      "QuotedDeltaRamp" : {
        "type" : "object",
        "properties" : {
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_level_discount_per_billing_cycle_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          }
        },
        "example" : null
      },
      "QuotedRamp" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">When a <code><a href=\"/docs/api/quotes\">quote</a></code> is created, it generates the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_ramps</code> resource. This captures most of the details of the <a href=\"/docs/api/ramps\">ramps</a> that would eventually be created once the quote is invoiced. This resource is returned along with the quote for most of the associated operations.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only when Chargebee CPQ and <a href=\"/docs/api/ramps\">Subscription Ramps</a> are enabled. To request access, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a>.</p></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Provides details of the individual line items in the subscription. If the subscription includes ramps, this array contains line items from all ramps.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier of the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of item. There must be one and only one item of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nin this list.</p>\n* charge - <p class=\"mb-2\">Charge</p>\n* addon - <p class=\"mb-2\">Addon</p>\n* plan - <p class=\"mb-2\">Plan</p>",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The quantity of the item purchased\n",
                  "minimum" : 1,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The total amount for the item as determined from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tiers</code>\nas applicable. The value depends on the <a href=\"/docs/api/quoted_ramps\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the total amount for the item, in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "billing_period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The interval between consecutive billing cycles for the subscription item. The interval is measured in the units defined by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_period_unit</code>\n.</p>",
                  "minimum" : 1,
                  "example" : null
                },
                "billing_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of measurement used to define the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_period</code>\nfor the subscription item.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "free_quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\nof the plan-item as <a href=\"/docs/api/item_prices\">specified</a>\nfor the item price.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "free_quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity_in_decimal</code>\nas set for the item price. Returned for quantity-based item prices when <a href=\"/docs/api/getting-started\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "billing_cycles" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "service_period_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The service period of the item in days from the day of charge.\n",
                  "maximum" : 730,
                  "minimum" : 1,
                  "example" : null
                },
                "charge_on_event" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                  "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                  "example" : null
                },
                "charge_once" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                  "example" : null
                },
                "charge_on_option" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                  "enum" : [ "immediately", "on_event" ],
                  "example" : null
                },
                "start_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the start date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>",
                  "example" : null
                },
                "end_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the end date for the item price in the subscription. The period of the item price, determined by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code>, specifies the <a href=\"/docs/api/quoted_ramps\">ramp</a> it belongs to.</p>",
                  "example" : null
                },
                "ramp_tier_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/ramps\">ramp</a> to which the item price belongs. This index is used to map <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier[i]</code> values to the correct ramp, as the target <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> of an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tier</code> may be part of multiple ramps.</p>",
                  "maxLength" : 105,
                  "example" : null
                },
                "discount_per_billing_cycle" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the discount amount applied to a line item per billing cycle. This includes both item-level and invoice-level discounts.\n<strong class=\"font-semibold\">Example:</strong> Consider a monthly quote that includes a plan, an addon, a $50 discount on the plan, and an additional $100 invoice-level discount. In this case, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_per_billing_cycle</code> for the plan would be ($50 + $100 ÷ 2) = $100.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "discount_per_billing_cycle_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the discount amount applied to a line item per billing cycle, in decimal format. The value is expressed in the major currency units. This attribute is available only when <a href=\"/docs/api/currencies\">Multi-Decimal Pricing</a> is enabled.\n<strong class=\"font-semibold\">See also:</strong><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount_per_billing_cycle</code>.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "item_level_discount_per_billing_cycle" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the item-level discount amount applied to a line item per billing cycle. This does not include invoice-level discounts.\n<strong class=\"font-semibold\">Example:</strong> Consider a monthly quote that includes a plan, an addon, a $50 discount on the plan, and an additional $100 invoice-level discount. In this case, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount_per_billing_cycle</code> for the plan would be $50.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "item_level_discount_per_billing_cycle_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the item-level discount amount applied to a line item per billing cycle, in decimal format. The value is expressed in the major currency units. This attribute is available only when <a href=\"/docs/api/currencies\">Multi-Decimal Pricing</a> is enabled.\n<strong class=\"font-semibold\">See also:</strong><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_level_discount_per_billing_cycle</code>.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "amount_per_billing_cycle" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the amount for this line item before discounts.\n**Example:**Consider a monthly quote that includes a $500 plan, an addon, a $50 discount on the plan, and an additional $100 invoice-level discount. In this case, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_per_billing_cycle</code> for the plan would be $500.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_per_billing_cycle_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the amount for this line item before discounts, in decimal format. The value is expressed in the major currency units. This attribute is available only when <a href=\"/docs/api/currencies\">Multi-Decimal Pricing</a> is enabled.\n<strong class=\"font-semibold\">See also:</strong><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount_per_billing_cycle</code>.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "net_amount_per_billing_cycle" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the amount for this line item after discounts.\n<strong class=\"font-semibold\">Example:</strong> Consider a monthly quote that includes a $500 plan, an addon, a $50 discount on the plan, and an additional $100 invoice-level discount. In this case, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">net_amount_per_billing_cycle</code> for the plan would be ($500 - ($50 + $100 ÷ 2)) = $400.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "net_amount_per_billing_cycle_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the amount for this line item after discounts, in decimal format. The value is expressed in the major currency units. This attribute is available only when <a href=\"/docs/api/currencies\">Multi-Decimal Pricing</a> is enabled.\n<strong class=\"font-semibold\">See also:</strong><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">net_amount_per_billing_cycle</code>.</p>",
                  "maxLength" : 39,
                  "example" : null
                }
              },
              "required" : [ "item_price_id", "item_type" ],
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of discounts for this quoted subscription.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "invoice_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The name of the discount as it should appear on customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nThis is auto-generated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nof the discount. For example, it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10% off</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10$ off</code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "default" : "percentage",
                  "deprecated" : false,
                  "description" : "The type of discount.\nPossible value are:\n\\* fixed_amount -\n\nThe specified amount will be given as discount.\n\\* percentage -\n\nThe specified percentage will be given as discount.\n",
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "percentage" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "The percentage of the original amount that should be deducted from it.\n",
                  "maximum" : 100,
                  "minimum" : 0.01,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "duration_type" : {
                  "type" : "string",
                  "default" : "forever",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                  "enum" : [ "one_time", "forever", "limited_period" ],
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of deduction and the amount it applies to.</p>\n* document_level_coupon - <p class=\"mb-2\">The deduction comes from a <a href=\"/docs/api/coupons\">coupon</a> applied at the invoice level. The coupon id is available in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> attribute.</p>\n* item_level_coupon - <p class=\"mb-2\">The deduction comes from a <a href=\"/docs/api/coupons\">coupon</a> applied to a specific line item. The coupon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> is available in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> attribute.</p>\n* item_level_discount - <p class=\"mb-2\">The deduction comes from a <a href=\"/docs/api/discounts\">discount</a> applied to a specific line item. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> is available in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> attribute.</p>\n* document_level_discount - <p class=\"mb-2\">The deduction comes from a <a href=\"/docs/api/discounts\">discount</a> applied at the invoice level. The discount <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> is available in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code> attribute.</p>",
                  "enum" : [ "item_level_coupon", "document_level_coupon", "item_level_discount", "document_level_discount" ],
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When the deduction results from a <a href=\"/docs/api/coupons\">coupon</a> or a <a href=\"/docs/api/discounts\">discount</a>, this attribute contains the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of that coupon or discount.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "included_in_mrr" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "example" : null
                },
                "apply_on" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                  "enum" : [ "invoice_amount", "specific_item_price" ],
                  "example" : null
                },
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maxLength" : 100,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when this discount is created.\n",
                  "example" : null
                },
                "updated_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "start_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the start date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>",
                  "example" : null
                },
                "end_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the end date for the discount. The period of the discount, as specified by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_date</code> determines the <a href=\"/docs/api/quoted_ramps\">ramp(s)</a> it will be part of.</p>",
                  "example" : null
                }
              },
              "required" : [ "apply_on", "created_at", "duration_type", "entity_type", "id", "included_in_mrr", "type" ],
              "example" : null
            },
            "example" : null
          },
          "item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of item tier.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The id of the item price to which this tier belongs.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lowest value in the quantity tier.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The highest value in the quantity tier.\n",
                  "example" : null
                },
                "price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "ramp_tier_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index or identifier of the <a href=\"/docs/api/ramps\">ramp</a> to which this tier information belongs. This is a value from the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items[i].ramp_tier_id</code>. Since an item price can be part of multiple subscriptions ramps, this group ID specifies the ramp to which this tier information belongs.</p>",
                  "maxLength" : 105,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20, consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package. For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "item_price_id", "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "coupon_applicability_mappings" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "applicable_item_price_ids" : {
                  "type" : "array",
                  "deprecated" : false,
                  "items" : {
                    "type" : "string",
                    "deprecated" : false,
                    "maxLength" : 100,
                    "example" : null
                  },
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "QuotedSubscription" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-quotes\"></span><p class=\"mb-2\">When a <code><a href=\"/docs/api/quotes\">quote</a></code> is created, it generates the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quoted_subscription</code> resource. This captures most of the details of the subscription that would eventually be created once the quote is invoiced. This resource is returned along with the quote for most of the associated operations.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique and immutable identifier for the subscription. If not provided, it is autogenerated.\n",
            "maxLength" : 50,
            "example" : null
          },
          "billing_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "minimum" : 1,
            "example" : null
          },
          "billing_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "null\n",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "start_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">operation_type</code>\nof the quote is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_subscription_for_customer</code>.\nFor subscriptions in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\n, this is the date/time when the subscription is set to start. The quote can be converted on a date/time after this date. This is called backdating the subscription creation. Backdating is performed when the subscription has already been provisioned but the conversion action has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Backdating is enabled for subscription creation operations.</li>\n<li class=\"text-base leading-relaxed\">The current day of the month does not exceed the limit set in Chargebee for backdating such operations. This day is typically the day of the month by which the accounting for the previous month must be closed.</li>\n<li class=\"text-base leading-relaxed\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the subscription&#x27;s plan is 2 months and today is 14th April, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">start_date</code> cannot be earlier than 14th February.</li>\n</ul>",
            "example" : null
          },
          "trial_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "End of the trial period for the subscription. Presence of this value for 'future' subscription implies the subscription will go into 'in_trial' state when it starts.\n",
            "example" : null
          },
          "remaining_billing_cycles" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "* When the subscription is not on a contract term: this value is the number of billing cycles remaining after the current cycle, at the end of which, the subscription cancels.\n* When the subscription is on a [contract term](/docs/api/contract_terms): this value is the number of billing cycles remaining in the contract term after the current billing cycle.\n",
            "minimum" : 0,
            "example" : null
          },
          "po_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Purchase order number for this subscription.\n",
            "maxLength" : 100,
            "example" : null
          },
          "auto_collection" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "null\n",
            "enum" : [ "on", "off" ],
            "example" : null
          },
          "plan_quantity_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the quantity of the plan purchased. Returned for quantity-based plans when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 33,
            "example" : null
          },
          "plan_unit_price_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 39,
            "example" : null
          },
          "changes_scheduled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">operation_type</code>\nof the quote is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_subscription</code>.\nWhen <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_option</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_date</code>\n, then this is the date/time at which the subscription change is scheduled to occur. The quote can be converted on a date/time after this date. This is called backdating the subscription change and performed when the subscription change has already been provisioned but the conversion action has been delayed. Backdating is allowed only when the following prerequisites are met:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Backdating must be enabled for subscription change operations.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Only the following changes can be backdated:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Changes in the recurring items or their prices.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Addition of non-recurring items.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The current day of the month does not exceed the limit set in Chargebee for backdating subscription change. This limit is the day of the month by which the accounting for the previous month must be closed.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The date is on or after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_start</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The date is on or after the last date/time any of the following changes were made:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Changes in the recurring items or their prices.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Addition of non-recurring items.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The date is not more than duration X into the past where X is the billing period of the plan. For example, if the period of the subscription&#x27;s plan is 2 months and today is 14th April, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code> cannot be earlier than 14th February.</p>\n</li>\n</ul>",
            "example" : null
          },
          "change_option" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">operation_type</code>\nof the quote is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">change_subscription</code>.\nWhen the quote is converted, this attribute determines the date/time as of when the subscription change is to be carried out.</p>\n* end_of_term - <p class=\"mb-2\">The change is scheduled to be carried out at the end of the billing cycle of the subscription.</p>\n* specific_date - <p class=\"mb-2\">The change is carried out as of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\n.</p>\n* immediately - <p class=\"mb-2\">The change is carried out immediately upon quote conversion.</p>",
            "enum" : [ "end_of_term", "specific_date", "immediately" ],
            "example" : null
          },
          "free_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The period of time by which the first term of the subscription is extended free of charge. The value is expressed in the time unit specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code>. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code> means 3 free months are added to the first term.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">operation_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_subscription_for_customer</code>.</li>\n<li class=\"text-base leading-relaxed\">Applicable only when Chargebee CPQ is enabled. To request access, <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">contact Chargebee Support</a></li>\n</ul></div>",
            "minimum" : 1,
            "example" : null
          },
          "free_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The time unit for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Constraints</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">operation_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_subscription_for_customer</code>.</li>\n<li class=\"text-base leading-relaxed\">Applicable only when Chargebee CPQ is enabled. To request access, <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">contact Chargebee Support</a></li>\n</ul></div>\n* week - <p class=\"mb-2\">Charge based on week(s)</p>\n* month - <p class=\"mb-2\">Charge based on month(s)</p>\n* day - <p class=\"mb-2\">Charge based on day(s)</p>\n* year - <p class=\"mb-2\">Charge based on year(s)</p>",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "contract_term_billing_cycle_on_renewal" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          },
          "coupons" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of coupons for this subscription\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Used to uniquely identify the coupon\n",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "required" : [ "coupon_id" ],
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of discounts for this quoted subscription.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "invoice_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The name of the discount as it should appear on customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nThis is auto-generated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nof the discount. For example, it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10% off</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10$ off</code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "default" : "percentage",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of discount.\nPossible value are:</p>\n* fixed_amount - <p class=\"mb-2\">The specified amount will be given as discount.</p>\n* offer_quantity - <p class=\"mb-2\">A specified number of units of the item price are offered for free. The number of free units is specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\noption is valid only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code>\nand the <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n.</p>\n* percentage - <p class=\"mb-2\">The specified percentage will be given as discount.</p>",
                  "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                  "example" : null
                },
                "percentage" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "The percentage of the original amount that should be deducted from it.\n",
                  "maximum" : 100,
                  "minimum" : 0.01,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the number of free units provided for the item, without affecting the total quantity sold. This parameter is applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The currency code (<a href=\"https://www.chargebee.com/docs/supported-currencies.html\" target=\"_blank\">ISO 4217 format</a>\n) of the discount. This is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\n.</p>",
                  "maxLength" : 3,
                  "example" : null
                },
                "duration_type" : {
                  "type" : "string",
                  "default" : "forever",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                  "enum" : [ "one_time", "forever", "limited_period" ],
                  "example" : null
                },
                "period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "included_in_mrr" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "example" : null
                },
                "apply_on" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                  "enum" : [ "invoice_amount", "specific_item_price" ],
                  "example" : null
                },
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maxLength" : 100,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when this discount is created.\n",
                  "example" : null
                },
                "apply_till" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies till when the limited period discount is applicable. This attribute will be sent in the response only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\nduration type discount.</p>",
                  "example" : null
                },
                "applied_count" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Specifies the number of times the discount has been applied.\n",
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>",
                  "maxLength" : 100,
                  "example" : null
                },
                "index" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index number of the subscription to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>\n(inclusive) for each subscription that is to be created.</p>",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "apply_on", "coupon_id", "created_at", "duration_type", "id", "included_in_mrr", "index", "type" ],
              "example" : null
            },
            "example" : null
          },
          "subscription_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Details of individual [item prices](/docs/api/item_prices)\nthat are part of this subscription\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier of the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of item. There must be one and only one item of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nin this list.</p>\n* plan - <p class=\"mb-2\">Plan</p>\n* charge - <p class=\"mb-2\">Charge</p>\n* addon - <p class=\"mb-2\">Addon</p>",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The quantity of the item purchased\n",
                  "minimum" : 1,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The total amount for the item as determined from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tiers</code>\nas applicable. The value depends on the <a href=\"/docs/api/quoted_subscriptions\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "current_term_start" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The beginning of the item's current billing period.  \n**Note**\nApplicable only when multi-frequency billing is enabled.  \n**Private Beta**\nMulti-frequency billing is in private beta. Please reach out to the Chargebee [support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support) to enable this feature.\n",
                  "example" : null
                },
                "current_term_end" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The end of the item's current billing period. Chargebee renews the item immediately following this date.  \n**Note**\nApplicable only when multi-frequency billing is enabled.  \n**Private Beta**\nMulti-frequency billing is in private beta. Please reach out to the Chargebee [support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support) to enable this feature.\n",
                  "example" : null
                },
                "next_billing_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The date or time at when the next billing for the item is scheduled to occur. This typically occurs immediately after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only when multi-frequency billing is enabled.</p></div>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Private Beta</strong>\nMulti-frequency billing is in private beta. Please reach out to the Chargebee <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">support</a> to enable this feature.</p></div>",
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the total amount for the item, in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "billing_period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The interval between consecutive billing cycles for the subscription item. The interval is measured in the units defined by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_period_unit</code>\n.</p>",
                  "minimum" : 1,
                  "example" : null
                },
                "billing_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of measurement used to define the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_period</code>\nfor the subscription item.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "free_quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\nof the plan-item as <a href=\"/docs/api/item_prices\">specified</a>\nfor the item price.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "free_quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity_in_decimal</code>\nas set for the item price. Returned for quantity-based item prices when <a href=\"/docs/api/getting-started\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "trial_end" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                  "example" : null
                },
                "billing_cycles" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "service_period_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The service period of the item in days from the day of charge.\n",
                  "maximum" : 730,
                  "minimum" : 1,
                  "example" : null
                },
                "charge_on_event" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                  "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                  "example" : null
                },
                "charge_once" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                  "example" : null
                },
                "charge_on_option" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                  "enum" : [ "immediately", "on_event" ],
                  "example" : null
                },
                "proration_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "null\n",
                  "enum" : [ "full_term", "partial_term", "none" ],
                  "example" : null
                },
                "usage_accumulation_reset_frequency" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "null\n",
                  "enum" : [ "never", "subscription_billing_frequency" ],
                  "example" : null
                }
              },
              "required" : [ "item_price_id", "item_type" ],
              "example" : null
            },
            "example" : null
          },
          "item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of item tier.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The id of the item price to which this tier belongs.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lowest value in the quantity tier.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The highest value in the quantity tier.\n",
                  "example" : null
                },
                "price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/getting-started\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "null\n",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 1,
                  "example" : null
                },
                "index" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index number of the subscription to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>\n(inclusive) for each subscription that is to be created.</p>",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "index", "item_price_id", "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "quoted_contract_term" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "The details of the contract term to be created when this quote is invoiced.\n",
            "properties" : {
              "contract_start" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The start date of the contract term\n",
                "example" : null
              },
              "contract_end" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The end date of the contract term\n",
                "example" : null
              },
              "billing_cycle" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "The number of billing cycles of the subscription that the contract term is for.\n",
                "minimum" : 0,
                "example" : null
              },
              "action_at_term_end" : {
                "type" : "string",
                "default" : "renew",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>",
                "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                "example" : null
              },
              "total_contract_value" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The sum of the <a href=\"/docs/api/invoices/invoice-object#total\">totals</a>\nof all the invoices raised as part of the contract term. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms, this is a predicted value. The value depends on the <a href=\"/docs/api/quoted_subscriptions\">type of currency</a>.\nIf the subscription was <a href=\"/docs/api/quoted_subscriptions\">imported</a>\nwith the contract term, then this value includes the value passed for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised</code>\n.</p>",
                "minimum" : 0,
                "example" : null
              },
              "cancellation_cutoff_period" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                "example" : null
              }
            },
            "required" : [ "action_at_term_end", "billing_cycle", "contract_end", "contract_start", "total_contract_value" ],
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "Ramp" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ramp\"></span><p class=\"mb-2\">A <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ramp</code> resource, or subscription ramp, represents a planned change to a <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code></a> that occurs at a future date. Use this resource to define and schedule subscription modifications, such as updating pricing, altering quantity, or transitioning to a different plan, without immediately applying them.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Upcoming ramps limit</strong>: A subscription can have a maximum of 12 upcoming ramps at any given time, excluding deleted ramps. Upcoming ramps are ramps with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <a href=\"/docs/api/ramps/ramp-object#status\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheduled</code></a>.</li>\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Total ramps limit</strong>: A subscription can have a maximum of 100 ramps at any given time, excluding deleted ramps.</li>\n</ul></div><div id=\"auto-draft\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#auto-draft-content\" aria-expanded=\"false\" aria-controls=\"auto-draft-content\"><h4>Auto-draft conditions</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"auto-draft-content\"><p class=\"mb-2\">When you create or update a ramp, Chargebee automatically moves any existing ramps scheduled after that ramp to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code> status if either of the following conditions is met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The new or updated ramp changes the subscription <a href=\"subscriptions#subscription_current_term_end\" class=\"text-blue-600 hover:text-blue-800 underline\">term end date</a>.</li>\n<li class=\"text-base leading-relaxed\">The new or updated ramp changes the subscription billing frequency. That is, either of the following <a href=\"subscriptions#subscription_items\" class=\"text-blue-600 hover:text-blue-800 underline\">attributes</a> is changed:\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[i].billing_period</code></li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[i].billing_period_unit</code></li>\n<li class=\"text-base leading-relaxed\">where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">i</code> is the index where <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[i].item_type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>.</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">The new or updated ramp introduces an <a href=\"item_prices#item_price_item_type\" class=\"text-blue-600 hover:text-blue-800 underline\">addon</a> that is not <a href=\"attached_items\" class=\"text-blue-600 hover:text-blue-800 underline\">applicable</a> to the plan in one or more of the subsequent ramps.</li>\n</ul></div></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique and immutable identifier for the ramp.\n",
            "maxLength" : 50,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A brief summary of the pricing changes applied with this ramp.\n",
            "maxLength" : 250,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The ID of the subscription for which this ramp was created.\n",
            "maxLength" : 50,
            "example" : null
          },
          "effective_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Specifies the time when the changes to the subscription will be applied by executing the ramp.\n",
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The execution status of the ramp</p>\n* succeeded - <p class=\"mb-2\">The ramp completed successfully.</p>\n* scheduled - <p class=\"mb-2\">The ramp has been created and scheduled for execution.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nExcluding deleted ramps, a subscription can have a maximum of 12 ramps in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">scheduled</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>.</p></div>\n* draft - <p class=\"mb-2\">The ramp is moved to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">draft</code>\nstatus when the associated subscription is updated. The reason for the draft status can be explained in the <a href=\"/docs/api/ramps/ramp-object#status_transition_reason\" target=\"_blank\">status_transition_reason</a></p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nRamps in draft state will not be executed.</p></div>\n* failed - <p class=\"mb-2\">The ramp did not complete because of an error.</p>",
            "enum" : [ "scheduled", "succeeded", "failed", "draft" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this resource was created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this resource was last updated.\n",
            "example" : null
          },
          "items_to_remove" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of [item prices](/docs/api/item_prices)\nremoved from the subscription through this ramp.\n",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 100,
              "example" : null
            },
            "example" : null
          },
          "coupons_to_remove" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of [coupons](/docs/api/coupons)\nremoved from the subscription through this ramp.\n",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 100,
              "example" : null
            },
            "example" : null
          },
          "discounts_to_remove" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of [discounts](/docs/api/discounts)\nremoved from the subscription through this ramp.\n",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 100,
              "example" : null
            },
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates if the ramp is marked as deleted. To retrieve deleted ramps, use the <a href=\"/docs/api/ramps/list-ramps\">List subscription ramps</a>\nendpoint with <code><a href=\"/docs/api/ramps/list-ramps\">include_deleted</a></code>\nset to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n.</p>",
            "example" : null
          },
          "items_to_add" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Details about the [item prices](/docs/api/item_prices)\nadded to the subscription through this ramp.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier of the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of item. There must be one and only one item of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nin this list.</p>\n* charge - <p class=\"mb-2\">Charge</p>\n* plan - <p class=\"mb-2\">Plan</p>\n* addon - <p class=\"mb-2\">Addon</p>",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The quantity of the item purchased\n",
                  "minimum" : 1,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The total amount for the item as determined from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tiers</code>\nas applicable. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the total amount for the item, in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "free_quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The quantity of the item price that is available for free. Only the quantity more than this will be charged for the subscription. This is the same as <code><a href=\"/docs/api/item_prices/item_price-object#free_quantity\">item_price.free_quantity</a></code>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "free_quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity_in_decimal</code>\nas set for the item price. Returned for quantity-based item prices when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "billing_cycles" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "service_period_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The service period of the item in days from the day of charge.\n",
                  "maximum" : 730,
                  "minimum" : 1,
                  "example" : null
                },
                "metered_quantity" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "This field represents the number of quantities recorded against this subscription item in the current term\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "charge_once" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                  "example" : null
                },
                "charge_on_option" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>",
                  "enum" : [ "immediately", "on_event" ],
                  "example" : null
                },
                "charge_on_event" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>",
                  "enum" : [ "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                  "example" : null
                }
              },
              "required" : [ "item_price_id", "item_type" ],
              "example" : null
            },
            "example" : null
          },
          "items_to_update" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Details about the [item prices](/docs/api/item_prices)\nupdated in the subscription through this ramp.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier of the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of item. There must be one and only one item of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nin this list.</p>\n* charge - <p class=\"mb-2\">Charge</p>\n* plan - <p class=\"mb-2\">Plan</p>\n* addon - <p class=\"mb-2\">Addon</p>",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The quantity of the item purchased\n",
                  "minimum" : 1,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The total amount for the item as determined from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tiers</code>\nas applicable. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the total amount for the item, in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "free_quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The quantity of the item price that is available for free. Only the quantity more than this will be charged for the subscription. This is the same as <code><a href=\"/docs/api/item_prices/item_price-object#free_quantity\">item_price.free_quantity</a></code>\n..</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "free_quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity_in_decimal</code>\nas set for the item price. Returned for quantity-based item prices when <a href=\"/docs/api/getting-started\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "billing_cycles" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "service_period_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The service period of the item in days from the day of charge.\n",
                  "maximum" : 730,
                  "minimum" : 1,
                  "example" : null
                },
                "metered_quantity" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "This field represents the number of quantities recorded against this subscription item in the current term\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "charge_once" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                  "example" : null
                },
                "charge_on_option" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>",
                  "enum" : [ "immediately", "on_event" ],
                  "example" : null
                },
                "charge_on_event" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>",
                  "enum" : [ "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                  "example" : null
                }
              },
              "required" : [ "item_price_id", "item_type" ],
              "example" : null
            },
            "example" : null
          },
          "coupons_to_add" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Details about the [coupons](/docs/api/coupons)\nadded to the subscription through this ramp.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Unique ID of the coupon to be added.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "apply_till" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The date till when the coupon can be applied. Applicable for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n<a href=\"/docs/api/coupons\">coupons</a>\nonly.</p>",
                  "example" : null
                }
              },
              "required" : [ "coupon_id" ],
              "example" : null
            },
            "example" : null
          },
          "discounts_to_add" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Details about the [discounts](/docs/api/discounts)\nadded to the subscription through this ramp.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "invoice_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The name of the discount as it should appear on customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nThis is auto-generated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nof the discount. For example, it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10% off</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10$ off</code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "default" : "percentage",
                  "deprecated" : false,
                  "description" : "The type of discount.\nPossible value are:\n\\* fixed_amount -\n\nThe specified amount will be given as discount.\n\\* percentage -\n\nThe specified percentage will be given as discount.\n",
                  "enum" : [ "fixed_amount", "percentage" ],
                  "example" : null
                },
                "percentage" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The percentage of the original amount that should be deducted from it. Only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis percentage.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maximum" : 100,
                  "minimum" : 0.01,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "duration_type" : {
                  "type" : "string",
                  "default" : "forever",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                  "enum" : [ "one_time", "forever", "limited_period" ],
                  "example" : null
                },
                "period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "included_in_mrr" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "example" : null
                },
                "apply_on" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                  "enum" : [ "invoice_amount", "specific_item_price" ],
                  "example" : null
                },
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maxLength" : 100,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when this discount is created.\n",
                  "example" : null
                }
              },
              "required" : [ "apply_on", "created_at", "duration_type", "id", "included_in_mrr", "type" ],
              "example" : null
            },
            "example" : null
          },
          "item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nAllowed only when both of these conditions are met:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/price-override.html\" target=\"_blank\">Price overriding</a> is enabled for the site.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> of the item price is either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.</li>\n</ul></div>\n<p class=\"mb-2\">Overrides the <code><a href=\"/docs/api/subscriptions/subscription-object#item_tiers\">item_tiers</a></code> for specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_prices</code> of the subscription.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The id of the item price to which this tier belongs.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lowest value in the quantity tier.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The highest value in the quantity tier.\n",
                  "example" : null
                },
                "price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                },
                "index" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Not used.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "index", "item_price_id", "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "contract_term" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "An object that specifies the contract term details.\n",
            "properties" : {
              "cancellation_cutoff_period" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The number of days before <code><a href=\"/docs/api/contract_terms/contract_term-object#contract_end\">contract_end</a></code>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                "example" : null
              },
              "renewal_billing_cycles" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code><a href=\"/docs/api/contract_terms/contract_term-object#billing_cycle\">billing_cycles</a></code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/contract-terms#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">site configuration</a>\n.</p>",
                "example" : null
              },
              "action_at_term_end" : {
                "type" : "string",
                "default" : "renew",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renewal_billing_cycles</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renewal_billing_cycles</code>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>",
                "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                "example" : null
              }
            },
            "required" : [ "action_at_term_end" ],
            "example" : null
          },
          "status_transition_reason" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Detailed reason for the status transition of a ramp to  <code><a href=\"/docs/api/ramps/ramp-object#status\" target=\"_blank\">draft</a></code>\nand  <code><a href=\"/docs/api/ramps/ramp-object#status\" target=\"_blank\">failed</a></code>\nstatus.</p>",
            "properties" : {
              "code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Unique code of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status_transition_reason</code>\n.</p>",
                "maxLength" : 100,
                "example" : null
              },
              "message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">A message to explain the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status_transition_reason</code>\n.</p>",
                "maxLength" : 250,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "deleted", "effective_from", "id", "status", "subscription_id" ],
        "example" : null
      },
      "ReasonCode" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "subscription_cancellation", "create_credit_note", "refund_credit_note", "void_invoice", "order_resend" ],
            "example" : null
          },
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "enabled", "disabled" ],
            "example" : null
          }
        },
        "required" : [ "code", "id", "status", "type" ],
        "example" : null
      },
      "RecordPurchaseFailedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "recorded_purchase" : {
                "$ref" : "#/components/schemas/RecordedPurchase"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              }
            },
            "required" : [ "customer", "recorded_purchase" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "RecordedPurchase" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-omni\"></span><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Record purchase operations are <strong class=\"font-semibold\">asynchronous</strong>, as they involve validating the purchase with the respective source, like Apple and Google.</li>\n<li class=\"text-base leading-relaxed\">This resource is applicable for Apple App Store and Google Play Store.</li>\n</ul></div><p class=\"mb-2\">The recorded purchase resource represents a background job of syncing in-app purchases made through external storefronts like Apple and Google with Chargebee. The <code><a href=\"/docs/api/recorded_purchases/recorded_purchase-object#status\">status</a></code> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_process</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">completed</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>) attribute represents the current status of the background job.</p><h3>Record Apple and Google In-App Purchases and Retrieve Associated Omni-Subscription and Transaction from Chargebee</h3><p class=\"mb-2\">You can record in-app subscription purchases made on the Apple App Store in Chargebee using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction[id]</code> or using <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">receipt</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">product[id]</code> received after a successful purchase.</p><p class=\"mb-2\">To record the purchase and retrieve subscription details, follow these steps:</p><ol class=\"list-decimal list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Use the <a href=\"/docs/api/recorded_purchases/record-a-purchase\">Record a Purchase API</a> to record a subscription purchase made in in Apple App Store or Google Play Store.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Record an Apple App Store purchase using transaction id with the <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#app_id\">app_id</a></code>, <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#customer_id\">customer[id]</a></code> and <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#apple_app_store_transaction_id\">transaction[id]</a></code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Record an Apple App Store purchase using receipt with the <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#app_id\">app_id</a></code>, <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#customer_id\">customer[id]</a></code>, <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#apple_app_store_receipt\">receipt</a></code> and <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#apple_app_store_product_id\">product[id]</a></code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Record a Google Play Store one time order or subscription purchase with the <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#app_id\">app_id</a></code>, <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#customer_id\">customer[id]</a></code> and <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#google_play_store_order_id\">order_id</a></code> (Recommended).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Record a Google Play Store subscription purchase with the <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#app_id\">app_id</a></code>, <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#customer_id\">customer[id]</a></code> and <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#google_play_store_purchase_token\">purchase_token</a></code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Record a Google Play Store one time order purchase with the <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#app_id\">app_id</a></code>, <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#customer_id\">customer[id]</a></code>, <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#google_play_store_purchase_token\">purchase_token</a></code> and <code><a href=\"/docs/api/recorded_purchases/record-a-purchase#google_play_store_product_id\">product_id</a></code>.</p>\n</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">The API response will include a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code> object containing the <code><a href=\"/docs/api/recorded_purchases/recorded_purchase-object#status\">status</a></code> of the purchase recording job.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Once the purchase is successfully recorded, the <code><a href=\"/docs/api/recorded_purchases/recorded_purchase-object#status\">status</a></code> attribute of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code> object updates from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_process</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">completed</code>. At this point, Chargebee creates an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code> resource and triggers an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription_created</code> webhook event, which contains the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_subscription</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction</code> objects.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">In addition to using Webhooks (push-based), you can retrieve details for a recorded purchase by using the <a href=\"/docs/api/recorded_purchases/recorded_purchase-object#id\">recorded purchase resource&#x27;s ID</a>, which is returned when you record the purchase.</p>\n</li>\n</ol></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique ID generated by Chargebee for the recorded purchase.\n",
            "maxLength" : 40,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/customers/customer-object#id\">customer</a>\nobject that is associated with this purchase. If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>\nis not present in Chargebee when the <code><a href=\"/docs/api/recorded_purchases/record-a-purchase\">record_a_purchase</a></code>\nAPI request is made, the API will return an error. Use <a href=\"/docs/api/customers/create-a-customer\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">create_a_customer</code></a>\nAPI to create a customer.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "app_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">App Identifier in Chargebee. This is the handle created by Chargebee for your app. To get the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">app_id</code>:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Apple</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-app-store#create-an-omnichannel-subscription-for-in-app-purchases\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n<li class=\"text-base leading-relaxed\">For <strong class=\"font-semibold\">Google</strong>, follow <a href=\"https://www.chargebee.com/docs/billing/2.0/mobile-subscriptions/omnichannel-play-store#connect-google-app-to-chargebee-to-generate-unique-app-id-and-notifications-url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">these steps</a>.</li>\n</ul>",
            "maxLength" : 100,
            "example" : null
          },
          "source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The source where the purchase is originally made and managed.\n\\* google_play_store -\n\nWhen source of the application is Google Play Store\n\\* apple_app_store -\n\nWhen source of the application is Apple App Store\n",
            "enum" : [ "apple_app_store", "google_play_store" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Current status of the recorded purchase operation</p>\n* completed - <p class=\"mb-2\">When the purchase recording job status is complete. You will receive the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_omnichannel_subscriptions</code>\nobject.</p>\n* ignored - <p class=\"mb-2\">When the purchase recording job is initiated for an omnichannel subscription that already exists in Chargebee.</p>\n* failed - <p class=\"mb-2\">When the purchase recording job is failed. In this state you will <strong class=\"font-semibold\">not</strong>\nreceive the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_omnichannel_subscriptions</code>\nobject. Check the <code><a href=\"/docs/api/recorded_purchases/recorded_purchase-object#error_detail\">error_detail</a></code>\nattribute to understand the reason for failure.</p>\n* in_process - <p class=\"mb-2\">When the purchase recording job is in progress. In this state you will <strong class=\"font-semibold\">not</strong>\nreceive the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">omnichannel_transaction_id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_omnichannel_subscriptions</code>\nobject.</p>",
            "enum" : [ "in_process", "completed", "failed", "ignored" ],
            "example" : null
          },
          "omnichannel_transaction_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/omnichannel_transactions/omnichannel_transaction-object#id\">omni transaction</a>\nobject associated with the purchase.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates timestamp when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">recorded_purchase</code>\nresource is created in Chargebee.</p>",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource.</p>",
            "example" : null
          },
          "linked_omnichannel_subscriptions" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of omni subscriptions created in response for this purchase. Applicable only for subscription purchases.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "omnichannel_subscription_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/omnichannel_subscriptions/omnichannel_subscription-object#id\">omni subscription</a>\nobject associated with this purchase.</p>",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "linked_omnichannel_one_time_orders" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of omnichannel one time orders created in response for this purchase. Applicable only for one time order purchases.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "omnichannel_one_time_order_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/omnichannel_one_time_orders/omnichannel_one_time_order-object#id\">omni one time order</a>\nobject associated with this purchase.</p>",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "error_detail" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Applicable only for recorded purchases where the job status is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">failed</code>.\nIt provides more details about the failure.</p>",
            "properties" : {
              "error_message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">A descriptive information about the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">error_detail</code>\n.</p>",
                "maxLength" : 500,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "app_id", "created_at", "customer_id", "id", "source", "status" ],
        "example" : null
      },
      "ReferenceCount" : {
        "type" : "object",
        "description" : "This resource returns the number of items.\n",
        "properties" : {
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code></p>\n* charge - <p class=\"mb-2\">Charge</p>\n* plan - <p class=\"mb-2\">Plan</p>\n* addon - <p class=\"mb-2\">Addon</p>",
            "enum" : [ "plan", "addon", "charge", "plan_price", "addon_price" ],
            "example" : null
          },
          "count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Number of items.\n",
            "example" : null
          }
        },
        "example" : null
      },
      "ReferralSystem" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "referral_candy", "referral_saasquatch", "friendbuy" ],
        "example" : null
      },
      "ReferrerRewardType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "none", "referral_direct_reward", "custom_promotional_credit", "custom_revenue_percent_based" ],
        "example" : null
      },
      "RefundInitiatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              }
            },
            "required" : [ "card", "credit_note", "customer", "invoice", "subscription", "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "RefundableCreditsHandling" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "no_action", "schedule_refund" ],
        "example" : null
      },
      "ReportBy" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "customer", "invoice", "product", "subscription" ],
        "example" : null
      },
      "ResourceMigration" : {
        "type" : "object",
        "description" : "Resource Migration is used for finding the status of customer migration between Chargebee sites.\n",
        "properties" : {
          "from_site" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Domain name to which the item is moved.\n",
            "maxLength" : 50,
            "minLength" : 4,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of the entity this record is stored for\n\\* customer -\n\nEntity that represents a customer\n",
            "enum" : [ "customer" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Handle of the customer in the current site.\n",
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "failed",
            "deprecated" : false,
            "description" : "Status of the copy customer process.\n\\* failed -\n\nFailed\n\\* succeeded -\n\nSucceeded\n\\* scheduled -\n\nScheduled\n",
            "enum" : [ "scheduled", "failed", "succeeded" ],
            "example" : null
          },
          "errors" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Filled only if the copy operation gets failed\n",
            "maxLength" : 65000,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Time the log is created\n",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Time the log is updated\n",
            "example" : null
          }
        },
        "required" : [ "created_at", "entity_id", "entity_type", "from_site", "status", "updated_at" ],
        "example" : null
      },
      "ResponseDocumentType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "application_response" ],
        "example" : null
      },
      "ResponseStatus" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "accepted", "rejected", "message_acknowledgement", "in_process", "under_query", "conditionally_accepted", "paid" ],
        "example" : null
      },
      "ResumeOption" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "immediately", "specific_date" ],
        "example" : null
      },
      "RetryEngine" : {
        "type" : "string",
        "default" : "chargebee",
        "deprecated" : false,
        "enum" : [ "chargebee", "flexpay", "successplus" ],
        "example" : null
      },
      "Role" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "primary", "backup", "none" ],
        "example" : null
      },
      "Rule" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "namespace" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "rule_name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "rule_order" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "active", "disabled" ],
            "example" : null
          },
          "conditions" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "outcome" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "created_at", "deleted", "id", "modified_at", "namespace", "rule_name", "status" ],
        "example" : null
      },
      "RuleCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "rule" : {
                "$ref" : "#/components/schemas/Rule"
              }
            },
            "required" : [ "rule" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "RuleDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "rule" : {
                "$ref" : "#/components/schemas/Rule"
              }
            },
            "required" : [ "rule" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "RuleUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "rule" : {
                "$ref" : "#/components/schemas/Rule"
              }
            },
            "required" : [ "rule" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Ruleset" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 500,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "active" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "execute_mode" : {
            "type" : "string",
            "default" : "execute_all",
            "deprecated" : false,
            "enum" : [ "stop_on_first_true", "stop_on_first_false", "execute_all", "execute_all_true" ],
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "created_by" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "rules" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "active", "created_at", "created_by", "execute_mode", "id", "name", "updated_at" ],
        "example" : null
      },
      "RulesetRule" : {
        "type" : "object",
        "properties" : {
          "rule_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "priority" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "priority", "rule_id" ],
        "example" : null
      },
      "SalesOrder" : {
        "type" : "object",
        "description" : "Sales orders represent the contractual agreement and commitment for services between a seller and a buyer. They act as a seamless interface connecting any sales system (such as CPQ, CRM, or Customer Portal) with Chargebee Billing. The sales order captures the following essential components\n\n* Order Line Items including discounts and ramps\n* Billing and payment configuration\n* Contract terms and conditions\n* Customer information including billing and shipping contacts\n* Meta data\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "External identifier of the sales order.\n",
            "maxLength" : 50,
            "example" : null
          },
          "version" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "deprecated" : false,
            "description" : "Version of the sales order.\n",
            "example" : null
          },
          "renewed_from_order_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the original sales order from which this order was renewed. This field is used to track renewal orders and link them to their previous sales transactions.\n",
            "maxLength" : 50,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates the timestamp at which this sales order was last updated.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating sales order created.\n",
            "example" : null
          },
          "po_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Buyer's purchase order reference number.\n",
            "maxLength" : 100,
            "example" : null
          },
          "meta_data" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A set of key-value pairs stored as additional information for the subscription. [Learn more](/docs/api/sales_orders)\n.\n",
            "maxLength" : 65000,
            "example" : null
          },
          "quote_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Primary quote id for which the order was placed.\n",
            "maxLength" : 100,
            "example" : null
          },
          "effective_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Effective start date of the order signifies when the contract is signed and becomes legally binding.\n",
            "example" : null
          },
          "end_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date when the order is considered completed, cancelled, or no longer valid.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the\n[business entity](/docs/api/getting-started)\nof this sales order.\n",
            "maxLength" : 50,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the customer to which this sales order belongs.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) of the sales order.\n",
            "maxLength" : 3,
            "example" : null
          },
          "subscription_ids" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The unique identifiers of the [subscriptions](/docs/api/subscriptions)\nthat are bundled as part of this sales order.\n",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "maxLength" : 50,
              "example" : null
            },
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "active",
            "deprecated" : false,
            "description" : "Status of the sales order.\n\\* completed -\n\ncompleted\n\\* active -\n\nactive\n",
            "enum" : [ "active", "completed" ],
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          },
          "line_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Line items of this sales order\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "External identifier of the sales order line item.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "association_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A reference of line item to associate with other entities like line item tiers.\n",
                  "maxLength" : 105,
                  "example" : null
                },
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "ID of the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the item.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "quantity" : {
                  "type" : "string",
                  "default" : "1",
                  "deprecated" : false,
                  "description" : "Quantity of the item.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Unit price of the item.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "billable_unit_price" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "billable_quantity" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "billable_amount" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "billing_period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Defines billing period for the subscription item\n",
                  "minimum" : 1,
                  "example" : null
                },
                "billing_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Defines billing period unit in association with the billing period.\n\\* week -\n\nA period of 7 days.\n\\* year -\n\nA period of 1 calendar year.\n\\* day -\n\nA period of 24 hours.\n\\* month -\n\nA period of 1 calendar month.\n",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "service_period_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The service period of the item in days from the day of charge.\n",
                  "maximum" : 730,
                  "minimum" : 1,
                  "example" : null
                },
                "charge_on_event" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                  "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                  "example" : null
                },
                "charge_once" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                  "example" : null
                },
                "billing_cycles" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Number of billing cycles for which this line item remains valid.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "billing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Billing type of the item.\n\\* one_time -\n\nItem gets billed once\n\\* event_based -\n\nItem gets billed on specific events\n\\* recurring -\n\nItem gets billed at regular intervals\n",
                  "enum" : [ "recurring", "one_time", "event_based" ],
                  "example" : null
                },
                "start_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Start date of the line item.\n",
                  "example" : null
                },
                "end_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "End date of the line item.\n",
                  "example" : null
                },
                "trial_end" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The date/time when the trial period of the item ends.\n",
                  "example" : null
                },
                "free_period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "minimum" : 1,
                  "example" : null
                },
                "free_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "null\n",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                }
              },
              "required" : [ "billing_type", "id", "item_price_id", "quantity", "start_date", "unit_price" ],
              "example" : null
            },
            "example" : null
          },
          "billing_addresses" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Billing address for a customer.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "first_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The first name of the billing contact.\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "last_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The last name of the billing contact.\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "format" : "email",
                  "deprecated" : false,
                  "description" : "The email address.\n",
                  "maxLength" : 70,
                  "example" : null
                },
                "company" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The company name.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "phone" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The phone number.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "line1" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 1\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line2" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 2\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line3" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 3\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "city" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the city.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "state_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "state" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "State or Province\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "country" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                  "maxLength" : 50,
                  "example" : null
                },
                "zip" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                  "maxLength" : 20,
                  "example" : null
                },
                "validation_status" : {
                  "type" : "string",
                  "default" : "not_validated",
                  "deprecated" : false,
                  "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n\\* valid -\n\nAddress was validated successfully.\n",
                  "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of discounts for this subscription\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An immutable code for the discount. It is always auto-generated.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "invoice_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The name of the discount as it should appear on customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nThis is auto-generated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nof the discount. For example, it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10% off</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10$ off</code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "default" : "percentage",
                  "deprecated" : false,
                  "description" : "The type of discount.\nPossible value are:\n\\* fixed_amount -\n\nThe specified amount will be given as discount.\n\\* percentage -\n\nThe specified percentage will be given as discount.\n",
                  "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                  "example" : null
                },
                "apply_on" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                  "enum" : [ "invoice_amount", "specific_item_price" ],
                  "example" : null
                },
                "duration_type" : {
                  "type" : "string",
                  "default" : "forever",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                  "enum" : [ "one_time", "forever", "limited_period" ],
                  "example" : null
                },
                "percentage" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The percentage of the original amount that should be deducted from it. Only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis percentage.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maximum" : 100,
                  "minimum" : 0.01,
                  "example" : null
                },
                "amount" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The value of the discount. <a href=\"/docs/api/currencies\">The format of this value</a>\ndepends on the kind of currency. This is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maxLength" : 39,
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "ID/code of the coupon to be applied.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maxLength" : 100,
                  "example" : null
                },
                "start_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Start date of the discount.\n",
                  "example" : null
                },
                "end_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "End date of the discount.\n",
                  "example" : null
                }
              },
              "required" : [ "apply_on", "duration_type", "id", "start_date", "type" ],
              "example" : null
            },
            "example" : null
          },
          "shipping_addresses" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Shipping address for the subscription.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "first_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The first name of the contact.\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "last_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The last name of the contact.\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "email" : {
                  "type" : "string",
                  "format" : "email",
                  "deprecated" : false,
                  "description" : "The email address.\n",
                  "maxLength" : 70,
                  "example" : null
                },
                "company" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The company name.\n",
                  "maxLength" : 250,
                  "example" : null
                },
                "phone" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The phone number.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "line1" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 1\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line2" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 2\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "line3" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Address line 3\n",
                  "maxLength" : 150,
                  "example" : null
                },
                "city" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The name of the city.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "state_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                  "maxLength" : 50,
                  "example" : null
                },
                "state" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The state/province name.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "country" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                  "maxLength" : 50,
                  "example" : null
                },
                "zip" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address)\n.\n",
                  "maxLength" : 20,
                  "example" : null
                },
                "validation_status" : {
                  "type" : "string",
                  "default" : "not_validated",
                  "deprecated" : false,
                  "description" : "The address verification status.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* valid -\n\nAddress was validated successfully.\n\\* invalid -\n\nAddress is invalid.\n\\* not_validated -\n\nAddress is not yet validated.\n",
                  "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          },
          "line_item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The pricing details of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items</code>\nwhich have <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\n<a href=\"https://www.chargebee.com/docs/plans.html#pricing-models\" target=\"_blank\">Learn more</a>\nabout pricing models.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "starting_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The lowest value in the quantity tier.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The highest value in the quantity tier.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "price" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                },
                "line_item_association_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Association id of line item tho whom this line item tiers belongs.\n",
                  "maxLength" : 105,
                  "example" : null
                }
              },
              "required" : [ "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "payment_configuration" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Payment configuration of this sales order\n",
            "properties" : {
              "auto_collection" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Auto collection status.\n\\* off -\n\noff\n\\* on -\n\non\n",
                "enum" : [ "on", "off" ],
                "example" : null
              },
              "payment_source_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Identifier of the payment source for which this transaction is made\n",
                "maxLength" : 50,
                "example" : null
              },
              "payment_intent_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Identifier for PaymentIntent generated by Chargebee.js. Applicable only when you are using Chargebee.js for completing the 3DS flow. The PaymentIntent should be in 'authorized' state while passing it here. You need not pass other PaymentIntent parameters if this is passed.\n",
                "maxLength" : 150,
                "example" : null
              },
              "offline_payment_method" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The preferred offline payment method for the sales order.\n\\* cash -\n\nCash\n\\* mx_automated_bank_transfer -\n\nMX Automated Bank Transfer\n\\* us_automated_bank_transfer -\n\nUS Automated Bank Transfer\n\\* no_preference -\n\nNo Preference\n\\* eu_automated_bank_transfer -\n\nEU Automated Bank Transfer\n\\* jp_automated_bank_transfer -\n\nJP Automated Bank Transfer\n\\* check -\n\nCheck\n\\* custom -\n\nCustom\n\\* uk_automated_bank_transfer -\n\nUK Automated Bank Transfer\n\\* ach_credit -\n\nACH Credit\n\\* sepa_credit -\n\nSEPA Credit\n\\* bank_transfer -\n\nBank Transfer\n\\* boleto -\n\nBoleto\n",
                "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
                "example" : null
              }
            },
            "example" : null
          },
          "billing_configuration" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Configurations controlling billing behavior and invoice generation workflows.\n",
            "properties" : {
              "create_pending_invoices" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Indicates if pending invoices should be created.\n",
                "example" : null
              },
              "invoice_immediately" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Indicates whether the invoices for this order are generated with a pending status.This attribute is set to true automatically when the subscription has item prices that belong to metered items.\n",
                "example" : null
              },
              "first_invoice_pending" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "Indicates if you want to bill the usages from the previous billing cycle. This creates a pending invoice immediately on subscription creation.\n",
                "example" : null
              },
              "invoice_usages" : {
                "type" : "boolean",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Setting this attribute to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> would invoice the overages for the metered item during subscription changes</p>",
                "example" : null
              },
              "net_term_days" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "Net terms in days.\n",
                "example" : null
              },
              "invoice_date" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The document date displayed on the invoice PDF. The default value is the current date. Provide this value to backdate the invoice. Backdating an invoice is done for reasons such as booking revenue for a previous date or when the subscription is effective as of a past date.\n",
                "example" : null
              },
              "next_renewal_date" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "example" : null
              },
              "billing_cycles_to_invoice" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "The number of billing cycles to be invoiced in advance for this order. If not specified, the invoice will be generated for the first billing cycle by default.\n",
                "example" : null
              },
              "billing_alignment_mode" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Override the billing alignment mode for Calendar Billing. Only applicable when using Calendar Billing. The default value is that which has been configured for the site.\n\\* delayed -\n\nSubscription period will be aligned with the configured billing date at the next renewal.\n\\* immediate -\n\nSubscription period will be aligned with the configured billing date immediately, with credits or charges raised accordingly..\n",
                "enum" : [ "immediate", "delayed" ],
                "example" : null
              }
            },
            "example" : null
          },
          "renewal_term" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Renewal term for this sales order.\n",
            "properties" : {
              "end_of_term_action" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The action at end of contract term</p>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/sales_orders/sales_order-object#renewal_term_renewal_billing_cycles\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renewal_billing_cycles</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">end_of_term_action</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>",
                "enum" : [ "renew", "cancel", "evergreen" ],
                "example" : null
              },
              "cancellation_cutoff_period" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "The number of days before contract_end, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.\n",
                "example" : null
              },
              "renewal_billing_cycles" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "Specifies the number of billing cycles for which the contract will be renewed.\n",
                "example" : null
              }
            },
            "required" : [ "end_of_term_action" ],
            "example" : null
          },
          "credit_lines" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "amount" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "string",
                  "default" : "0.00",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "quantity" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 33,
                  "example" : null
                },
                "line_item_association_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 105,
                  "example" : null
                }
              },
              "required" : [ "amount", "unit_price" ],
              "example" : null
            },
            "example" : null
          },
          "entitlement_overrides" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "feature_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "entity_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "entity_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "null\n",
                  "enum" : [ "item_price", "subscription" ],
                  "example" : null
                },
                "value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 39,
                  "example" : null
                },
                "is_enabled" : {
                  "type" : "boolean",
                  "default" : true,
                  "deprecated" : false,
                  "example" : null
                },
                "start_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                },
                "end_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "example" : null
                }
              },
              "required" : [ "entity_id", "entity_type", "feature_id", "id", "is_enabled", "start_date" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "currency_code", "customer_id", "deleted", "effective_date", "id", "status", "subscription_id", "version" ],
        "example" : null
      },
      "SalesOrderCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "sales_order" : {
                "$ref" : "#/components/schemas/SalesOrder"
              }
            },
            "required" : [ "sales_order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SalesOrderUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "sales_order" : {
                "$ref" : "#/components/schemas/SalesOrder"
              }
            },
            "required" : [ "sales_order" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "ScheduleType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "immediate", "specific_dates", "fixed_intervals" ],
        "example" : null
      },
      "SiteMigrationDetail" : {
        "type" : "object",
        "description" : "Site Migration details is used for finding the records that are moved in and moved out from one Chargebee site to another.\n",
        "properties" : {
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Id of the entity in this site.\n",
            "maxLength" : 100,
            "example" : null
          },
          "other_site_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Site name to which the record is moved in/out.\n",
            "maxLength" : 50,
            "minLength" : 4,
            "example" : null
          },
          "entity_id_at_other_site" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Entity Id of the record in the other site.\n",
            "maxLength" : 100,
            "example" : null
          },
          "migrated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Date in which the record is copied\n",
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Entity Type of the record\n\\* order -\n\nEntity that represents an order\n\\* customer -\n\nEntity that represents a customer\n\\* invoice -\n\nInvoice description\n\\* subscription -\n\nEntity that represents a subscription of a customer\n\\* transaction -\n\nEntity that represents a transaction.\n\\* credit_note -\n\nCredit note description\n",
            "enum" : [ "customer", "subscription", "invoice", "credit_note", "transaction", "order" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Status of the migration\n\\* moving_out -\n\nMoving out from one cb site to another\n\\* moved_in -\n\nMoved in from another cb site\n\\* moved_out -\n\nMoved out from one cb site to another\n",
            "enum" : [ "moved_in", "moved_out", "moving_out" ],
            "example" : null
          }
        },
        "required" : [ "entity_id", "entity_id_at_other_site", "entity_type", "migrated_at", "other_site_name", "status" ],
        "example" : null
      },
      "SiteOwner" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Represents a site owner in Chargebee.\nEach site owner includes a unique <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and required <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code>, and can optionally include <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_id</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">updated_at</code>.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier of the site owner. Maximum length is 40 characters. This field is required.\n",
            "maxLength" : 40,
            "example" : null
          },
          "email" : {
            "type" : "string",
            "format" : "email",
            "deprecated" : false,
            "description" : "Email address of the site owner in valid email format. Maximum length is 70 characters. This field is required.\n",
            "maxLength" : 70,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the site owner. Maximum length is 50 characters.\n",
            "maxLength" : 50,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "ID of the associated customer. Maximum length is 50 characters.\n",
            "maxLength" : 50,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Unix timestamp when this site owner was last updated.\n",
            "example" : null
          }
        },
        "required" : [ "email", "id" ],
        "example" : null
      },
      "SitePcMetaRecord" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 40,
            "example" : null
          },
          "event" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "site_upgrade", "site_downgrade" ],
            "example" : null
          },
          "pc_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "pc1", "pc2" ],
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "event", "id", "occurred_at", "pc_type" ],
        "example" : null
      },
      "Source" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "admin_console", "api", "bulk_operation", "scheduled_job", "hosted_page", "portal", "system", "none", "js_api", "migration", "external_service" ],
        "example" : null
      },
      "Subscription" : {
        "type" : "object",
        "additionalProperties" : true,
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">A Chargebee subscription connects a customer record to products/services. It describes what the customer has signed up for and how often they&#x27;re charged for it. The essential components of a subscription are:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">A <a href=\"/docs/api/item_prices\">plan-item price</a>.</li>\n<li class=\"text-base leading-relaxed\">Any addon- and charge-item prices applied to the subscription.</li>\n<li class=\"text-base leading-relaxed\">Any <a href=\"/docs/api/coupons\">coupons</a> applied.</li>\n<li class=\"text-base leading-relaxed\">Any <a href=\"/docs/api/discounts\">discounts</a> applied.</li>\n</ul><p class=\"mb-2\">The charges in a subscription are billed via invoices.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nThe maximum number of subscriptions for any given <a href=\"/docs/api/customers\">customer</a>\n(<code><a href=\"/docs/api/subscriptions/subscription-object#status\">active</a></code>\nor not) is 900.</p></div><div id=\"subscription-billing-frequencies\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#subscription-billing-frequencies-content\" aria-expanded=\"false\" aria-controls=\"subscription-billing-frequencies-content\"><h4>Subscription billing frequencies</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"subscription-billing-frequencies-content\"><p class=\"mb-2\">Chargebee offers two billing frequency options for subscriptions:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Plan-based billing</strong> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">default</code>): Subscriptions are billed based on the billing period defined for the item price of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>. <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/subscriptions#plan-based-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">Multi-frequency billing</strong>: Subscriptions are billed according to the billing period of each recurring item price within the subscription. <a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/multi-frequency-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a>.</p>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong></p><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/multi-frequency-billing#limitations\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Limitations</a> of Multi-frequency billing.</p></div>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Private Beta</strong></p><p class=\"mb-2\">Multi-frequency billing is in private beta. Please reach out to the Chargebee <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">support</a> to enable this feature.</p></div>\n</li>\n</ul><p class=\"mb-2\">The selection of the billing frequency preference is configured at the site level.</p></div></div><div id=\"item-price-compatibility\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#item-price-compatibility-content\" aria-expanded=\"false\" aria-controls=\"item-price-compatibility-content\"><h4>Item price compatibility in a subscription</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"item-price-compatibility-content\"><p class=\"mb-2\">When creating or updating a subscription, one of the item prices specified under subscription_items must be a plan-item price. The remaining must be compatible addon- or charge-item prices. An item price is compatible with a plan-item price if their currencies are the same. Additionally, an addon-item price is compatible with a plan-item price only if their billing frequencies meet the following conditions:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><thead><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> for plan-item price</th><th>Compatible <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> for addon-item price</th><th>Compatible period for addon-item price</th></tr></thead><tbody><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">day</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">day</code></td><td><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the plan-item price should be divisible by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the addon-item price.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong></p><p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the plan-item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code>, then the period of the addon-item price can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>.</p></div></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">week</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">week</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">day</code></td><td><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> (in days) of the plan-item price should be divisible by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the addon-item price.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong>\nIf the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the plan-item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, then the period of the addon-item price can be as follows depending on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">week</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>.</li>\n<li class=\"text-base leading-relaxed\">for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">day</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">14</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">7</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>.</li>\n</ul></div></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code></td><td><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the plan-item price should be divisible by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the addon-item price.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong></p><p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the plan-item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">6</code>, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the addon-item price can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">6</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>.</p></div></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">year</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">year</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code></td><td><p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> (in months) of the plan-item price should be divisible by the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the addon-item price.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong></p><p class=\"mb-2\">If the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the plan-item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, then the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> of the addon-item price can be as follows depending on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">year</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>.</li>\n<li class=\"text-base leading-relaxed\">for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">24</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">12</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">8</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">6</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code>.</li>\n</ul></div></td></tr></tbody></table></div></div></div><div id=\"tax-provider\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#tax-provider-content\" aria-expanded=\"false\" aria-controls=\"tax-provider-content\"><h4>Tax provider fields</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"tax-provider-content\"><p class=\"mb-2\"><strong class=\"font-semibold\">Avalara</strong>: Merchants using <strong class=\"font-semibold\">Avalara Sales Tax</strong> can optionally associate each item price with a locationCode (from their Avalara company locations), so tax can be resolved correctly at the line item level.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><thead><tr><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Field ID</th><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Field Value</th><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">APIs</th></tr></thead><tbody><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">locationCode</code></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Merchant to configure it on Avalara Platform under company locations</td><td colSpan=\"1\" rowspan=\"4\" style=\"text-align:center;vertical-align:top\">APIs having <a href=\"/docs/api/item_prices/item-price-object\" class=\"text-blue-600 hover:text-blue-800 underline\">Item Prices</a> attributes.</td></tr></tbody></table></div><p class=\"mb-2\"><strong class=\"font-semibold\">Anrok</strong>: Canadian customers can have multiple tax registration numbers. We currently support only sharing one tax registration number with Anrok. So we added a new field which can have comma separated multiple tax reg numbers for Anrok. Values configured in the field is passed as it is to Anrok for accurate tax calculation</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><thead><tr><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Field ID</th><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Field Value</th><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">APIs</th></tr></thead><tbody><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">additionalTaxRegistrationNumber</code></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Canadian tax registration numbers in comma separated fashion.</td><td colSpan=\"1\" rowspan=\"4\" style=\"text-align:center;vertical-align:top\">APIs involving customer attributes. Also includes APIs where we are creating new customers. Eg: estimate, subscription, hosted pages.</td></tr></tbody></table></div><p class=\"mb-2\"><strong class=\"font-semibold\">Vertex</strong>: Chargebee shares field IDs and corresponding values with merchants, who then configure them on the Vertex Platform for seamless integration</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nField Id like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customerCode</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customerClass</code>\n, and<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxExempted</code>\nbelong to the customer object.</p><p class=\"mb-2\">Field Id like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productCode</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productClass</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productTaxCode</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productClass</code>\nbelong to the product object.</p></div><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><thead><tr><th colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\">Field ID</th><th colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\">Field Value</th><th colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\">APIs</th></tr></thead><tbody><tr><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productCode</code></td><td colSpan=\"1\" rowspan=\"4\" style=\"vertical-align:top;text-align:center\">Merchant to configure it on Vertex Platform</td><td colSpan=\"1\" rowspan=\"2\" style=\"vertical-align:top;text-align:center\">APIs having <a href=\"/docs/api/item_prices/item-price-object\">Item Prices</a> attributes.</td></tr><tr><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productClass</code></td></tr><tr><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customerCode</code></td><td colSpan=\"1\" rowspan=\"2\" style=\"vertical-align:top;text-align:center\">APIs involving <a href=\"/docs/api/customers/customer-object\">customer</a> attributes. Also includes APIs where we are creating new customers. For example: <a href=\"/docs/api/estimates/estimate-for-creating-a-customer-and-subscription\">estimate</a>, <a href=\"/docs/api/subscriptions\">subscription</a>, <a href=\"/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges\">hosted pages</a>.</td></tr><tr><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customerClass</code></td></tr></tbody></table></div><p class=\"mb-2\"><strong class=\"font-semibold\">Taxamo:</strong> Chargebee shares field IDs and corresponding values with merchants, who then configure them on the Taxamo Platform for seamless integration</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><thead><tr><th colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\">Field Id</th><th colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\">Field Value</th><th colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\">APIs</th></tr></thead><tbody><tr><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productTaxCode</code></td><td colSpan=\"1\" rowspan=\"3\" style=\"vertical-align:top;text-align:center\">Merchant to configure it on Taxamo Platform</td><td colSpan=\"1\" rowspan=\"2\" style=\"vertical-align:top;text-align:center\">APIs having <a href=\"/docs/api/item_prices/item-price-object\" class=\"text-blue-600 hover:text-blue-800 underline\">Item Prices</a> attributes.</td></tr><tr><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">productClass</code></td></tr><tr><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">taxExempted</code></td><td colSpan=\"1\" rowspan=\"1\" style=\"vertical-align:top;text-align:center\">APIs involving <a href=\"/docs/api/customers/customer-object\">customer</a> attributes. Also includes APIs where we are creating new customers. For example: <a href=\"/docs/api/estimates/estimate-for-creating-a-customer-and-subscription\">estimate</a>, <a href=\"/docs/api/subscriptions\">subscription</a>, <a href=\"/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges\">hosted pages</a>.</td></tr></tbody></table></div><p class=\"mb-2\"><strong class=\"font-semibold\">cbtaxes</strong>: With CBTaxes, you can activate India IGST for customers located in Special Economic Zones (SEZ), implement zero-rated tax for SEZ customers, enable India IGST for customers outside of India, and set up zero-rated tax for customers outside of India.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><thead><tr><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Field ID</th><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">Field Value</th><th colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\">APIs</th></tr></thead><tbody><tr><td colSpan=\"1\" rowspan=\"2\" style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">indiaSez</code></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SEZ_IGST_TAX</code></td><td colSpan=\"1\" rowspan=\"4\" style=\"text-align:center;vertical-align:top\">APIs involving <a href=\"/docs/api/customers/customer-object\">customer</a> attributes. Also includes APIs where we are creating new customers. For example: <a href=\"/docs/api/estimates/estimate-for-creating-a-customer-and-subscription\">estimate</a>, <a href=\"/docs/api/subscriptions\">subscription</a>, <a href=\"/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges\">hosted pages</a>.</td></tr><tr><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SEZ_ZERO_RATED_TAX</code></td></tr><tr><td colSpan=\"1\" rowspan=\"2\" style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">indiaExport</code></td><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">EXPORT_IGST_TAX</code></td></tr><tr><td colSpan=\"1\" rowspan=\"1\" style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">EXPORT_ZERO_RATED_TAX</code></td></tr></tbody></table></div><p class=\"mb-2\"><strong class=\"font-semibold\">All</strong>: For tax inclusive tax calculation, For tax exclusive tax calculation. This is currently used for price type overriding at customer level</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table\" border=\"2\"><thead><tr><th style=\"text-align:center;vertical-align:top\">Field ID</th><th style=\"text-align:center;vertical-align:top\">Field Value</th><th style=\"text-align:center;vertical-align:top\">APIs</th></tr></thead><tbody><tr><td style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">priceType</code></td><td style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TAX_INCLUSIVE</code></td><td style=\"text-align:center;vertical-align:top\">APIs involving <a href=\"/docs/api/customers/customer-object\">customer</a> attributes. Also includes APIs where we are creating new customers. For example: <a href=\"/docs/api/estimates/estimate-for-creating-a-customer-and-subscription\">estimate</a>, <a href=\"/docs/api/subscriptions\">subscription</a>, <a href=\"/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges\">hosted pages</a>.</td></tr><tr><td style=\"text-align:center;vertical-align:top\"></td><td style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TAX_EXCLUSIVE</code></td><td style=\"text-align:center;vertical-align:top\"></td></tr><tr><td style=\"text-align:center;vertical-align:top\"></td><td style=\"text-align:center;vertical-align:top\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">SITE_DEFAULT</code> or blank</td><td style=\"text-align:center;vertical-align:top\">Removes price type override, and allows site level configuration to be used for tax calculation.</td></tr></tbody></table></div></div></div><div id=\"ramps-compat-mode\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#ramps-compat-mode-content\" aria-expanded=\"false\" aria-controls=\"ramps-compat-mode-content\"><h4>Ramps API compatibility mode</h4><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"ramps-compat-mode-content\"><p class=\"mb-2\">If you want to schedule changes on a subscription, use the <a href=\"/docs/api/ramps\" class=\"text-blue-600 hover:text-blue-800 underline\">Ramps API</a>.</p><p class=\"mb-2\">If you are currently scheduling changes through the <a href=\"/docs/api/subscriptions/update-subscription-for-items\" class=\"text-blue-600 hover:text-blue-800 underline\">Update subscription API</a>, migrate to the Ramps API. To get started, <a href=\"https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/subscription-ramps&amp;ref=feature\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">request access for Subscription Ramps</a>. Chargebee will enable Ramps compatibility mode for your site. Once enabled, you can test the Ramps API without impacting your existing integrations.</p><p class=\"mb-2\">The following parts of the Billing API have subtle differences in behavior when the Ramps feature is disabled versus when it is enabled with compatibility mode. (Follow the links to learn more.)</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The value of the <a href=\"/docs/api/subscriptions/subscription-object#has_scheduled_changes\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.has_scheduled_changes</code></a> attribute.</li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/subscriptions/update-subscription-for-items#impact-scheduled-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Update subscription</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/hosted_pages/create-checkout-to-update-a-subscription#impact-scheduled-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Create Checkout for updating a subscription</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/subscriptions/remove-scheduled-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Remove scheduled changes</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/subscriptions/retrieve-with-scheduled-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Retrieve with scheduled changes</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/quotes/create-a-quote-for-update-subscription-items\" class=\"text-blue-600 hover:text-blue-800 underline\">Create a quote for updating a subscription</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/quotes/edit-update-subscription-quote-for-items\" class=\"text-blue-600 hover:text-blue-800 underline\">Edit a quote for updating a subscription</a></li>\n<li class=\"text-base leading-relaxed\"><a href=\"/docs/api/portal_sessions#scheduled-subscription-changes\" class=\"text-blue-600 hover:text-blue-800 underline\">Portal sessions</a></li>\n</ul></div></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique identifier of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code>\nresource. You have the option to specify this value when creating a customer. If not specified, Chargebee automatically generates a unique identifier.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nIn the event that the subscription resource is <a href=\"/docs/api/business_entities/transfer-resources-to-another-business-entity\">transferred</a> along with its associated <code><a href=\"/docs/api/customers\">customer</a></code> resource to a different business entity, Chargebee assigns a new random value as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> for the subscription. The original identifier is preserved for the transferred copy of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource. (See also: <a href=\"/docs/api/business_entities\">Mechanics of business entity transfer</a>.)</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) of the subscription\n",
            "maxLength" : 3,
            "example" : null
          },
          "billing_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the length of each billing cycle (or term) of the subscription, expressed in the unit defined by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_period_unit</code>.</p>",
            "minimum" : 1,
            "example" : null
          },
          "billing_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Specifies the unit used to measure the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_period</code>.</p>",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "start_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Applicable only for 'future' subscriptions. The scheduled start time of the subscription.\n",
            "example" : null
          },
          "trial_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "End of the trial period for the subscription. Presence of this value for 'future' subscription implies the subscription will go into 'in_trial' state when it starts.\n",
            "example" : null
          },
          "remaining_billing_cycles" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "* When the subscription is not on a contract term: this value is the number of billing cycles remaining after the current cycle, at the end of which, the subscription cancels.\n* When the subscription is on a [contract term](/docs/api/contract_terms): this value is the number of billing cycles remaining in the contract term after the current billing cycle.\n",
            "minimum" : 0,
            "example" : null
          },
          "po_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Purchase order number for this subscription.\n",
            "maxLength" : 100,
            "example" : null
          },
          "auto_collection" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Defines whether payments need to be collected automatically for this subscription. Overrides customer's auto-collection property.\n\\* on -\n\nWhenever an invoice is created for this subscription, an automatic charge will be attempted on the payment method available.\n\\* off -\n\nAutomatic collection of charges will not be made for this subscription. Use this for offline payments.\n",
            "enum" : [ "on", "off" ],
            "example" : null
          },
          "plan_quantity_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the quantity of the plan purchased. Returned for quantity-based plans when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 33,
            "example" : null
          },
          "plan_unit_price_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 39,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the customer with whom this subscription is associated.\n",
            "maxLength" : 50,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Current state of the subscription</p>\n* future - <p class=\"mb-2\">The subscription is scheduled to start at a future date.</p>\n* non_renewing - <p class=\"mb-2\">The subscription will be canceled at the end of the current term.</p>\n* active - <p class=\"mb-2\">The subscription is active and will be charged for automatically based on the items in it.</p>\n* cancelled - <p class=\"mb-2\">The subscription has been canceled and is no longer in service.</p>\n* transferred - <p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transferred</code>\nstatus will be reflected on the source business entity&#x27;s subscription attribute once the <a href=\"https://www.chargebee.com/docs/2.0/mbe-getting-started-with-customer-transfer.html\">customer transfer</a>\nactivity is completed successfully.</p>\n* in_trial - <p class=\"mb-2\">The subscription is in trial.</p>\n* paused - <p class=\"mb-2\">The subscription is <a href=\"https://www.chargebee.com/docs/2.0/pause-subscription.html\" target=\"_blank\">paused</a>.\nThe subscription will not renew while in this state.</p>",
            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
            "example" : null
          },
          "trial_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Start of the trial period for the subscription. Presence of this value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscription implies the subscription will go into <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\nstate when it starts.</p>",
            "example" : null
          },
          "trial_end_action" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nhas been enabled for the site. Whenever the subscription has a trial period, this attribute (parameter) is returned (required) and specifies the operation to be carried out for the subscription once the trial ends.\n\\* activate_subscription -\n\nThe subscription activates and charges are raised for non-metered items.\n\\* cancel_subscription -\n\nThe subscription cancels.\n\\* plan_default -\n\nThe action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n\\* site_default -\n\nThis is the default value. The action [configured for the site](https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions)\nat the time when the trial ends, takes effect.\n",
            "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
            "example" : null
          },
          "current_term_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Start of the current billing period of the subscription.\n",
            "example" : null
          },
          "current_term_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "End of the current billing period of the subscription. Subscription is renewed immediately after this.\n",
            "example" : null
          },
          "next_billing_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The date/time at which the next billing for the subscription happens. This is usually right after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>\nunless multiple subscription terms were invoiced in advance using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">terms_to_charge</code>\nparameter.</p>",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The time at which the subscription was created.\n",
            "example" : null
          },
          "started_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Time at which the subscription was started. Is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">null</code>\nfor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">future</code>\nsubscriptions as it is yet to be started.</p>",
            "example" : null
          },
          "activated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Time at which the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nlast changed to\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>.\nFor example, this value is updated when an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>\nor\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscription activates.</p>",
            "example" : null
          },
          "contract_term_billing_cycle_on_renewal" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Number of billing cycles the new contract term should run for, on contract renewal. The default value is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\nor a custom value depending on the <a href=\"https://www.chargebee.com/docs/contract-terms.html#configuring-contract-terms\" target=\"_blank\" rel=\"noopener noreferrer\">site configuration</a>\n.</p>",
            "maximum" : 100,
            "minimum" : 1,
            "example" : null
          },
          "override_relationship" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, ignores the <a href=\"/docs/api/customers/customer-object#relationship\">hierarchy relationship</a>\nand uses customer as payment and invoice owner.</p>",
            "example" : null
          },
          "pause_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When a pause has been scheduled, it is the date/time of scheduled pause. When the subscription is in the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">paused</code>\nstate, it is the date/time when the subscription was paused.</p>",
            "example" : null
          },
          "resume_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "For a paused subscription, it is the date/time when the subscription is scheduled to resume. If the pause is for an indefinite period, this value is not returned.\n",
            "example" : null
          },
          "cancelled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Time at which subscription was cancelled or is set to be cancelled.\n",
            "example" : null
          },
          "cancel_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The reason for canceling the subscription. Set by Chargebee automatically.\n\\* no_card -\n\nNo Card\n\\* non_compliant_customer -\n\nNon Compliant Customer\n\\* currency_incompatible_with_gateway -\n\nCurrency incompatible with Gateway\n\\* fraud_review_failed -\n\nFraud Review Failed\n\\* tax_calculation_failed -\n\nTax Calculation Failed\n\\* not_paid -\n\nNot Paid\n\\* non_compliant_eu_customer -\n\nNon Compliant EU Customer\n",
            "enum" : [ "not_paid", "no_card", "fraud_review_failed", "non_compliant_eu_customer", "tax_calculation_failed", "currency_incompatible_with_gateway", "non_compliant_customer" ],
            "example" : null
          },
          "created_from_ip" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The IP address of the user. Used primarly in Refersion integration. Refersion uses this field to track/log affiliate subscription.\n",
            "maxLength" : 50,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the item was last updated.\n",
            "example" : null
          },
          "has_scheduled_advance_invoices" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "The subscription has an [advance invoicing schedule](/docs/api/advance_invoice_schedules)\n.\n",
            "example" : null
          },
          "has_scheduled_changes" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Indicates whether a change is scheduled on the subscription.  \n**Note**\nWhen [Ramps](ramps) are enabled with compatibility mode, this attribute indicates whether one or more ramps are scheduled for the subscription. For more details, see [Ramps API compatibility mode](/docs/api/subscriptions#ramps-compat-mode).\n",
            "example" : null
          },
          "payment_source_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Payment source attached to this subscription. If present, customer's payment sources won't be used to collect any payment for this subscripiton.\n",
            "maxLength" : 40,
            "example" : null
          },
          "plan_free_quantity_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The free_quantity_in_decimal as set for the plan. Returned for quantity-based plans when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 33,
            "example" : null
          },
          "plan_amount_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the total amount for the plan, in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 39,
            "example" : null
          },
          "cancel_schedule_created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This is the date/time at which the most recent cancellation schedule for the subscription was created in Chargebee. Applicable only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code>\nsubscriptions or subscriptions that are scheduled for cancellation.</p>",
            "example" : null
          },
          "offline_payment_method" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "null\n",
            "enum" : [ "no_preference", "cash", "check", "bank_transfer", "ach_credit", "sepa_credit", "boleto", "us_automated_bank_transfer", "eu_automated_bank_transfer", "uk_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer", "custom" ],
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "net_term_days" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"https://www.chargebee.com/docs/net_d.html\" target=\"_blank\">Net D</a>\nvalue explicitly set for this subscription. Net D is the number of days from <a href=\"/docs/api/invoices/invoice-object#date\" class=\"text-blue-600 hover:text-blue-800 underline\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.date</code></a> until payment for the invoice is due. When an invoice is raised, and this value is unavailable, the net_term_days defined at <a href=\"/docs/api/customers/customer-object#net_term_days\">the customer level</a>\nis considered.</p>",
            "example" : null
          },
          "active_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: Present only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> has been <a href=\"/docs/api/business_entities/transfer-resources-to-another-business-entity\">transferred</a> between business entities.</p></div>\n<p class=\"mb-2\">Represents the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> of the active version of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Tip</strong>\nIf the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active_id</code> of a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource are the same, this indicates that you are working with the active version of that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> resource.</p></div>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "due_invoices_count" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Total number of invoices that are due for payment against the subscription.\n<strong class=\"font-semibold\">Note:</strong>\nNot supported if <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html\" target=\"_blank\">consolidated invoicing</a>\nis enabled, or when the subscription is for the customer who is in <a href=\"/docs/api/hierarchies\">hierarchy</a>\n, and the parent of this customer owns and pays for the invoices of the subscription. It is also worth noting that the consolidated invoice amount is not included in the calculation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">due_invoices_count</code>\n.</p>",
            "example" : null
          },
          "due_since" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Time since this subscription has unpaid invoices.\n**Note:**\nNot supported if [consolidated invoicing](https://www.chargebee.com/docs/consolidated-invoicing.html)\nis enabled, or when the subscription is for the customer who is in [hierarchy](/docs/api/hierarchies)\n, and the parent of this customer owns and pays for the invoices of the subscription.\n",
            "example" : null
          },
          "total_dues" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Total invoice due amount for this subscription. The value depends on the <a href=\"/docs/api/subscriptions\">type of currency</a>\n.\n<strong class=\"font-semibold\">Note:</strong>\nNot supported if <a href=\"https://www.chargebee.com/docs/consolidated-invoicing.html\" target=\"_blank\">consolidated invoicing</a>\nis enabled, or when the subscription is for the customer who is in <a href=\"/docs/api/hierarchies\">hierarchy</a>\n, and the parent of this customer owns and pays for the invoices of the subscription. It is also worth noting that the consolidated invoice amount is not included in the calculation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_dues</code>\n.</p>",
            "minimum" : 0,
            "example" : null
          },
          "mrr" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Monthly recurring revenue for the subscription. Updated asynchronously, this value catches up with changes to the subscription in less than a minute. The value depends on the [type of currency](/docs/api/currencies)\n.\n**Note:**\nThis may not return accurate values since updated asynchronously.\n",
            "minimum" : 1,
            "example" : null
          },
          "exchange_rate" : {
            "type" : "number",
            "format" : "decimal",
            "deprecated" : false,
            "description" : "Exchange rate used for base currency conversion.This value is updated to the [rate configured](https://www.chargebee.com/docs/multi-currency-pricing.html#configuring-multicurrency)\non your site each time any change is made to the subscription.\n",
            "maximum" : 1000000000,
            "minimum" : 0.0000000010,
            "example" : null
          },
          "base_currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)\n) of the site's base currency.\n",
            "maxLength" : 3,
            "example" : null
          },
          "invoice_notes" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A customer-facing note added to all invoices associated with this subscription. This note is one among [all the notes](/docs/api/invoices/invoice-object#notes)\ndisplayed on the invoice PDF.\n",
            "maxLength" : 2000,
            "example" : null
          },
          "meta_data" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the subscription. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates that the subscription has been deleted when the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\nYou can retrieve a deleted subscription using the <a href=\"/docs/api/subscriptions/list-subscriptions\">list operation</a>\n.</p>",
            "example" : null
          },
          "changes_scheduled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The date-time at which the subscription change is scheduled to happen.  \n**Note**\nThis attribute is not returned when the change is scheduled to happen at the end of the current term.\n",
            "example" : null
          },
          "cancel_reason_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \\> Configure Chargebee \\> Reason Codes \\> Subscriptions \\> Subscription Cancellation**.\nMust be passed if set as mandatory in the app. The codes are case-sensitive\n",
            "maxLength" : 100,
            "example" : null
          },
          "free_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The period of time by which the first term of the subscription is extended free of charge. The value is expressed in the time unit specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code>. For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period_unit</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code> means 3 free months are added to the first term.</p>",
            "example" : null
          },
          "free_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The time unit for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_period</code>.</p>\n* week - <p class=\"mb-2\">Charge based on week(s)</p>\n* month - <p class=\"mb-2\">Charge based on month(s)</p>\n* day - <p class=\"mb-2\">Charge based on day(s)</p>\n* year - <p class=\"mb-2\">Charge based on year(s)</p>",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "create_pending_invoices" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates whether the invoices for this subscription are generated with a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>. This attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> automatically when the subscription has item prices that belong to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> items.\nYou can also set this to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> explicitly using the <a href=\"/docs/api/subscriptions/create-subscription-for-items#create_pending_invoices\">create</a>/<a href=\"/docs/api/subscriptions/update-subscription-for-items#create_pending_invoices\">update</a> subscription operations. This is useful in the following scenarios:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When tracking usages and calculating usage-based charges on your end. You can then add them to the subscription as a <a href=\"https://www.chargebee.com/docs/charges.html\" target=\"_blank\">one-time charge</a> at the end of the billing term.</li>\n<li class=\"text-base leading-relaxed\">When you need to inspect all charges before closing invoices for this subscription.\nApplicable only when <a href=\"https://www.chargebee.com/docs/metered_billing.html\" target=\"_blank\">Metered Billing</a> is enabled for the site</li>\n</ul>",
            "example" : null
          },
          "auto_close_invoices" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\nto override for this subscription, the <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\" rel=\"noopener noreferrer\">site-level setting</a>\nfor auto-closing invoices. Only applicable when auto-closing invoices has been enabled for the site. This attribute has a higher precedence than the same attribute at the <a href=\"/docs/api/customers/customer-object#auto_close_invoices\">customer level</a>\n.</p>",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the [business entity](/docs/api/advanced-features)\nof this subscription. This is always the same as the [business entity](/docs/api/subscriptions/subscription-object#customer_id)\nof the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "decommissioned" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates whether the subscription should be decommissioned when it is canceled. If set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> all subscription operations will be disabled except deletion.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>: Decommission operation is irreversible. Once set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> it cannot be updated to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> and thus subscription will remain decommissioned permanently.</p></div>",
            "example" : null
          },
          "subscription_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Details of individual [item prices](/docs/api/item_prices)\nthat are part of this subscription.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The unique identifier of the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "item_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of item. There must be one and only one item of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nin this list.</p>\n* plan - <p class=\"mb-2\">Plan</p>\n* charge - <p class=\"mb-2\">Charge</p>\n* addon - <p class=\"mb-2\">Addon</p>",
                  "enum" : [ "plan", "addon", "charge" ],
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The quantity of the item purchased\n",
                  "minimum" : 1,
                  "example" : null
                },
                "quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the quantity of the item purchased. Can be provided for quantity-based item prices and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price/per unit price of the item. When not provided, <a href=\"/docs/api/item_prices/item-price-object\">the value set</a>\nfor the item price is used. This is only applicable when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>.\nAlso, it is only allowed when <a href=\"https://www.chargebee.com/docs/price-override.html\" target=\"_blank\">price overriding</a>\nis enabled for the site. The value depends on the type of currency. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">changes_scheduled_at</code>\nis in the past and a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\nis not passed, then the item price&#x27;s current unit price is considered even if the item price did not exist on the date as of when the change is scheduled.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the price or per-unit price of the plan. The value is in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The total amount for the item as determined from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_price</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_tiers</code>\nas applicable. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>\n.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "current_term_start" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The beginning of the item's current billing period.  \n**Note**\nApplicable only when multi-frequency billing is enabled.  \n**Private Beta**\nMulti-frequency billing is in private beta. Please reach out to the Chargebee [support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support) to enable this feature.\n",
                  "example" : null
                },
                "current_term_end" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The end of the item's current billing period. Chargebee renews the item immediately following this date.  \n**Note**\nApplicable only when multi-frequency billing is enabled.  \n**Private Beta**\nMulti-frequency billing is in private beta. Please reach out to the Chargebee [support](https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&utm_medium=content&utm_campaign=support) to enable this feature.\n",
                  "example" : null
                },
                "next_billing_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The date or time at when the next billing for the item is scheduled to occur. This typically occurs immediately after <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">current_term_end</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nApplicable only when multi-frequency billing is enabled.</p></div>\n<div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Private Beta</strong>\nMulti-frequency billing is in private beta. Please reach out to the Chargebee <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">support</a> to enable this feature.</p></div>",
                  "example" : null
                },
                "amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The decimal representation of the total amount for the item, in major units of the currency. Always returned when [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
                  "maxLength" : 39,
                  "example" : null
                },
                "billing_period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the length of each billing cycle for this subscription item, expressed in the unit defined by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items.billing_period_unit</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Returned only if</strong></p>\n<a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/subscriptions#multi-frequency-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-Frequency Billing</a> is enabled.</p></div>",
                  "minimum" : 1,
                  "example" : null
                },
                "billing_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the unit used to measure the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items.billing_period</code>.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><p><strong class=\"font-semibold\">Returned only if</strong></p>\n<a href=\"https://www.chargebee.com/docs/billing/2.0/subscriptions/subscriptions#multi-frequency-billing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Multi-Frequency Billing</a> is enabled.</p></div>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "free_quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\nof the plan-item as <a href=\"/docs/api/item_prices\">specified</a>\nfor the item price.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "free_quantity_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity_in_decimal</code>\nas set for the item price. Returned for quantity-based item prices when <a href=\"/docs/api/getting-started\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "trial_end" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The date/time when the trial period of the item ends. Applies to plan-items and--when [enabled](https://www.chargebee.com/docs/2.0/addons-trial.html)\n--addon-items as well.\n",
                  "example" : null
                },
                "billing_cycles" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "For the plan-item price:\nthe value determines the number of billing cycles the subscription runs before canceling automatically. If not provided, then [the value set](/docs/api/item_prices/item-price-object)\nfor the plan-item price is used.\n\nFor addon-item prices:\nIf [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)\nare enabled then this is the number of subscription billing cycles for which the addon is included. If not provided, then [the value set under attached addons](/docs/api/attached_items/attached-item-object)\nis used. Further, if that value is not provided, then [the value set for the addon-item price](/docs/api/item_prices/item-price-object)\nis used.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "service_period_days" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The service period of the item in days from the day of charge.\n",
                  "maximum" : 730,
                  "minimum" : 1,
                  "example" : null
                },
                "charge_on_event" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_option</code>\noption is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_event</code>\n, this parameter specifies the event at which the charge-item is applied to the subscription. This parameter only applies to charge-items.</p>\n* contract_termination - <p class=\"mb-2\">when a contract term is <a href=\"/docs/api/subscriptions/cancel-subscription-for-items#contract_term_cancel_option\">terminated</a>\n.</p>\n* subscription_trial_start - <p class=\"mb-2\">the time when the trial period of the subscription begins.</p>\n* subscription_activation - <p class=\"mb-2\">the moment a subscription enters an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non-renewing</code>\nstate. Also includes reactivations of canceled subscriptions.</p>\n* plan_activation - <p class=\"mb-2\">same as subscription activation, but also includes the case when the plan-item of the subscription is changed.</p>\n* subscription_creation - <p class=\"mb-2\">the time of creation of the subscription.</p>",
                  "enum" : [ "subscription_creation", "subscription_trial_start", "plan_activation", "subscription_activation", "contract_termination" ],
                  "example" : null
                },
                "charge_once" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates if the charge-item is to be charged only once or each time the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\noccurs. This parameter only applies to charge-items.</p>",
                  "example" : null
                },
                "charge_on_option" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Indicates when the charge-item is to be charged. This parameter only applies to charge-items.</p>\n* immediately - <p class=\"mb-2\">The item is charged immediately on being added to the subscription.</p>\n* on_event - <p class=\"mb-2\">The item is charged at the occurrence of the event specified as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge_on_event</code>\n.</p>",
                  "enum" : [ "immediately", "on_event" ],
                  "example" : null
                },
                "proration_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies how to manage charges or credits for the addon during a subscription update.</p>\n<p class=\"mb-2\">You can&#x27;t modify this parameter&#x27;s value within the current term. Moreover, it is removed from the subscription attributes when the next term starts.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">See also:</strong>\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[proration_type]</code>\nparameter for <a href=\"/docs/api/subscriptions/update-subscription-for-items#subscription_items_proration_type\">Update a subscription API</a>\n.</p></div>\n<span featureId=\"cb-addon-proration\" isMicro=\"true\"></span>\n* none - <p class=\"mb-2\">Don&#x27;t apply any charges or credits for the addon.</p>\n* full_term - <p class=\"mb-2\">Charge the full price of the addon or give the full credit. Don&#x27;t apply any proration.</p>\n* partial_term - <p class=\"mb-2\">Prorate the charges or credits from the time of the change till the end of the current term.</p>",
                  "enum" : [ "full_term", "partial_term", "none" ],
                  "example" : null
                },
                "usage_accumulation_reset_frequency" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Specifies the frequency at which the usage counter needs to be reset.\n\\* subscription_billing_frequency -\n\nAccumulates usage until the subscription's billing frequency ends.\n\\* never -\n\nAccumulates usage without ever resetting it.\n",
                  "enum" : [ "never", "subscription_billing_frequency" ],
                  "example" : null
                }
              },
              "required" : [ "item_price_id", "item_type" ],
              "example" : null
            },
            "example" : null
          },
          "item_tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The pricing details of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items</code>\nwhich have <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nas\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n.</p>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The id of the item price to which this tier belongs.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lowest value in the quantity tier.\n",
                  "minimum" : 1,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The highest value in the quantity tier.\n",
                  "example" : null
                },
                "price" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nThe total cost for the item price when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>.\nThe value is in the minor unit of the currency.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "price_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for the item. The value is in major units of the currency. Returned when the plan is quantity-based and <a href=\"/docs/api/currencies\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 39,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                },
                "index" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index number of the subscription to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>\n(inclusive) for each subscription that is to be created.</p>",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "index", "item_price_id", "price", "starting_unit" ],
              "example" : null
            },
            "example" : null
          },
          "charged_items" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of event based charge items that have already been charged.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "A unique ID for your system to identify the item price.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "last_charged_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when this charge item_price was last charged for this subscription.\n",
                  "example" : null
                }
              },
              "required" : [ "item_price_id", "last_charged_at" ],
              "example" : null
            },
            "example" : null
          },
          "coupons" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of coupons for this subscription\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Used to uniquely identify the coupon\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "apply_till" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The date till when the coupon can be applied. Applicable for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\n<a href=\"/docs/api/coupons\">coupons</a>\nonly.</p>",
                  "example" : null
                },
                "applied_count" : {
                  "type" : "integer",
                  "format" : "int32",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Number of times this coupon has been applied for this subscription\n",
                  "example" : null
                },
                "coupon_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The coupon code used to redeem the coupon. Will be present only when associated code for a coupon is used.\n",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "applied_count", "coupon_id" ],
              "example" : null
            },
            "example" : null
          },
          "shipping_address" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Shipping address for the subscription.\n",
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The first name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The last name of the contact.\n",
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "description" : "The email address.\n",
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The company name.\n",
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The phone number.\n",
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 1\n",
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 2\n",
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Address line 3\n",
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The name of the city.\n",
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The <a href=\"https://www.iso.org/obp/ui/#search\" target=\"_blank\">ISO 3166-2 state/province code</a>\nwithout the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">state_code</code>\nas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AZ</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">US-AZ</code>\n). For Tamil Nadu (India), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">TN</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN-TN</code>\n). For British Columbia (Canada), set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">BC</code>\n(not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">CA-BC</code>\n).</p>",
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The state/province name.\n",
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The billing address country of the customer. Must be one of <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 3166 alpha-2 country code</a>\n.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nIf you enter an invalid country code, the system will return an error.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Brexit</strong></p><p class=\"mb-2\">If you have enabled <a href=\"https://www.chargebee.com/docs/eu-vat.html\" target=\"_blank\" rel=\"noopener noreferrer\">EU VAT</a> in 2021 or later, or have <a href=\"https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee\" target=\"_blank\" rel=\"noopener noreferrer\">manually enable</a> the Brexit configuration, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">XI</code> (the code for <strong class=\"font-semibold\">United Kingdom - Northern Ireland</strong>) is available as an option.</p></div>",
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address)\n.\n",
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "description" : "The address verification status.\n\\* not_validated -\n\nAddress is not yet validated.\n\\* valid -\n\nAddress was validated successfully.\n\\* partially_valid -\n\nThe address is valid for taxability but has not been validated for shipping.\n\\* invalid -\n\nAddress is invalid.\n",
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "referral_info" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Referral details if exists for the subscription\n",
            "properties" : {
              "referral_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Referral code if available for the subscription\n",
                "maxLength" : 50,
                "example" : null
              },
              "coupon_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Referral coupon code if available for the subscription\n",
                "maxLength" : 50,
                "example" : null
              },
              "referrer_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Referrer id if available for the subscription\n",
                "maxLength" : 19,
                "example" : null
              },
              "external_reference_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "External reference id in referral system for the subscription\n",
                "maxLength" : 50,
                "example" : null
              },
              "reward_status" : {
                "type" : "string",
                "default" : "pending",
                "deprecated" : false,
                "description" : "Reward status for the referral subscription\n\\* paid -\n\nPaid\n\\* invalid -\n\nInvalid\n\\* pending -\n\nPending\n",
                "enum" : [ "pending", "paid", "invalid" ],
                "example" : null
              },
              "referral_system" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Source referral system for the referral subscription\n\\* referral_saasquatch -\n\nReferral Saasquatch\n\\* referral_candy -\n\nReferral Candy\n\\* friendbuy -\n\nFriendbuy\n",
                "enum" : [ "referral_candy", "referral_saasquatch", "friendbuy" ],
                "example" : null
              },
              "account_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Referral account id\n",
                "maxLength" : 50,
                "example" : null
              },
              "campaign_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Referral campaign id\n",
                "maxLength" : 50,
                "example" : null
              },
              "external_campaign_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Referral external campaign id\n",
                "maxLength" : 100,
                "example" : null
              },
              "friend_offer_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Friend offer type for the referral camapign\n\\* none -\n\nNone\n\\* coupon_code -\n\nCoupon Code\n\\* coupon -\n\nCoupon\n",
                "enum" : [ "none", "coupon", "coupon_code" ],
                "example" : null
              },
              "referrer_reward_type" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Referrer reward type for the referral campaign\n\\* none -\n\nNone\n\\* custom_revenue_percent_based -\n\nCustom Revenue Percent Based\n\\* referral_direct_reward -\n\nReferral Direct Reward\n\\* custom_promotional_credit -\n\nCustom Promotional Credit\n",
                "enum" : [ "none", "referral_direct_reward", "custom_promotional_credit", "custom_revenue_percent_based" ],
                "example" : null
              },
              "notify_referral_system" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Whether or not to notify the referral purchases to the referral system\n\\* first_paid_conversion -\n\nFirst Paid Conversion\n\\* none -\n\nNone\n\\* all_invoices -\n\nAll Invoices\n",
                "enum" : [ "none", "first_paid_conversion", "all_invoices" ],
                "example" : null
              },
              "destination_url" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Destination url for the referral campaign\n",
                "maxLength" : 250,
                "example" : null
              },
              "post_purchase_widget_enabled" : {
                "type" : "boolean",
                "default" : true,
                "deprecated" : false,
                "description" : "Whether post purchase widget is enabled for this campaign\n",
                "example" : null
              }
            },
            "required" : [ "account_id", "campaign_id", "post_purchase_widget_enabled" ],
            "example" : null
          },
          "billing_override" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Specify limits on how credits and excess payments are applied to individual invoices for the subscription. \\*\\*Prerequisite\\*\\* \\* \\[Credit flexibility\\](https://www.chargebee.com/docs/billing/2.0/invoices-credit-notes-and-quotes/credit-notes#credits-flexibility) must be enabled for the site. \\*\\*Constraints\\*\\* \\* These limits do not apply to \\[consolidated invoices\\](https://www.chargebee.com/docs/2.0/consolidated-invoicing.html).\n",
            "properties" : {
              "max_excess_payment_usage" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#excess_payments\" class=\"text-blue-600 hover:text-blue-800 underline\">excess payments</a> that can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                "minimum" : -1,
                "example" : null
              },
              "max_refundable_credits_usage" : {
                "type" : "integer",
                "format" : "int64",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Maximum amount of <a href=\"/docs/api/customers/customer-object#refundable_credits\" class=\"text-blue-600 hover:text-blue-800 underline\">refundable credits</a> that can be applied to any single invoice associated with this subscription. Set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-1</code> to auto-apply without limit, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code> to prevent auto-application, or any positive value to define the maximum amount that can be applied.</p>",
                "minimum" : -1,
                "example" : null
              }
            },
            "example" : null
          },
          "contract_term" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Contract terms for this subscription\n",
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Id that uniquely identifies the contract term in the site.\n",
                "maxLength" : 50,
                "example" : null
              },
              "status" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Current status of contract\n\\* terminated -\n\nThe contract term was terminated ahead of completion.\n\\* completed -\n\nThe contract term has run its full duration.\n\\* active -\n\nAn actively running contract term.\n\\* cancelled -\n\nThe contract term was ended because: - a change in the subscription caused a [subscription term reset](/docs/api/v2/pcv-1/subscriptions/update-a-subscription#force_term_reset).\n\n* the subscription was cancelled due to non-payment.\n",
                "enum" : [ "active", "completed", "cancelled", "terminated" ],
                "example" : null
              },
              "contract_start" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The start date of the contract term\n",
                "example" : null
              },
              "contract_end" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The end date of the contract term\n",
                "example" : null
              },
              "billing_cycle" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "The number of billing cycles of the subscription that the contract term is for.\n",
                "minimum" : 0,
                "example" : null
              },
              "action_at_term_end" : {
                "type" : "string",
                "default" : "renew",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">Action to be taken when the contract term completes.</p>\n* renew_once - <p class=\"mb-2\">Used when you want to renew the contract term just once. Does the following: -   Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancel</code>.</li>\n</ul>\n* cancel - <p class=\"mb-2\">Contract term completes and subscription is canceled.</p>\n* evergreen - <p class=\"mb-2\">Contract term completes and the subscription renews.</p>\n* renew - <ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Contract term completes and a new contract term is started for the number of billing cycles specified in <a href=\"/docs/api/v2/pcv-1/subscriptions/create-subscription-for-customer#contract_term_billing_cycle_on_renewal\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_billing_cycle_on_renewal</code></a>.</li>\n<li class=\"text-base leading-relaxed\">The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">action_at_term_end</code> for the new contract term is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">renew</code>.</li>\n</ul>",
                "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                "example" : null
              },
              "total_contract_value" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The sum of the <a href=\"/docs/api/invoices/invoice-object#total\">totals</a>\nof all the invoices raised as part of the contract term. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms, this is a predicted value. The value depends on the <a href=\"/docs/api/currencies\">type of currency</a>.\nIf the subscription was <a href=\"/docs/api/v2/pcv-1/subscriptions/import-a-subscription\">imported</a>\nwith the contract term, then this value includes the value passed for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised</code>\n.</p>",
                "minimum" : 0,
                "example" : null
              },
              "total_contract_value_before_tax" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">It refers to the total amount of revenue that is expected to be generated from a specific contract term, calculated as the sum of all invoices raised during the term, regardless of payment status. It is based on past performance and the specified currency in the contract. If the subscription was imported, the value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_amount_raised_before_tax</code>\nis included in the calculation of the total contract value before tax. It&#x27;s important to note that this value excludes any applicable taxes.</p>",
                "minimum" : 0,
                "example" : null
              },
              "cancellation_cutoff_period" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The number of days before <a href=\"/docs/api/contract_terms/contract_term-object#contract_end\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">contract_end</code></a>\n, during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure.</p>",
                "example" : null
              },
              "created_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "The date when the contract term was created.\n",
                "example" : null
              },
              "subscription_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "The [Id](/docs/api/subscriptions/subscription-object#id)\nof the subscription that this contract term is for.\n",
                "maxLength" : 50,
                "example" : null
              },
              "remaining_billing_cycles" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">The number of subscription billing cycles remaining after the current one for the contract term. This attribute is only returned for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\ncontract terms.</p>",
                "minimum" : 0,
                "example" : null
              }
            },
            "required" : [ "action_at_term_end", "billing_cycle", "contract_end", "contract_start", "created_at", "id", "status", "subscription_id", "total_contract_value", "total_contract_value_before_tax" ],
            "example" : null
          },
          "discounts" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">List of <a href=\"/docs/api/discounts\">discounts</a>\ncurrently attached to the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Discounts of <code><a href=\"/docs/api/discounts/discount-object#duration_type\">duration_type</a></code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code> are removed from the list after a single application to the subscription.</li>\n<li class=\"text-base leading-relaxed\">Discounts of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code> are removed from the list once the specified <code><a href=\"/docs/api/discounts/discount-object#period\">period</a></code> expires since their attachment to the subscription.</li>\n</ul></div>",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "An immutable unique id for the discount. It is always auto-generated.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "invoice_name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The name of the discount as it should appear on customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nThis is auto-generated based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\n, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">currency_code</code>\nof the discount. For example, it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10% off</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10$ off</code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                },
                "type" : {
                  "type" : "string",
                  "default" : "percentage",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The type of discount.\nPossible value are:</p>\n* offer_quantity - <p class=\"mb-2\">A specified number of units of the item price are offered for free. The number of free units is specified in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>.\nThe <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>\noption is valid only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\nis set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">each_specified_item</code>\nand the <code><a href=\"/docs/api/item_prices/item_price-object#pricing_model\">pricing_model</a></code>\nof the item price is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n.</p>\n* percentage - <p class=\"mb-2\">The specified percentage will be given as discount.</p>\n* fixed_amount - <p class=\"mb-2\">The specified amount will be given as discount.</p>",
                  "enum" : [ "fixed_amount", "percentage", "offer_quantity" ],
                  "example" : null
                },
                "percentage" : {
                  "type" : "number",
                  "format" : "double",
                  "deprecated" : false,
                  "description" : "The percentage of the original amount that should be deducted from it.\n",
                  "maximum" : 100,
                  "minimum" : 0.01,
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The value of the discount. [The format of this value](/docs/api/currencies)\ndepends on the kind of currency.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "quantity" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the number of free units provided for the item, without affecting the total quantity sold. This parameter is applicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">offer_quantity</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "currency_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The currency code (<a href=\"https://www.chargebee.com/docs/supported-currencies.html\" target=\"_blank\">ISO 4217 format</a>\n) of the discount. This is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">discount.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">fixed_amount</code>\n.</p>",
                  "maxLength" : 3,
                  "example" : null
                },
                "duration_type" : {
                  "type" : "string",
                  "default" : "forever",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies the time duration for which this discount is attached to the subscription.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* limited_period - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices for a limited duration. This duration starts from the point it is applied to an invoice for the first time and expires after a period specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\n.</p>\n* forever - <p class=\"mb-2\">The discount is attached to the subscription and applied on the invoices till it is <a href=\"/docs/api/subscriptions/update-subscription-for-items#discounts_operation_type\">explicitly removed</a>\n.</p>\n* one_time - <p class=\"mb-2\">The discount stays attached to the subscription till it is applied on an invoice <strong class=\"font-semibold\">once</strong>.\nIt is removed after that from the subscription.</p>",
                  "enum" : [ "one_time", "forever", "limited_period" ],
                  "example" : null
                },
                "period" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The duration of time for which the discount is attached to the subscription, in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_units</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "minimum" : 1,
                  "example" : null
                },
                "period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nApplicable only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>",
                  "enum" : [ "day", "week", "month", "year" ],
                  "example" : null
                },
                "included_in_mrr" : {
                  "type" : "boolean",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The discount is included in MRR calculations for your site. This attribute is only applicable when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">duration_type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one_time</code>\nand when the <a href=\"https://www.chargebee.com/docs/reporting.html#dashboards_flexible-mrr-calculation\" target=\"_blank\">feature is enabled</a>\nin Chargebee. Also, If the <a href=\"https://www.chargebee.com/docs/reporting.html#chart_flexible-mrr-calculation\" target=\"_blank\">site-level setting</a>\nis to exclude one-time discounts from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "example" : null
                },
                "apply_on" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The amount on the invoice to which the discount is applied.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>\n* invoice_amount - <p class=\"mb-2\">The discount is applied to the invoice <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub_total</code>\n.</p>\n* specific_item_price - <p class=\"mb-2\">The discount is applied to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice.line_item.amount</code>\nthat corresponds to the item price specified by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>\n.</p>",
                  "enum" : [ "invoice_amount", "specific_item_price" ],
                  "example" : null
                },
                "item_price_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_price_id\">id of the item price</a>\nin the subscription to which the discount is to be applied. Relevant only when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">apply_on</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">specific_item_price</code>.</p>\n<span featureId=\"cb-discounts\" isMicro=\"true\"></span>",
                  "maxLength" : 100,
                  "example" : null
                },
                "created_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp indicating when this discount is created.\n",
                  "example" : null
                },
                "apply_till" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Specifies till when the limited period discount is applicable. This attribute will be sent in the response only for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">limited_period</code>\nduration type discount.</p>",
                  "example" : null
                },
                "applied_count" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "Specifies the number of times the discount has been applied.\n",
                  "example" : null
                },
                "coupon_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><p class=\"mb-2\">When the coupon ID contains a special character; for example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">#</code>, the API returns an error. Make sure that you <a href=\"https://www.urlencoder.org/\">encode</a> the coupon ID in the path parameter before making an API call.</p></div>",
                  "maxLength" : 100,
                  "example" : null
                },
                "index" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The index number of the subscription to which the item price is added. Provide a unique number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">4</code>\n(inclusive) for each subscription that is to be created.</p>",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "apply_on", "coupon_id", "created_at", "duration_type", "id", "included_in_mrr", "index", "type" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "customer_id", "decommissioned", "deleted", "has_scheduled_advance_invoices", "has_scheduled_changes", "id", "status" ],
        "example" : null
      },
      "SubscriptionActivatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionActivatedWithBackdatingEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionAdvanceInvoiceScheduleAddedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "advance_invoice_schedules" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
                },
                "example" : null
              }
            },
            "required" : [ "advance_invoice_schedules", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionAdvanceInvoiceScheduleRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "advance_invoice_schedules" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
                },
                "example" : null
              }
            },
            "required" : [ "advance_invoice_schedules", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionAdvanceInvoiceScheduleUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "advance_invoice_schedules" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
                },
                "example" : null
              }
            },
            "required" : [ "advance_invoice_schedules", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionBusinessEntityChangedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "business_entity_transfer" : {
                "$ref" : "#/components/schemas/BusinessEntityTransfer"
              },
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              }
            },
            "required" : [ "business_entity_transfer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionCanceledWithBackdatingEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_notes" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/CreditNote"
                },
                "example" : null
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "credit_notes", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionCancellationReminderEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionCancellationScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionCancelledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_notes" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/CreditNote"
                },
                "example" : null
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "credit_notes", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionChangedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_notes" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/CreditNote"
                },
                "example" : null
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "credit_notes", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionChangedWithBackdatingEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_notes" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/CreditNote"
                },
                "example" : null
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "credit_notes", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionChangesScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionCreatedWithBackdatingEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionEntitlement" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><h2>Overview</h2><p class=\"mb-2\">The subscription entitlement object represents the entitlement a <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> holds for a <a href=\"/docs/api/features\" class=\"text-blue-600 hover:text-blue-800 underline\">feature</a>. A subscription can have several subscription entitlements, each tied to a specific feature.</p><h2>How subscription entitlements are determined</h2><div id=\"subscription-level-override\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#subscription-level-override-content\" aria-expanded=\"false\" aria-controls=\"subscription-level-override-content\"><h3>With subscription-level entitlement override</h3><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"subscription-level-override-content\"><p class=\"mb-2\">When an <a href=\"/docs/api/entitlement_overrides\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement override</a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code> is set for a subscription related to a feature, the subscription entitlement takes on the <a href=\"/docs/api/entitlement_overrides/entitlement_override-object#value\" class=\"text-blue-600 hover:text-blue-800 underline\">value</a> of that override.</p></div></div><div id=\"without-overrides\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#without-overrides-content\" aria-expanded=\"false\" aria-controls=\"without-overrides-content\"><h3>Without entitlement overrides</h3><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"without-overrides-content\"><p class=\"mb-2\">If there is no entitlement override for the subscription and feature, the subscription entitlement is based on the <a href=\"/docs/api/entitlements\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlements</a> linked to the <a href=\"/docs/api/item_prices\" class=\"text-blue-600 hover:text-blue-800 underline\">item prices</a> within the <a href=\"/docs/api/subscriptions/subscription-object#subscription_items\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription items</a>. If an item price lacks an entitlement record for a particular feature, we consider the entitlement (when available) of its parent <a href=\"/docs/api/items\" class=\"text-blue-600 hover:text-blue-800 underline\">item</a>.</p><p class=\"mb-2\">The method used to derive the subscription entitlement from these entitlements follows specific rules determined by the feature <a href=\"/docs/api/features/feature-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\">type</a>. We outline and provide examples of these rules in the sections below:</p><div id=\"switch\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#switch-content\" aria-expanded=\"false\" aria-controls=\"switch-content\">Switch feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"switch-content\"><h4>Summary</h4><p class=\"mb-2\">Consider a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>. Consider also a subscription whose subscription items correspond to item prices (or items) that have entitlements to the feature. Looking at these entitlements, we first determine the entitlement value held by each subscription item for this feature.</p><p class=\"mb-2\">If the entitlement value for the feature held by <strong class=\"font-semibold\">any</strong> of the subscription items is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, then the subscription entitlement value is also set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>. Otherwise, the subscription entitlement value is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following <a href=\"/docs/api/features\" class=\"text-blue-600 hover:text-blue-800 underline\">feature</a> record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 1: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code></td><td>An integration with the Xero accounting software.</td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following <a href=\"/docs/api/entitlements\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement</a> records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 2: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 3: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">installation-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr></tbody></table></div><h5>4. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 2. This is shown in Table 4. For clarity, we&#x27;ve omitted the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> column because it doesn&#x27;t affect features with type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 4: Entitlement values for subscription-items.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th>Entitlement value (determined from Table 2)</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> (Matches the value of the plan price.)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> (Inherited from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>, as no entitlement is defined for this addon price.)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">installation-usd</code></td><td>None (No entitlement defined for the charge item.)</td></tr></tbody></table></div><h5>5. Determining final subscription entitlements</h5><h6>Case 1: Absence of a subscription-level override</h6><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement</strong> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement.value</code>) for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code> feature is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> because at least one subscription-item entitlement value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p><h6>Case 2: With subscription-level override</h6><p class=\"mb-2\">Suppose there&#x27;s an <a href=\"/docs/api/entitlement_overrides\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement override</a> added to the subscription for the feature, as shown below:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 5: Entitlement override record for the subscription and feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr></tbody></table></div><p class=\"mb-2\">Given this override, the subscription&#x27;s final entitlement value for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code> feature is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p></div></div><div id=\"quantity\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#quantity-content\" aria-expanded=\"false\" aria-controls=\"quantity-content\">Quantity feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"quantity-content\"><h4>Summary</h4><p class=\"mb-2\">Consider a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>. Consider also a subscription whose subscription items correspond to item prices (or items) that have entitlements to the feature. Looking at these entitlements, we first determine the entitlement value held by each subscription item for this feature.</p><p class=\"mb-2\">If the entitlement value for the feature held by any of the subscription items is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>, then the subscription entitlement value is also <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>. Otherwise, the subscription entitlement value is the sum of all the entitlement values of the subscription items.</p><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following feature record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 6: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></td><td>The number of user licenses provided.</td></tr></tbody></table></div><p class=\"mb-2\">Suppose that the feature has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code> records as follows:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 7: Feature levels records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">is_unlimited</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code></td><td>Not set.</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 8: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a subscription with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 9: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td></tr></tbody></table></div><h5>4. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 8. This is shown in Table 10.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 10: Entitlement values for subscription-items.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th><th>Entitlement value (determined from Table 8)</th><th>Entitlement value subtotal (Entitlement value × <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>)</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (Matches the value of the plan price.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (unlimited x 5)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> (Inherited from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>, as no entitlement is defined for this addon price.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">50</code> (5 x 10)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> (Inherited from the charge <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time</code>.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> (5 x 1)</td></tr></tbody></table></div><h5>5. Determining final subscription entitlements</h5><h6>Case 1: Absence of a subscription-level override</h6><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement value</strong> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement.value</code>) for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature is the total entitlement value from the last column in Table 10, which amounts to (unlimited + 50 + 5) = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>.</p><h6>Case 2: With subscription-level override</h6><p class=\"mb-2\">Suppose there&#x27;s an entitlement override added to the subscription for the feature, as shown below:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 11: Entitlement override record for the subscription and feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code></td></tr></tbody></table></div><p class=\"mb-2\">Given this override, the subscription&#x27;s <strong class=\"font-semibold\">final entitlement value</strong> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code>.</p></div></div><div id=\"range\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#range-content\" aria-expanded=\"false\" aria-controls=\"range-content\">Range feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"range-content\"><h4>Summary</h4><p class=\"mb-2\">Consider a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>. Consider also a subscription whose subscription items correspond to item prices (or items) that have entitlements to the feature. Looking at these entitlements, we first determine the entitlement value held by each subscription item for this feature.</p><p class=\"mb-2\">If the entitlement value for the feature held by any of the subscription items is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>, then the subscription entitlement value is also <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>. Otherwise, one of two scenarios are possible:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the subscription entitlement value equals the sum of all entitlement values of the subscription items.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>, the subscription entitlement value equals the sum of all entitlement values of the subscription items without exceeding the maximum value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.level[1].value</code>.</p>\n</li>\n</ul><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following feature record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 12: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code></td><td>The maximum number of API requests allowed per minute.</td></tr></tbody></table></div><p class=\"mb-2\">Suppose that the feature has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code> records as follows:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 13: Feature levels records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">is_unlimited</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1000</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 14: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">450</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">150</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a subscription with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 15: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr></tbody></table></div><h5>4. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 14. This is shown in Table 16.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 16: Entitlement values for subscription-items.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th><th>Entitlement value (determined from Table 14)</th><th>Entitlement value subtotal (Entitlement value x <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>)</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code> (Matches the value of the plan price.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">800</code> (400 x 2)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">150</code> (Inherited from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>, as no entitlement is defined for this addon price.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">300</code> (150 x 2)</td></tr></tbody></table></div><h5>5. Determining final subscription entitlements</h5><h6>Case 1: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></h6><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement value</strong> (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement.value</code>) for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code> feature is the total entitlement value from the last column in Table 16, capped at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].value</code>. The total entitlement value is 800 + 300 = 1100. However, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1000</code>, which is less than 1100. Therefore, the final entitlement is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1000</code>.</p><h6>Case 2: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></h6><p class=\"mb-2\">In this scenario, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].value</code> is disregarded, and the <strong class=\"font-semibold\">final entitlement value</strong> is not capped. In other words, the final entitlement value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1100</code>.</p></div></div><div id=\"custom\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#custom-content\" aria-expanded=\"false\" aria-controls=\"custom-content\">Custom feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"custom-content\"><h4>Summary</h4><p class=\"mb-2\">Consider a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>. Consider also a subscription whose subscription items correspond to item prices (or items) that have entitlements to the feature.</p><p class=\"mb-2\">Looking at these entitlements, we first determine the entitlement value held by each subscription item for this feature. The subscription entitlement value is then set to the highest of these identified values.</p><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following feature record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 17: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">The form of after-sales support provided to the customer.</code></td></tr></tbody></table></div><p class=\"mb-2\">Suppose that the feature has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code> records as follows:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 18: Feature levels records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chat</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code></td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 19: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chat</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a subscription with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 20: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr></tbody></table></div><h5>4. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 19. This is shown in Table 21. For clarity, we&#x27;ve omitted the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> column because it doesn&#x27;t affect features with type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 21: Entitlement values for subscription-items.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th>Subscription-Item Entitlement Value (determined from Table )</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code> (Matches the value of the plan price.)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code> (Inherited from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>, as no entitlement is defined for this addon price.)</td></tr></tbody></table></div><h5>5. Determining final subscription entitlements</h5><h6>Case 1: Absence of a subscription-level override</h6><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement</strong> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code> feature is the <strong class=\"font-semibold\">highest</strong> of all the subscription-item entitlement values, which in this case is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code>.</p><h6>Case 2: With subscription-level override</h6><p class=\"mb-2\">Suppose there&#x27;s an entitlement override added to the subscription for the feature, as shown below:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 22: Entitlement override record for the subscription and feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">expires_at</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chat</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1695884985</code> (7 days from now, assuming today is 2023-09-21.)</td></tr></tbody></table></div><p class=\"mb-2\">Given this override, the subscription&#x27;s <strong class=\"font-semibold\">final entitlement value</strong> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code> feature will be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chat</code> until 2023-09-21 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code> thereafter.</p></div></div></div></div><div id=\"entity-level-overrides\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#entity-level-overrides-content\" aria-expanded=\"false\" aria-controls=\"entity-level-overrides-content\"><h3>With other entity-level entitlement overrides</h3><i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"entity-level-overrides-content\"><p class=\"mb-2\">When an <a href=\"/docs/api/entitlement_overrides\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement override</a> with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code> set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon_price</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code> is set for a subscription, the override affects the entitlement value used for that specific entity when calculating subscription-item entitlements. If an entitlement override exists for a plan price, addon price, or charge entity, its value is used instead of the regular <a href=\"/docs/api/entitlements\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement</a> value for that entity.</p><p class=\"mb-2\">The method used to derive the subscription entitlement from these overridden values follows the same rules determined by the feature <a href=\"/docs/api/features/feature-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\">type</a> as described in the sections above. We outline and provide examples of these rules in the sections below:</p><div id=\"switch-entity-override\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#switch-entity-override-content\" aria-expanded=\"false\" aria-controls=\"switch-entity-override-content\">Switch feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"switch-entity-override-content\"><h4>Summary</h4><p class=\"mb-2\">When calculating subscription-item entitlements for a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>, if an entitlement override exists for a plan price, addon price, or charge entity, the override&#x27;s value is used instead of the regular entitlement value for that entity. The final subscription entitlement value is then determined using the same logic as described in the <a href=\"#switch\" class=\"text-blue-600 hover:text-blue-800 underline\">Switch feature section</a>: if the entitlement value for the feature held by <strong class=\"font-semibold\">any</strong> of the subscription items is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, then the subscription entitlement value is also set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>. Otherwise, the subscription entitlement value is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</p><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following <a href=\"/docs/api/features\" class=\"text-blue-600 hover:text-blue-800 underline\">feature</a> record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 23: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">An integration with the Xero accounting software.</code></td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following <a href=\"/docs/api/entitlements\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement</a> records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 24: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a <a href=\"/docs/api/subscriptions\" class=\"text-blue-600 hover:text-blue-800 underline\">subscription</a> with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 25: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td></tr></tbody></table></div><h5>4. Entitlement override records</h5><p class=\"mb-2\">Suppose there&#x27;s an <a href=\"/docs/api/entitlement_overrides\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement override</a> added to the subscription for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code> addon price, as shown below:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 26: Entitlement override record for the addon price and feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></td></tr></tbody></table></div><h5>5. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 24, but uses the override value from Table 26 for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code> addon price. This is shown in Table 27. For clarity, we&#x27;ve omitted the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> column because it doesn&#x27;t affect features with type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 27: Entitlement values for subscription-items.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th>Entitlement value</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> (Matches the value of the plan price entitlement.)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> (Uses the override value from Table 26 instead of inheriting <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code> from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>.)</td></tr></tbody></table></div><h5>6. Determining final subscription entitlements</h5><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement</strong> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">xero-integration</code> feature is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> because at least one subscription-item entitlement value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code> (the overridden value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code>).</p></div></div><div id=\"quantity-entity-override\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#quantity-entity-override-content\" aria-expanded=\"false\" aria-controls=\"quantity-entity-override-content\">Quantity feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"quantity-entity-override-content\"><h4>Summary</h4><p class=\"mb-2\">When calculating subscription-item entitlements for a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>, if an entitlement override exists for a plan price, addon price, or charge entity, the override&#x27;s value is used instead of the regular entitlement value for that entity. The final subscription entitlement value is then determined using the same logic as described in the <a href=\"#quantity\" class=\"text-blue-600 hover:text-blue-800 underline\">Quantity feature section</a>: if the entitlement value for the feature held by any of the subscription items is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>, then the subscription entitlement value is also <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>. Otherwise, the subscription entitlement value is the sum of all the entitlement values of the subscription items.</p><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following feature record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 28: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></td><td>The number of user licenses provided.</td></tr></tbody></table></div><p class=\"mb-2\">Suppose that the feature has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code> records as follows:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 29: Feature levels records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">is_unlimited</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 30: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a subscription with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 31: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td></tr></tbody></table></div><h5>4. Entitlement override records</h5><p class=\"mb-2\">Suppose there are <a href=\"/docs/api/entitlement_overrides\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement override</a> records added to the subscription for the plan price and charge, as shown below:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 32: Entitlement override records for the plan price and charge.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">charge</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code></td></tr></tbody></table></div><h5>5. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 30, but uses the override values from Table 32 for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code> plan price and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time</code> charge. This is shown in Table 33.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 33: Entitlement values for subscription-items.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th><th>Entitlement value</th><th>Entitlement value subtotal (Entitlement value × <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>)</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code> (Uses the override value from Table 32 instead of the plan price entitlement value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code> (10 x 2)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">3</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code> (Inherited from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>, as no entitlement is defined for this addon price and no override exists.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">15</code> (5 x 3)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">one-time-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code> (Uses the override value from Table 32 instead of the charge entitlement value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">5</code>.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">10</code> (10 x 1)</td></tr></tbody></table></div><h5>6. Determining final subscription entitlements</h5><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement value</strong> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user_licenses</code> feature is the total entitlement value from the last column in Table 33, which amounts to (20 + 15 + 10) = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">45</code>.</p></div></div><div id=\"range-entity-override\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#range-entity-override-content\" aria-expanded=\"false\" aria-controls=\"range-entity-override-content\">Range feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"range-entity-override-content\"><h4>Summary</h4><p class=\"mb-2\">When calculating subscription-item entitlements for a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>, if an entitlement override exists for a plan price, addon price, or charge entity, the override&#x27;s value is used instead of the regular entitlement value for that entity. The final subscription entitlement value is then determined using the same logic as described in the <a href=\"#range\" class=\"text-blue-600 hover:text-blue-800 underline\">Range feature section</a>: if the entitlement value for the feature held by any of the subscription items is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>, then the subscription entitlement value is also <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code>. Otherwise, one of two scenarios are possible:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>, the subscription entitlement value equals the sum of all entitlement values of the subscription items.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>, the subscription entitlement value equals the sum of all entitlement values of the subscription items without exceeding the maximum value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.level[1].value</code>.</p>\n</li>\n</ul><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following feature record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 34: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code></td><td>The maximum number of API requests allowed per minute.</td></tr></tbody></table></div><p class=\"mb-2\">Suppose that the feature has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code> records as follows:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 35: Feature levels records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">is_unlimited</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">100</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1000</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 36: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">450</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">150</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a subscription with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 37: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr></tbody></table></div><h5>4. Entitlement override records</h5><p class=\"mb-2\">Suppose there&#x27;s an <a href=\"/docs/api/entitlement_overrides\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement override</a> added to the subscription for the addon price, as shown below:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 38: Entitlement override record for the addon price and feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">300</code></td></tr></tbody></table></div><h5>5. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 36, but uses the override value from Table 38 for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code> addon price. This is shown in Table 39.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 39: Entitlement values for subscription-items.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th><th>Entitlement value</th><th>Entitlement value subtotal (Entitlement value × <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>)</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">premium-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code> (Matches the value of the plan price.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">800</code> (400 x 2)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">300</code> (Uses the override value from Table 38 instead of inheriting <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">150</code> from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>.)</td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">600</code> (300 x 2)</td></tr></tbody></table></div><h5>6. Determining final subscription entitlements</h5><h6>Case 1: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code></h6><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement value</strong> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">api_rate_limit</code> feature is the total entitlement value from the last column in Table 39, capped at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].value</code>. The total entitlement value is 800 + 600 = 1400. However, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1000</code>, which is less than 1400. Therefore, the final entitlement is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1000</code>.</p><h6>Case 2: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code></h6><p class=\"mb-2\">In this scenario, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[1].value</code> is disregarded, and the <strong class=\"font-semibold\">final entitlement value</strong> is not capped. In other words, the final entitlement value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1400</code>.</p></div></div><div id=\"custom-entity-override\" class=\"cb-accordion\"><div class=\"cb-accordion-title collapsed\" data-toggle=\"collapse\" data-target=\"#custom-entity-override-content\" aria-expanded=\"false\" aria-controls=\"custom-entity-override-content\">Custom feature<i class=\"fa fa-chevron-circle-down fa-lg\" aria-hidden=\"true\"></i></div><div class=\"collapse\" id=\"custom-entity-override-content\"><h4>Summary</h4><p class=\"mb-2\">When calculating subscription-item entitlements for a feature of type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>, if an entitlement override exists for a plan price, addon price, or charge entity, the override&#x27;s value is used instead of the regular entitlement value for that entity. The final subscription entitlement value is then determined using the same logic as described in the <a href=\"#custom\" class=\"text-blue-600 hover:text-blue-800 underline\">Custom feature section</a>: the subscription entitlement value is set to the highest of the identified subscription-item entitlement values.</p><h4>Example</h4><h5>1. Feature record</h5><p class=\"mb-2\">Consider the following feature record:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 40: Feature records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">description</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code></td><td>The form of after-sales support provided to the customer.</td></tr></tbody></table></div><p class=\"mb-2\">Suppose that the feature has <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.levels[]</code> records as follows:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 41: Feature levels records.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">level</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chat</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code></td></tr></tbody></table></div><h5>2. Entitlement records</h5><p class=\"mb-2\">Consider the following entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code> feature:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 42: Entitlement records for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code> feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">chat</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code></td></tr></tbody></table></div><h5>3. Subscription-items records</h5><p class=\"mb-2\">Consider that a subscription with ID <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">AzZjAiTl1btqS2lEj</code> has the following <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_items[]</code> records:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 43: Subscription-items records.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2</code></td></tr></tbody></table></div><h5>4. Entitlement override records</h5><p class=\"mb-2\">Suppose there&#x27;s an <a href=\"/docs/api/entitlement_overrides\" class=\"text-blue-600 hover:text-blue-800 underline\">entitlement override</a> added to the subscription for the addon price, as shown below:</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 44: Entitlement override record for the addon price and feature.</caption><tbody><tr><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entity_type</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code></th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code></th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon_price</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code></td></tr></tbody></table></div><h5>5. Subscription-item entitlements</h5><p class=\"mb-2\">Chargebee Billing now determines the entitlement held by each subscription item based on the entitlements defined in Table 42, but uses the override value from Table 44 for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code> addon price. This is shown in Table 45. For clarity, we&#x27;ve omitted the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code> column because it doesn&#x27;t affect features with type <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><caption>Table 45: Entitlement values for subscription-items.</caption><tbody><tr><th>Index</th><th><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code></th><th>Subscription-Item Entitlement Value</th></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starter-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code> (Matches the value of the plan price.)</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code></td><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code> (Uses the override value from Table 44 instead of inheriting <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">email</code> from the addon <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus</code>.)</td></tr></tbody></table></div><h5>6. Determining final subscription entitlements</h5><p class=\"mb-2\">In this scenario, the <strong class=\"font-semibold\">final entitlement</strong> for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">support</code> feature is the <strong class=\"font-semibold\">highest</strong> of all the subscription-item entitlement values, which in this case is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">call</code> (the overridden value for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plus-monthly-usd</code>).</p></div></div></div></div></div>",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [subscription](/docs/api/subscriptions)\n.\n",
            "maxLength" : 50,
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the [feature](/docs/api/features)\n.\n",
            "maxLength" : 50,
            "example" : null
          },
          "feature_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [name of the feature](/docs/api/features/feature-object#name)\n.\n",
            "maxLength" : 50,
            "example" : null
          },
          "feature_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\"><a href=\"/docs/api/features/feature-object#unit\">The unit of measure</a>\nfor the feature when its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis either <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>\n.</p>",
            "maxLength" : 50,
            "example" : null
          },
          "feature_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the [type of the feature](/docs/api/features/feature-object#type)\nassociated with the granted subscription entitlement.\n",
            "maxLength" : 50,
            "example" : null
          },
          "value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The value denoting the final entitlement level that the subscription holds for the feature.  \n**See also:**\n[How subscription entitlements are determined](/docs/api/subscription_entitlements).\n",
            "maxLength" : 50,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The display name of the final entitlement level that the subscription holds for the feature. It is derived based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nof feature as follows: -   When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>: the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the space-separated concatenation of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> and the pluralized form of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_unit</code>. For example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_unit</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>.</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>: the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>; it&#x27;s set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Not Available</code> when <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>.</li>\n</ul>",
            "maxLength" : 50,
            "example" : null
          },
          "is_overridden" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates whether the entitlement held by the subscription for the feature is overridden via an <code><a href=\"/docs/api/entitlement_overrides\">entitlement_overrides</a></code>\nrecord.</p>",
            "example" : null
          },
          "is_enabled" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates that <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">components.is_enabled</code>\nexists.</p>",
            "example" : null
          },
          "expires_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the subscription entitlements are going to expire.\n",
            "example" : null
          },
          "components" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The component entitlements that constitute this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_entitlement</code>.\nThe effective entitlement <code><a href=\"/docs/api/subscription_entitlements/subscription_entitlement-object#value\">value</a></code>\nand <code><a href=\"/docs/api/subscription_entitlements/subscription_entitlement-object#name\">name</a></code>\nare determined from these component entitlements.</p>",
            "properties" : {
              "entitlement_overrides" : {
                "type" : "object",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">When a subscription entitlement has been explicitly overridden, this object contains the details of said override. An <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code>\ncan be <a href=\"/docs/api/entitlement_overrides/entitlement_override-object#expires_at\">temporary</a>\nsuch that it expires at some point in time and is no longer returned.</p>",
                "properties" : {
                  "value" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">The level of entitlement that the subscription has towards the feature. The possible values depend on the value of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\n:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>: The value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>: This value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The value can be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The value can also be any one of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].value</code> or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code>:</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is not <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The value can be any whole number between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0].value</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[1].value</code> (inclusive).</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[].is_unlimited</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>: The value can be any whole number equal to or greater than <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">levels[0].value</code> or it can be <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unlimited</code> (case-insensitive), indicating unlimited entitlement.</p>\n</li>\n</ul>",
                    "maxLength" : 50,
                    "example" : null
                  },
                  "name" : {
                    "type" : "string",
                    "deprecated" : false,
                    "description" : "<p class=\"mb-2\">A case-sensitive name for the subscription entitlement override. If it was not provided while creating this subscription entitlement override, then it is derived based on the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code>\nas follows:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">range</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity</code>: the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the space-separated concatenation of value and the pluralized form of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_unit</code>. For example, if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_unit</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">user</code>, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> becomes <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">20 users</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">custom</code>: the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">value</code>.</li>\n<li class=\"text-base leading-relaxed\">When <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature.type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">switch</code>: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code> is not applicable.</li>\n</ul>",
                    "maxLength" : 50,
                    "example" : null
                  }
                },
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "is_enabled", "is_overridden", "subscription_id" ],
        "example" : null
      },
      "SubscriptionEntitlementsCreatedDetail" : {
        "type" : "object",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "has_next" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "has_next" ],
        "example" : null
      },
      "SubscriptionEntitlementsCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription_entitlements_created_detail" : {
                "$ref" : "#/components/schemas/SubscriptionEntitlementsCreatedDetail"
              }
            },
            "required" : [ "subscription_entitlements_created_detail" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionEntitlementsUpdatedDetail" : {
        "type" : "object",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "has_next" : {
            "type" : "boolean",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "has_next" ],
        "example" : null
      },
      "SubscriptionEntitlementsUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription_entitlements_updated_detail" : {
                "$ref" : "#/components/schemas/SubscriptionEntitlementsUpdatedDetail"
              }
            },
            "required" : [ "subscription_entitlements_updated_detail" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionEstimate" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 3,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "future", "in_trial", "active", "non_renewing", "paused", "cancelled", "transferred" ],
            "example" : null
          },
          "trial_end_action" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
            "example" : null
          },
          "next_billing_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "pause_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "resume_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "shipping_address" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "first_name" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 150,
                "example" : null
              },
              "last_name" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 150,
                "example" : null
              },
              "email" : {
                "type" : "string",
                "format" : "email",
                "deprecated" : false,
                "maxLength" : 70,
                "example" : null
              },
              "company" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 250,
                "example" : null
              },
              "phone" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "line1" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 150,
                "example" : null
              },
              "line2" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 150,
                "example" : null
              },
              "line3" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 150,
                "example" : null
              },
              "city" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "state_code" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "state" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "country" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "zip" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 20,
                "example" : null
              },
              "validation_status" : {
                "type" : "string",
                "default" : "not_validated",
                "deprecated" : false,
                "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
                "example" : null
              }
            },
            "example" : null
          },
          "contract_term" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "id" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "status" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "active", "completed", "cancelled", "terminated" ],
                "example" : null
              },
              "contract_start" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "example" : null
              },
              "contract_end" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "example" : null
              },
              "billing_cycle" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "minimum" : 0,
                "example" : null
              },
              "action_at_term_end" : {
                "type" : "string",
                "default" : "renew",
                "deprecated" : false,
                "enum" : [ "renew", "evergreen", "cancel", "renew_once" ],
                "example" : null
              },
              "total_contract_value" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "minimum" : 0,
                "example" : null
              },
              "total_contract_value_before_tax" : {
                "type" : "integer",
                "format" : "int64",
                "default" : 0,
                "deprecated" : false,
                "minimum" : 0,
                "example" : null
              },
              "cancellation_cutoff_period" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "example" : null
              },
              "created_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "example" : null
              },
              "subscription_id" : {
                "type" : "string",
                "deprecated" : false,
                "maxLength" : 50,
                "example" : null
              },
              "remaining_billing_cycles" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "minimum" : 0,
                "example" : null
              }
            },
            "required" : [ "action_at_term_end", "billing_cycle", "contract_end", "contract_start", "created_at", "id", "status", "subscription_id", "total_contract_value", "total_contract_value_before_tax" ],
            "example" : null
          }
        },
        "required" : [ "currency_code" ],
        "example" : null
      },
      "SubscriptionGrantConfiguration" : {
        "type" : "object",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "unit_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "feature", "custom_pricing_unit" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "plan_price", "addon", "addon_price", "charge" ],
            "example" : null
          },
          "item_price_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "subscription_item_quantity" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "grant_configuration_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "grant_configuration_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          },
          "derivation_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "inherited", "overridden" ],
            "example" : null
          },
          "grant_configuration_resource_version" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "grant_policies" : {
            "type" : "array",
            "deprecated" : false,
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "amount" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "trigger_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "interval", "one_time" ],
                  "example" : null
                },
                "trigger_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "trigger_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "day", "month", "year" ],
                  "example" : null
                },
                "rollover_type" : {
                  "type" : "string",
                  "default" : "none",
                  "deprecated" : false,
                  "enum" : [ "none", "unlimited", "time_limited", "capped" ],
                  "example" : null
                },
                "rollover_cap_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 50,
                  "example" : null
                },
                "rollover_cap_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "percentage", "absolute" ],
                  "example" : null
                },
                "expiration_type" : {
                  "type" : "string",
                  "default" : "none",
                  "deprecated" : false,
                  "enum" : [ "none", "interval" ],
                  "example" : null
                },
                "expiration_value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "maxLength" : 100,
                  "example" : null
                },
                "expiration_period_unit" : {
                  "type" : "string",
                  "deprecated" : false,
                  "enum" : [ "day", "month", "year" ],
                  "example" : null
                }
              },
              "required" : [ "amount", "expiration_type", "id", "rollover_type", "trigger_type" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "derivation_type", "entity_id", "grant_configuration_id", "grant_configuration_resource_version", "grant_configuration_version", "subscription_id", "subscription_item_quantity", "unit_id" ],
        "example" : null
      },
      "SubscriptionHistory" : {
        "type" : "object",
        "description" : "This resource returns the subscription history.\n",
        "properties" : {
          "item_price_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the item price.\n",
            "maxLength" : 100,
            "example" : null
          },
          "item_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of items.\n\\* addon -\n\naddon\n\\* plan -\n\nplan\n",
            "enum" : [ "plan", "addon", "charge" ],
            "example" : null
          },
          "active_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp to indicate from when this item was attached to the subscription\n",
            "example" : null
          },
          "active_to" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp to indicate till when this item was attached to the subscription\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp to indicate when this subscription was created.\n",
            "example" : null
          },
          "item_unit_amount_in_cents" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "actual_item_unit_amount_in_cents" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "item_amount_in_cents" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "actual_item_amount_in_cents" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "rating_group_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 50,
            "example" : null
          }
        },
        "example" : null
      },
      "SubscriptionItemsRenewedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_notes" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/CreditNote"
                },
                "example" : null
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "credit_notes", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionMetric" : {
        "type" : "object",
        "properties" : {
          "subscription_status" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "in_trial", "active" ],
            "example" : null
          },
          "count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "last_updated_at" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "percentage" : {
            "type" : "number",
            "format" : "double",
            "deprecated" : false,
            "example" : null
          }
        },
        "example" : null
      },
      "SubscriptionMovedInEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              }
            },
            "required" : [ "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionMovedOutEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              }
            },
            "required" : [ "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionMovementFailedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              }
            },
            "required" : [ "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionPauseScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionPausedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_notes" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/CreditNote"
                },
                "example" : null
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "credit_notes", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionPreview" : {
        "type" : "object",
        "description" : "This resource returns subscription preview attributes.\n",
        "properties" : {
          "billing_event" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Describes the time in the subscription lifecycle when the charge is to occur.\n\\* subscription_changed -\n\nSubscription Changed\n\\* subscription_resumed -\n\nSubscription Resumed\n\\* subscription_renewed -\n\nSubscription Renewed\n\\* subscription_activated -\n\nSubscription Activated\n\\* subscription_cancelled -\n\nSubscription Cancelled\n\\* subscription_started -\n\nSubscription Started\n\\* subscription_paused -\n\nSubscription Paused\n\\* subscription_created -\n\nSubscription Created\n",
            "enum" : [ "subscription_created", "subscription_changed", "subscription_renewed", "subscription_cancelled", "subscription_resumed", "subscription_paused", "subscription_started", "subscription_activated" ],
            "example" : null
          },
          "billing_sequence_number" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Billing sequence number.\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp to indicate when the event was occurred.\n",
            "example" : null
          },
          "subscription" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "JSON object representing subscription\n",
            "example" : null
          },
          "invoices" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "JSON object representing invoice\n",
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "credit_notes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "JSON object representing credit_notes\n",
            "items" : {
              "example" : null
            },
            "example" : null
          },
          "unbilled_charges" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Represents the preview of the unbilled charges generated during 'estimate' operation.\n",
            "items" : {
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "subscription" ],
        "example" : null
      },
      "SubscriptionRampAppliedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "ramp" : {
                "$ref" : "#/components/schemas/Ramp"
              }
            },
            "required" : [ "ramp" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionRampCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "ramp" : {
                "$ref" : "#/components/schemas/Ramp"
              }
            },
            "required" : [ "ramp" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionRampDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "ramp" : {
                "$ref" : "#/components/schemas/Ramp"
              }
            },
            "required" : [ "ramp" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionRampDraftedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "ramp" : {
                "$ref" : "#/components/schemas/Ramp"
              }
            },
            "required" : [ "ramp" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionRampUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "ramp" : {
                "$ref" : "#/components/schemas/Ramp"
              }
            },
            "required" : [ "ramp" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionReactivatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionReactivatedWithBackdatingEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionRenewalReminderEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionRenewedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionResumedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionResumptionScheduledEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionScheduledCancellationRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionScheduledChange" : {
        "type" : "object",
        "properties" : {
          "action_type" : {
            "type" : "string",
            "deprecated" : false,
            "enum" : [ "cancel", "pause", "reactivate" ],
            "example" : null
          },
          "data" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 65000,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          },
          "modified_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "action_type", "created_at", "modified_at" ],
        "example" : null
      },
      "SubscriptionScheduledChangesRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionScheduledPauseRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionScheduledResumptionRemovedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionSetting" : {
        "type" : "object",
        "properties" : {
          "subscription_cancellation" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "effective_from" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "immediately", "end_of_term", "specific_date" ],
                "example" : null
              },
              "credit_option" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "none", "prorate", "full" ],
                "example" : null
              },
              "refund_option" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "no_action", "schedule_refund" ],
                "example" : null
              },
              "account_receivable_handling" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "no_action", "schedule_payment_collection", "write_off" ],
                "example" : null
              },
              "unbilled_charge_option" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "invoice", "delete" ],
                "example" : null
              },
              "apply_credits" : {
                "type" : "boolean",
                "default" : true,
                "deprecated" : false,
                "example" : null
              }
            },
            "example" : null
          },
          "pause_subscription" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "enabled" : {
                "type" : "boolean",
                "deprecated" : false,
                "example" : null
              },
              "effective_from" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "immediately", "end_of_term", "specific_date" ],
                "example" : null
              },
              "pause_resumption" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "pause_indefinitely", "specific_date" ],
                "example" : null
              },
              "unbilled_charges" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "no_action", "invoice" ],
                "example" : null
              },
              "invoice_in_dunning" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "continue", "stop" ],
                "example" : null
              },
              "resumption" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "immediately", "specific_date" ],
                "example" : null
              },
              "invoice_option" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "invoice_immediately", "add_to_unbilled_charges" ],
                "example" : null
              },
              "account_receivable" : {
                "type" : "string",
                "deprecated" : false,
                "enum" : [ "no_action", "collect_payment" ],
                "example" : null
              }
            },
            "example" : null
          },
          "gift_subscription" : {
            "type" : "object",
            "deprecated" : false,
            "properties" : {
              "enabled" : {
                "type" : "boolean",
                "deprecated" : false,
                "example" : null
              },
              "automatically_claim_gifts" : {
                "type" : "boolean",
                "default" : false,
                "deprecated" : false,
                "example" : null
              },
              "allow_customer_to_claim_gifts_anytime" : {
                "type" : "boolean",
                "default" : false,
                "deprecated" : false,
                "example" : null
              },
              "claim_validity_days" : {
                "type" : "integer",
                "format" : "int32",
                "deprecated" : false,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "example" : null
      },
      "SubscriptionShippingAddressUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionStartedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "card", "customer", "invoice", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionTrialEndReminderEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "SubscriptionTrialExtendedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "subscription" : {
                "$ref" : "#/components/schemas/Subscription"
              },
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "card" : {
                "$ref" : "#/components/schemas/Card"
              },
              "advance_invoice_schedule" : {
                "$ref" : "#/components/schemas/AdvanceInvoiceSchedule"
              }
            },
            "required" : [ "advance_invoice_schedule", "card", "customer", "subscription" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TaxExemptReason" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "tax_not_configured", "region_non_taxable", "export", "customer_exempt", "product_exempt", "zero_rated", "reverse_charge", "high_value_physical_goods", "zero_value_item", "tax_not_configured_external_provider" ],
        "example" : null
      },
      "TaxJurisType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "country", "federal", "state", "county", "city", "special", "unincorporated", "other" ],
        "example" : null
      },
      "TaxOverrideReason" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "id_exempt", "customer_exempt", "export" ],
        "example" : null
      },
      "TaxWithheld" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-tax-withheld\"></span><p class=\"mb-2\">Tax regulations in many countries allow taxes to be deducted by the buyer while making payments for products and services. The buyer then pays this tax to the taxation authority. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_withheld</code> resource captures the details of such tax deductions.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">This resource is available as the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_taxes_withheld</code> sub-resource under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice</code>s.</li>\n<li class=\"text-base leading-relaxed\">Whenever refunds are provided against this resource, they are available as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">linked_tax_withheld_refunds</code> sub-resource under <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">credit_note</code>s.</li>\n</ul></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An auto-generated unique identifier for the tax withheld. The value starts with the prefix <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_</code>.\nFor example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tax_wh_16BdDXSlbu4uV1Ee6</code>\n.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "reference_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique external reference number for the tax withheld. Typically, this is the reference number used by the system you are integrating the API with. Depending on your integration, this could be the reference number issued by the taxation authority to identify the customer or the specific tax transaction.\n",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The description for this tax withheld.\n",
            "maxLength" : 65000,
            "example" : null
          },
          "date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Date or time associated with the tax withheld.\n",
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The amount withheld by the customer as tax from the invoice. The unit depends on the [type of currency](/docs/api/getting-started)\n.\n",
            "minimum" : 1,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "id" ],
        "example" : null
      },
      "TaxWithheldDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "tax_withheld" : {
                "$ref" : "#/components/schemas/TaxWithheld"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              }
            },
            "required" : [ "credit_note", "invoice", "tax_withheld" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TaxWithheldRecordedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "tax_withheld" : {
                "$ref" : "#/components/schemas/TaxWithheld"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              }
            },
            "required" : [ "credit_note", "invoice", "tax_withheld" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TaxWithheldRefundedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "tax_withheld" : {
                "$ref" : "#/components/schemas/TaxWithheld"
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              },
              "credit_note" : {
                "$ref" : "#/components/schemas/CreditNote"
              }
            },
            "required" : [ "credit_note", "invoice", "tax_withheld" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Taxability" : {
        "type" : "string",
        "default" : "taxable",
        "deprecated" : false,
        "enum" : [ "taxable", "exempt" ],
        "example" : null
      },
      "TaxjarExemptionCategory" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "wholesale", "government", "other" ],
        "example" : null
      },
      "ThirdPartyPaymentMethod" : {
        "type" : "object",
        "description" : "Used when you want to copy card information between two gateways (such as copying cards between Authorize.Net and Stripe). Will contain details of the payment method type (card, Amazon Payments, etc.), name of the gateway, and the reference ID that the gateway uses to identify the specific card.\n",
        "properties" : {
          "type" : {
            "type" : "string",
            "default" : "card",
            "deprecated" : false,
            "description" : "Type of the payment method.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* sepa_instant_transfer -\n\nPayments made via Sepa Instant Transfer\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* pay_to -\n\nPayments made via PayTo\n\\* revolut_pay -\n\nPayments made via Revolut Pay.\n\\* naver_pay -\n\nPayments made via Naver Pay.\n\\* giropay -\n\nPayments made via giropay.\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* stablecoin -\n\nPayments made via Stablecoin.\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* kakao_pay -\n\nPayments made via Kakao Pay.\n\\* sofort -\n\nPayments made via Sofort.\n\\* pix -\n\nPayments made via Pix\n\\* pay_co -\n\nPayments made via PayCo\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* go_pay -\n\nPayments made via GoPay\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* pay_by_bank -\n\nPay By Bank\n\\* online_banking_poland -\n\nPayments made via Online Banking Poland\n\\* after_pay -\n\nPayments made via Afterpay\n\\* faster_payments -\n\nPayments made via Faster Payments\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* payme -\n\nPayments made via PayMe\n\\* klarna_pay_now -\n\nPayments made via Klarna Pay Now\n\\* twint -\n\nPayments made via Twint\n\\* swish -\n\nPayments made via Swish\n\\* automated_bank_transfer -\n\nRepresents virtual bank account using which the payment will be done.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* venmo -\n\nPayments made via Venmo\n\\* ideal -\n\nPayments made via iDEAL.\n\\* trustly -\n\nTrustly\n\\* upi -\n\nUPI Payments.\n\\* kbc_payment_button -\n\nKBC Payment Button\n\\* cash_app_pay -\n\nPayments made via Cash App Pay.\n\\* payconiq_by_bancontact -\n\nPayments made via Payconiq by Bancontact.\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n",
            "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the gateway this card is stored with.\n\\* twikey -\n\nTwikey is a payment service provider that specializes in processing direct debit payments across the EU.\n\\* bluesnap -\n\nBlueSnap is a payment gateway.\n\\* jp_morgan -\n\nJ.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different [payment_source_type](/docs/api/payment_sources/payment_source-object#type).  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/jp-morgan-bacs&ref=feature) to enable the J.P. Morgan Mobility Payment Solutions gateway via payFURL for your test and live sites.\n\\* tco -\n\n2Checkout is a payment gateway.\n\\* deutsche_bank -\n\nDeutsche Bank is the leading German bank with strong European roots and a global network.  \nThis feature is a **Private Beta Release**.\n\\* bluepay -\n\nBluePay is a payment gateway.\n\\* paypal_express_checkout -\n\nPayPal Express Checkout is a payment gateway.\n\\* paypal_payflow_pro -\n\nPayPal Payflow Pro is a payment gateway.\n\\* razorpay -\n\nRazorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n\\* global_payments -\n\nGlobal Payments is a payment service provider.\n\\* dlocal -\n\nDlocal provides payment solutions for global commerce by accepting local payment methods.\n\\* not_applicable -\n\nIndicates that payment gateway is not applicable for this resource.\n\\* checkout_com -\n\nCheckout.com is a payment gateway.\n\\* adyen -\n\nAdyen is a payment gateway.\n\\* braintree -\n\nBraintree is a payment gateway.\n\\* nmi -\n\nNMI is a payment gateway.\n\\* worldpay -\n\nWorldPay is a payment gateway\n\\* paystack -\n\nPaystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/paystack&ref=feature) to enable Paystack for your test and live sites.\n\\* pay_com -\n\nPay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.\n\\* moneris_us -\n\nMoneris USA is a payment gateway.\n\\* pin -\n\nPin is a payment gateway\n\\* authorize_net -\n\nAuthorize.net is a payment gateway\n\\* stripe -\n\nStripe is a payment gateway.\n\\* moneris -\n\nMoneris is a payment gateway.\n\\* chargebee -\n\nChargebee test gateway.\n\\* cybersource -\n\nCyberSource is a payment gateway.\n\\* ecentric -\n\nEcentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n\\* first_data_global -\n\nFirst Data Global Gateway Virtual Terminal Account\n\\* exact -\n\nExact Payments is a payment gateway.\n\\* nuvei -\n\nNuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/nuvei&ref=feature) to enable Nuvei for your test and live sites.\n\\* eway -\n\neWAY Account is a payment gateway.\n\\* metrics_global -\n\nMetrics global is a leading payment service provider providing unified payment services in the US.\n\\* amazon_payments -\n\nAmazon Payments is a payment service provider.\n\\* windcave -\n\nWindcave provides an end to end payment processing solution in ANZ and other leading global markets.\n\\* quickbooks -\n\nIntuit QuickBooks Payments gateway\n\\* wepay -\n\nWePay is a payment gateway.\n\\* ezidebit -\n\nEzidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.  \nThis feature is a **Private Beta Release**.\n\\* wirecard -\n\nWireCard Account is a payment service provider.\n\\* chargebee_payments -\n\nChargebee Payments gateway\n\\* sage_pay -\n\nSage Pay is a payment gateway.\n\\* elavon -\n\nElavon Virtual Merchant is a payment solution.\n\\* paypal_pro -\n\nPayPal Pro Account is a payment gateway.\n\\* orbital -\n\nChase Paymentech(Orbital) is a payment gateway.\n\\* paypal -\n\nPayPal Commerce is a payment gateway.\n\\* beanstream -\n\nBambora(formerly known as Beanstream) is a payment gateway.\n\\* hdfc -\n\nHDFC Account is a payment gateway.\n\\* ingenico_direct -\n\nWorldline Online Payments is a payment gateway.\n\\* ogone -\n\nIngenico ePayments (formerly known as Ogone) is a payment gateway.\n\\* migs -\n\nMasterCard Internet Gateway Service payment gateway.\n\\* vantiv -\n\nVantiv is a payment gateway.\n\\* bank_of_america -\n\nBank of America Gateway\n\\* eway_rapid -\n\neWAY Rapid is a payment gateway.\n\\* gocardless -\n\nGoCardless is a payment service provider.\n\\* mollie -\n\nMollie is a payment gateway.\n\\* paymill -\n\nPAYMILL is a payment gateway.\n\\* balanced_payments -\n\nBalanced is a payment gateway\n\\* solidgate -\n\nSolidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release**.\n\\* ebanx -\n\nEBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.\n",
            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account this payment method is stored with.\n",
            "maxLength" : 50,
            "example" : null
          },
          "reference_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier provided by the gateway to reference that specific card.\n",
            "maxLength" : 100,
            "example" : null
          }
        },
        "required" : [ "gateway", "reference_id", "type" ],
        "example" : null
      },
      "ThunkingPlan" : {
        "type" : "object",
        "description" : "This resource is used to return thunking plan.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier for the item price. It is unique and immutable.\n",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A unique display name for the item price in the Chargebee UI. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">external_name</code>\nis not provided, this is also used in customer-facing pages and documents such as <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id of the item that the item price belongs to.\n",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Description of the item price.\n",
            "maxLength" : 2000,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The status of the item price.</p>\n* archived - <p class=\"mb-2\">The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.</p>\n* active - <p class=\"mb-2\">The item price can be used in subscriptions.</p>\n* deleted - <p class=\"mb-2\">Indicates that the item price has been deleted. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\ncan be reused.</p>",
            "enum" : [ "active", "archived", "deleted" ],
            "example" : null
          },
          "external_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The name of the item price used in customer-facing pages and documents. These include <a href=\"/docs/api/invoices\">invoices</a>\nand <a href=\"/docs/api/hosted_pages\">hosted pages</a>.\nIf not provided, then <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\nis used</p>",
            "maxLength" : 100,
            "example" : null
          },
          "price_variant_id" : {
            "type" : "string",
            "deprecated" : false,
            "maxLength" : 100,
            "example" : null
          },
          "proration_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "null\n",
            "enum" : [ "site_default", "partial_term", "full_term" ],
            "example" : null
          },
          "pricing_model" : {
            "type" : "string",
            "default" : "flat_fee",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The <a href=\"https://www.chargebee.com/docs/2.0/plans.html#pricing-models\" target=\"_blank\">pricing scheme</a> for this item price. If subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a> exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code> cannot be changed.</p>\n* tiered - <p class=\"mb-2\">There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.</p>\n* per_unit - <p class=\"mb-2\">A fixed price per unit quantity.</p>\n* flat_fee - <p class=\"mb-2\">A fixed price that is not quantity-based.</p>\n* volume - <p class=\"mb-2\">The per unit price is based on the tier that the total quantity falls in.</p>\n* stairstep - <p class=\"mb-2\">A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.</p>",
            "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
            "example" : null
          },
          "price" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The cost of the item price when the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the <a href=\"/docs/api/getting-started\">minor unit of the currency</a>\n.</p>",
            "minimum" : 0,
            "example" : null
          },
          "price_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The price of the item when the pricing_model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>.\nWhen the pricing model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">per_unit</code>\n, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when <a href=\"/docs/api/getting-started\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
            "maxLength" : 39,
            "example" : null
          },
          "period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">When the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>: The billing period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create a 6 month plan by providing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> as 6 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as month.</li>\n<li class=\"text-base leading-relaxed\">When item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>: The period of the addon in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>s. For example, create an addon with a 2 month <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code> by providing period as 2 and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">month</code>. The period of an addon is the duration for which its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">price</code> applies. When attached to a plan, the addon is billed for the billing period of the plan. <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">Learn more.</a></li>\n</ul>\n<p class=\"mb-2\">If subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></p>",
            "minimum" : 1,
            "example" : null
          },
          "period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period</code>.\nIf subscriptions or invoices exist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\ncannot be changed. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">period_unit</code>\nis mandatory when the item <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code></p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>\n* week - <p class=\"mb-2\">A period of 7 days.</p>\n* year - <p class=\"mb-2\">A period of 1 calendar year.</p>",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "trial_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The trial period of the plan in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period_unit</code>\ns. You can also set <a href=\"https://www.chargebee.com/docs/2.0/addons-trial.html\">trial periods for addons</a>\n; contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Support</a>\nto enable that feature.</p>",
            "minimum" : 0,
            "example" : null
          },
          "trial_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unit of time for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">trial_period</code>\n.</p>\n* month - <p class=\"mb-2\">A period of 1 calendar month.</p>\n* day - <p class=\"mb-2\">A period of 24 hours.</p>",
            "enum" : [ "day", "month" ],
            "example" : null
          },
          "trial_end_action" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Applicable only when <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">End-of-trial Action</a>\nhas been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item.type</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code>\nand a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the <a href=\"/docs/api/subscriptions/subscription-object#trial_end_action\">subscription-level</a>\n.</p>\n* cancel_subscription - <p class=\"mb-2\">The subscription cancels.</p>\n* activate_subscription - <p class=\"mb-2\">The subscription activates and charges are raised for non-metered items.</p>\n* site_default - <p class=\"mb-2\">The action <a href=\"https://www.chargebee.com/docs/2.0/trial_periods_hidden.html#how-to-define-the-end-of-trial-actions-for-subscriptions\" target=\"_blank\">configured for the site</a>\nat the time when the trial ends, takes effect.</p>",
            "enum" : [ "site_default", "activate_subscription", "cancel_subscription" ],
            "example" : null
          },
          "shipping_period" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Defines the shipping frequency. Example: to bill customer every 2 weeks, provide \"2\" here.\n",
            "minimum" : 1,
            "example" : null
          },
          "shipping_period_unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Defines the shipping frequency in association with shipping period.\n\\* year -\n\nA period of 1 calendar year.\n\\* day -\n\nA period of 24 hours.\n\\* week -\n\nA period of 7 days.\n\\* month -\n\nA period of 1 calendar month.\n",
            "enum" : [ "day", "week", "month", "year" ],
            "example" : null
          },
          "billing_cycles" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The default number of billing cycles a subscription to the plan must run. Can be <a href=\"/docs/api/subscriptions\">overridden</a> for a subscription.\nAddons can also <a href=\"https://www.chargebee.com/docs/2.0/addons-billingcycle.html\" target=\"_blank\">have billing cycles</a>. However, you must contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Support</a> to enable that. Also, for addons, you can <a href=\"/docs/api/attached_items\">override this</a> while attaching it to a plan. However, if you provide the value while <a href=\"/docs/api/subscriptions/subscription-object#subscription_items_item_type\">applying the addon to a subscription</a>, then that value takes still higher precedence.\nIf subscriptions, invoices or <a href=\"/docs/api/differential_prices\">differential prices</a>\nexist for this item price, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">billing_cycles</code>\ncannot be changed.</p>",
            "minimum" : 1,
            "example" : null
          },
          "free_quantity" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 0,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Free quantity the subscriptions of this <strong class=\"font-semibold\">plan</strong> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> will have. Only the quantity exceeding this value will be charged in the subscription.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code> is currently supported only for <a href=\"/docs/api/items/item-object#type\" class=\"text-blue-600 hover:text-blue-800 underline\">plan</a> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.</li>\n<li class=\"text-base leading-relaxed\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">free_quantity</code>\nis not supported for the <a href=\"https://www.chargebee.com/docs/2.0/understanding-usages.html\">Usage-Based Billing</a>\n(UBB). All included or free quantities should be configured exclusively through <a href=\"/docs/api/entitlements\">entitlements</a>\n.</li>\n</ul></div>",
            "minimum" : 0,
            "example" : null
          },
          "free_quantity_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when [multi-decimal pricing](/docs/api/getting-started)\nis enabled.\n",
            "maxLength" : 33,
            "example" : null
          },
          "channel" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The subscription channel this object originated from and is maintained in.\n\\* web -\n\nThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.\n\\* app_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Apple App Store. Direct manipulation of this object via UI or API is disallowed.\n\\* play_store -\n\nThe object data is synchronized with data from [in-app subscription(s)](/docs/api/in_app_subscriptions)\ncreated in Google Play Store. Direct manipulation of this object via UI or API is disallowed.\n",
            "enum" : [ "web", "app_store", "play_store" ],
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this item price was last updated\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this item price was created\n",
            "example" : null
          },
          "usage_accumulation_reset_frequency" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "null\n",
            "enum" : [ "never", "subscription_billing_frequency" ],
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The type of the item.\n\\* plan -\n\nAn essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription.\n\\* charge -\n\nA non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](/docs/api/v2/pcv-1/invoices/create-invoice-for-a-one-time-charge)\nwithout being applied to a subscription.\n\\* addon -\n\nA recurring component that can be added to a subscription in addition to its plan.\n",
            "enum" : [ "plan", "addon", "charge" ],
            "example" : null
          },
          "is_shippable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Indicates that the item is a physical product. If Orders are enabled in Chargebee, subscriptions created for this item will have orders associated with them.\n",
            "example" : null
          },
          "giftable" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Specifies if gift subscriptions can be created for this item.\n",
            "example" : null
          },
          "redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">enabled_for_checkout</code>\n, then the URL to be redirected to once the checkout is complete. This attribute is only available for plan-items.</p>",
            "maxLength" : 500,
            "example" : null
          },
          "enabled_for_checkout" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Allow the plan to subscribed to via Checkout. Applies only for plan-items.\n**Note:**\nOnly the in-app layout of Checkout is supported.\n",
            "example" : null
          },
          "enabled_in_portal" : {
            "type" : "boolean",
            "default" : true,
            "deprecated" : false,
            "description" : "Allow customers to change their subscription to this plan via the [Self-Serve Portal](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html).\nApplies only for plan-items. This requires the Portal configuration to [allow changing subscriptions](https://www.chargebee.com/docs/2.0/inapp-self-serve-portal.html#allow-change-subscription)\n.\n",
            "example" : null
          },
          "included_in_mrr" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The item is included in MRR calculations for your site. This attribute is only applicable for items of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type = charge</code>\nand when the feature is enabled in Chargebee. Note: If the site-level setting is to exclude charge-items from MRR calculations, this value is always returned <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n.</p>",
            "example" : null
          },
          "item_applicability" : {
            "type" : "string",
            "default" : "all",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates which addon-items and charge-items can be applied to the item. Only meant for plan-items. Other details of attaching items such as whether to attach as a mandatory item or to attach on a certain event, can be specified using the <a href=\"/docs/api/attached_items/create-an-attached-item\">Create</a>\nor <a href=\"/docs/api/attached_items/update-an-attached-item\">Update an attached item</a>\nAPI.</p>\n* all - <p class=\"mb-2\">all addon-items and charge-items are applicable to this plan-item.</p>\n* restricted - <p class=\"mb-2\">only the addon-items or charge-items provided in <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">applicable_items</code>\ncan be applied to this plan-item.</p>",
            "enum" : [ "all", "restricted" ],
            "example" : null
          },
          "gift_claim_redirect_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The URL to redirect to once the gift has been claimed by the receiver.\n",
            "maxLength" : 500,
            "example" : null
          },
          "unit" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unit of measure for a quantity-based item. This is displayed on the Chargebee UI and on customer facing documents/pages. The latter includes [hosted pages](/docs/api/hosted_pages)\n, [invoices](/docs/api/invoices)\nand [quotes](/docs/api/quotes).\nExamples follow:\n\n* \"user\" for a cloud-collaboration platform.\n* \"GB\" for a data service.\n* \"issue\" for a magazine.\n",
            "maxLength" : 30,
            "example" : null
          },
          "item_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the items.\n",
            "maxLength" : 50,
            "example" : null
          },
          "item_description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Description of the item. This is visible only in Chargebee and not to customers.\n",
            "maxLength" : 500,
            "example" : null
          },
          "item_updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the item was last updated.\n",
            "example" : null
          },
          "applicable_item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Id of the addon-item or plan-item that can be applied to the plan-item.\n",
            "maxLength" : 100,
            "example" : null
          },
          "sku" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This maps to the sku or product name in the accounting integration.\n",
            "maxLength" : 100,
            "example" : null
          },
          "accounting_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the chart of accounts under which the item price falls in the accounting system.\n",
            "maxLength" : 100,
            "example" : null
          },
          "accounting_category1" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, provide the category name and option. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">:</code> . For example:<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: Singapore.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::...</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Classes, provide the class name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Services : Plan.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Locations, provide the name of the Location here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
            "maxLength" : 100,
            "example" : null
          },
          "accounting_category2" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/xero.html \" target=\"_blank\"><strong class=\"font-semibold\">Xero:</strong></a> If you&#x27;ve categorized your products in Xero, then provide the second category name and option here. Use the format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: ....</code> For example, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Region: South</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/quickbooks.html \" target=\"_blank\"><strong class=\"font-semibold\">QuickBooks:</strong></a> If you&#x27;ve categorized your product sales in QuickBooks according to Location, provide the Location name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">::....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Location: North America: Canada</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Locations, provide the location name here. Use the following format <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">NA:US:CA</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under Dimensions, provide the value of the Dimension here.</li>\n</ul>\n<span featureId=\"cb-quickbooks-integration, cb-xero-integration\" isMicro=\"true\"></span>",
            "maxLength" : 100,
            "example" : null
          },
          "accounting_category3" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Used exclusively with the following <a href=\"https://www.chargebee.com/docs/2.0/finance-integration-index.html \" target=\"_blank\">accounting integrations</a></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/netsuite.html \" target=\"_blank\"><strong class=\"font-semibold\">NetSuite:</strong></a> If you&#x27;ve categorized your products in NetSuite under Departments, pass the department name here. Use the following format: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">: : ....</code> For example: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Production: Assembly.</code></li>\n<li class=\"text-base leading-relaxed\"><a href=\"https://www.chargebee.com/docs/2.0/intacct.html \" target=\"_blank\"><strong class=\"font-semibold\">Intacct:</strong></a> If you&#x27;ve classified your products in Intacct under multiple Dimensions, provide the value of the second Dimension here.</li>\n</ul>",
            "maxLength" : 100,
            "example" : null
          },
          "accounting_category4" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/1.0/finance-integration-index.html )\n\n* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html ) Provide the \"Revenue Recognition Rule Id\" for the product from NetSuite.\n* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html ) If you have configured \"Revenue Recognition Templates\" for products in Intacct, provide the template ID for the product.\n",
            "maxLength" : 100,
            "example" : null
          },
          "tax_profile_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The tax profile of the item price.\n",
            "maxLength" : 50,
            "example" : null
          },
          "avalara_sale_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Indicates the [Avalara sale type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n\\* retail -\n\nTransaction is a sale to an end user\n\\* vendor_use -\n\nTransaction is for an item that is subject to vendor use tax\n\\* consumed -\n\nTransaction is for an item that is consumed directly\n\\* wholesale -\n\nTransaction is a sale to another company that will resell your product or service to another consumer\n",
            "enum" : [ "wholesale", "retail", "consumed", "vendor_use" ],
            "example" : null
          },
          "avalara_transaction_type" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Indicates the [Avalara transaction type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
            "example" : null
          },
          "avalara_service_type" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Indicates the [Avalara service type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem)\nfor the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html)\n.\n",
            "example" : null
          },
          "avalara_tax_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [Avalara tax codes](https://taxcode.avatax.avalara.com)\nfor the item price. Applicable only if you use [AvaTax for Sales integration](https://www.chargebee.com/docs/2.0/avatax-for-sales.html)\n.\n",
            "maxLength" : 50,
            "example" : null
          },
          "hsn_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html)\nto which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:\n\n* [**India**](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst) has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)\n* The [**AvaTax for Sales** integration](https://www.chargebee.com/docs/avalara.html) has been enabled in Chargebee.\n",
            "maxLength" : 50,
            "example" : null
          },
          "taxjar_product_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The [TaxJar product code](https://developers.taxjar.com/api/reference/#get-list-tax-categories)\nfor the item price. Applicable only if you use [TaxJar integration](https://www.chargebee.com/docs/2.0/taxjar.html)\n.\n",
            "maxLength" : 50,
            "example" : null
          },
          "setup_cost" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "One-time setup fee charged as part of the first invoice.\n",
            "minimum" : 1,
            "example" : null
          },
          "addon_applicability" : {
            "type" : "string",
            "default" : "all",
            "deprecated" : false,
            "description" : "Indicates if all or only some addons are applicable with the plan.\n\\* all -\n\nAll addons are applicable with this plan.\n\\* restricted -\n\nOnly addons marked as 'applicable_addons' are applicable with the plan.\n",
            "enum" : [ "all", "restricted" ],
            "example" : null
          },
          "charge_type" : {
            "type" : "string",
            "default" : "recurring",
            "deprecated" : false,
            "description" : "Type of charge\n\\* non_recurring -\n\nCharged immediately and only once every time it is applied.\n\\* recurring -\n\nCharges are automatically applied in sync with the billing frequency of subscription.\n",
            "enum" : [ "recurring", "non_recurring" ],
            "example" : null
          },
          "item_model" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "If enabled indicates that the particular site is on new Item model, else on old model\n",
            "example" : null
          }
        },
        "required" : [ "addon_applicability", "charge_type", "created_at", "enabled_for_checkout", "enabled_in_portal", "free_quantity", "giftable", "id", "item_model", "item_name", "name", "pricing_model", "type" ],
        "example" : null
      },
      "TimeMachine" : {
        "type" : "object",
        "description" : "Time Machine is a simulation feature which imitates the key characteristics, behaviours and functions of the billing configurations. It is a virtual time travelling tool which facilitates the integration testing process by carrying out subscription renewals, dunning, webhooks etc on a hypothetical time frame.\n\nYou can use Time Machine in the test site to verify if the billing rules configured in your site adhere to your expectations before executing them in real time. This feature can be used in both API and UI versions.\n\nView this [doc](https://www.chargebee.com/docs/time-machine.html) for more details.\n\n**Note:** In order to use Time Machine via API , you need to first \"enable\" the Time Travel option which is available under **Settings** \\> **Configure Chargebee** \\> **Time Machine**.\n",
        "properties" : {
          "name" : {
            "type" : "string",
            "default" : "delorean",
            "deprecated" : false,
            "description" : "The name of the time machine. Currently only **delorean**\nis allowed\n",
            "maxLength" : 50,
            "example" : null
          },
          "time_travel_status" : {
            "type" : "string",
            "default" : "not_enabled",
            "deprecated" : false,
            "description" : "The current status of time travel\n\\* succeeded -\n\nTime travel has succeeded.\n\\* not_enabled -\n\nTime travel has not been enabled for the site\n\\* failed -\n\nTime travel has failed. Check the failure code and failure reason attributes for further details.\n**Note:**\nThe time machine needs to be reset by starting afresh again.\n\\* in_progress -\n\nTime travel is in progress\n",
            "enum" : [ "not_enabled", "in_progress", "succeeded", "failed" ],
            "example" : null
          },
          "genesis_time" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The start time of the time machine. Specified when 'starting afresh'\n",
            "example" : null
          },
          "destination_time" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The destination time to which the time machine is travelling (or has traveled)\n",
            "example" : null
          },
          "failure_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The failure code. This will follow the api error code convention\n",
            "maxLength" : 250,
            "example" : null
          },
          "failure_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The more descriptive failure reason.\n",
            "maxLength" : 250,
            "example" : null
          },
          "error_json" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The failure details as error json.\n",
            "maxLength" : 1000,
            "example" : null
          }
        },
        "required" : [ "destination_time", "genesis_time", "name", "time_travel_status" ],
        "example" : null
      },
      "Token" : {
        "type" : "object",
        "description" : "Tokenization hides sensitive payment information into a unique token for a secure transaction. The token does not expose any actual payment details.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the Chargebee Token\n",
            "maxLength" : 40,
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the gateway this token is stored in.\n\\* twikey -\n\nTwikey is a payment service provider that specializes in processing direct debit payments across the EU.\n\\* bluesnap -\n\nBlueSnap is a payment gateway.\n\\* tco -\n\n2Checkout is a payment gateway.\n\\* first_data_global -\n\nFirst Data Global Gateway Virtual Terminal Account\n\\* exact -\n\nExact Payments is a payment gateway.\n\\* bluepay -\n\nBluePay is a payment gateway.\n\\* paypal_express_checkout -\n\nPayPal Express Checkout is a payment gateway.\n\\* eway -\n\neWAY Account is a payment gateway.\n\\* paypal_payflow_pro -\n\nPayPal Payflow Pro is a payment gateway.\n\\* razorpay -\n\nRazorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n\\* global_payments -\n\nGlobal Payments is a payment service provider.\n\\* amazon_payments -\n\nAmazon Payments is a payment service provider.\n\\* not_applicable -\n\nIndicates that payment gateway is not applicable for this resource.\n\\* checkout_com -\n\nCheckout.com is a payment gateway.\n\\* adyen -\n\nAdyen is a payment gateway.\n\\* braintree -\n\nBraintree is a payment gateway.\n\\* nmi -\n\nNMI is a payment gateway.\n\\* quickbooks -\n\nIntuit QuickBooks Payments gateway\n\\* wepay -\n\nWePay is a payment gateway.\n\\* worldpay -\n\nWorldPay is a payment gateway\n\\* wirecard -\n\nWireCard Account is a payment service provider.\n\\* chargebee_payments -\n\nChargebee Payments gateway\n\\* sage_pay -\n\nSage Pay is a payment gateway.\n\\* moneris_us -\n\nMoneris USA is a payment gateway.\n\\* pin -\n\nPin is a payment gateway\n\\* authorize_net -\n\nAuthorize.net is a payment gateway\n\\* elavon -\n\nElavon Virtual Merchant is a payment solution.\n\\* paypal_pro -\n\nPayPal Pro Account is a payment gateway.\n\\* orbital -\n\nChase Paymentech(Orbital) is a payment gateway.\n\\* paypal -\n\nPayPal Commerce is a payment gateway.\n\\* beanstream -\n\nBambora(formerly known as Beanstream) is a payment gateway.\n\\* hdfc -\n\nHDFC Account is a payment gateway.\n\\* ingenico_direct -\n\nWorldline Online Payments is a payment gateway.\n\\* ogone -\n\nIngenico ePayments (formerly known as Ogone) is a payment gateway.\n\\* migs -\n\nMasterCard Internet Gateway Service payment gateway.\n\\* stripe -\n\nStripe is a payment gateway.\n\\* vantiv -\n\nVantiv is a payment gateway.\n\\* moneris -\n\nMoneris is a payment gateway.\n\\* chargebee -\n\nChargebee test gateway.\n\\* eway_rapid -\n\neWAY Rapid is a payment gateway.\n\\* gocardless -\n\nGoCardless is a payment service provider.\n\\* mollie -\n\nMollie is a payment gateway.\n\\* paymill -\n\nPAYMILL is a payment gateway.\n\\* balanced_payments -\n\nBalanced is a payment gateway\n\\* cybersource -\n\nCyberSource is a payment gateway.\n",
            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account in which this token is stored.\n",
            "maxLength" : 50,
            "example" : null
          },
          "payment_method_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Type of payment method of the token.\n\\* google_pay -\n\nPayments made via Google Pay.\n\\* pay_co -\n\nPayments made via PayCo\n\\* apple_pay -\n\nPayments made via Apple Pay.\n\\* unionpay -\n\nPayments made via UnionPay.\n\\* ideal -\n\nPayments made via iDEAL.\n\\* bancontact -\n\nPayments made via Bancontact Card.\n\\* netbanking_emandates -\n\nNetbanking (eMandates) Payments.\n\\* trustly -\n\nTrustly\n\\* after_pay -\n\nPayments made via Afterpay\n\\* alipay -\n\nPayments made via Alipay.  \nThis payment source is deprecated.\n\\* dotpay -\n\nPayments made via Dotpay.\n\\* giropay -\n\nPayments made via giropay.\n\\* sofort -\n\nPayments made via Sofort.\n\\* direct_debit -\n\nRepresents bank account for which the direct debit or ACH agreement/mandate is created.\n\\* paypal_express_checkout -\n\nPayments made via PayPal Express Checkout.\n\\* amazon_payments -\n\nPayments made via Amazon Payments.\n\\* electronic_payment_standard -\n\nElectronic Payment Standard\n\\* grab_pay -\n\nPayments made via GrabPay\n\\* card -\n\nCard based payment including credit cards and debit cards. Details about the card can be obtained from the card resource.\n\\* upi -\n\nUPI Payments.\n\\* pay_by_bank -\n\nPay By Bank\n\\* go_pay -\n\nPayments made via GoPay\n\\* swish -\n\nPayments made via Swish\n\\* twint -\n\nPayments made via Twint\n\\* generic -\n\nPayments made via Generic Payment Method.\n\\* payme -\n\nPayments made via PayMe\n\\* wechat_pay -\n\nPayments made via WeChat Pay.  \nThis payment source is deprecated.\n\\* kbc_payment_button -\n\nKBC Payment Button\n",
            "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna" ],
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "new",
            "deprecated" : false,
            "description" : "Status of the token\n\\* new -\n\nnew\n\\* consumed -\n\nThe token is already used\n\\* expired -\n\nexpired\n",
            "enum" : [ "new", "expired", "consumed" ],
            "example" : null
          },
          "id_at_vault" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id with which this token is referred in gateway\n",
            "maxLength" : 65000,
            "example" : null
          },
          "vault" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the gateway/vault provider where the payment method is tokenized\n\\* gateway -\n\ngateway\n\\* spreedly -\n\nspreedly\n",
            "enum" : [ "spreedly", "gateway" ],
            "example" : null
          },
          "ip_address" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The IP address from where the token is created. Used primarily for EU VAT validation.\n",
            "maxLength" : 50,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this token resource was last updated.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this token resource is created.\n",
            "example" : null
          },
          "expired_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this token is expired\n",
            "example" : null
          }
        },
        "required" : [ "created_at", "gateway", "gateway_account_id", "id", "id_at_vault", "payment_method_type", "status", "vault" ],
        "example" : null
      },
      "TokenConsumedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "token" : {
                "$ref" : "#/components/schemas/Token"
              }
            },
            "required" : [ "token" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TokenCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "token" : {
                "$ref" : "#/components/schemas/Token"
              }
            },
            "required" : [ "token" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TokenExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "token" : {
                "$ref" : "#/components/schemas/Token"
              }
            },
            "required" : [ "token" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "Transaction" : {
        "type" : "object",
        "description" : "This resource represents the [transaction](https://www.chargebee.com/docs/transactions.html)\nevent that has happened in your account.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies the transaction.\n",
            "maxLength" : 40,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the customer for which this transaction is made\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the subscription for which this transaction is made.\n",
            "maxLength" : 50,
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account used for this transaction\n",
            "maxLength" : 50,
            "example" : null
          },
          "payment_source_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the payment source for which this transaction is made\n",
            "maxLength" : 40,
            "example" : null
          },
          "payment_method" : {
            "type" : "string",
            "default" : "card",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The payment method of this transaction</p>\n* naver_pay - <p class=\"mb-2\">Payments made via Naver Pay.</p>\n<span featureId=\"cb-naver-pay\" isMicro=\"true\"></span>\n* unionpay - <p class=\"mb-2\">Unionpay</p>\n* online_banking_poland - <p class=\"mb-2\">Online Banking Poland</p>\n<span featureId=\"cb-online-banking-poland\" isMicro=\"true\"></span>\n* upi - <p class=\"mb-2\">upi</p>\n* payconiq_by_bancontact - <p class=\"mb-2\">Payments made via Payconiq by Bancontact.</p>\n<span featureId=\"cb-payconiq-by-bancontact\" isMicro=\"true\"></span>\n* kakao_pay - <p class=\"mb-2\">Payments made via Kakao Pay.</p>\n<span featureId=\"cb-kakao-pay\" isMicro=\"true\"></span>\n* check - <p class=\"mb-2\">Check</p>\n* payme - <p class=\"mb-2\">Payments made via PayMe</p>\n<span featureId=\"cb-payme\" isMicro=\"true\"></span>\n* cash_app_pay - <p class=\"mb-2\">Payments made via Cash App Pay.</p>\n<span featureId=\"cb-cash-app-pay\" isMicro=\"true\"></span>\n* custom - <p class=\"mb-2\">Custom</p>\n* amazon_payments - <p class=\"mb-2\">Amazon Payments</p>\n* boleto - <p class=\"mb-2\">boleto</p>\n* direct_debit - <p class=\"mb-2\">Direct Debit</p>\n* klarna_pay_now - <p class=\"mb-2\">Klarna Pay Now</p>\n<span featureId=\"cb-klarna-pay-now\" isMicro=\"true\"></span>\n* sepa_instant_transfer - <p class=\"mb-2\">Sepa Instant Transfer</p>\n<span featureId=\"cb-sepa-instant-transfer\" isMicro=\"true\"></span>\n* apple_pay - <p class=\"mb-2\">Apple Pay</p>\n* wechat_pay - <p class=\"mb-2\">Payments made via WeChat Pay.</p>\n<span featureId=\"cb-wechat-pay\" isMicro=\"true\"></span>\n* twint - <p class=\"mb-2\">Payments made via Twint</p>\n<span featureId=\"cb-twint\" isMicro=\"true\"></span>\n* kbc_payment_button - <p class=\"mb-2\">KBC Payment Button</p>\n* bancontact - <p class=\"mb-2\">Bancontact</p>\n* faster_payments - <p class=\"mb-2\">Faster Payments</p>\n<span featureId=\"cb-faster-payments\" isMicro=\"true\"></span>\n* go_pay - <p class=\"mb-2\">Payments made via GoPay</p>\n<span featureId=\"cb-go-pay\" isMicro=\"true\"></span>\n* stablecoin - <p class=\"mb-2\">Payments made via Stablecoin.</p>\n<span featureId=\"cb-stablecoin\" isMicro=\"true\"></span>\n* venmo - <p class=\"mb-2\">Venmo</p>\n<span featureId=\"cb-venmo\" isMicro=\"true\"></span>\n* bank_transfer - <p class=\"mb-2\">Bank Transfer</p>\n* paypal_express_checkout - <p class=\"mb-2\">Paypal Express Checkout</p>\n* electronic_payment_standard - <p class=\"mb-2\">Electronic Payment Standard</p>\n* other - <p class=\"mb-2\">Payment Methods other than the above types</p>\n* trustly - <p class=\"mb-2\">Trustly</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit</p>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit</p>\n* card - <p class=\"mb-2\">Card</p>\n* ideal - <p class=\"mb-2\">IDEAL</p>\n* chargeback - <p class=\"mb-2\">Only applicable for a transaction of <code><a href=\"/docs/api/transactions/transaction-object#type\">type</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>.\nThis value is set by Chargebee when an automated <a href=\"https://www.chargebee.com/docs/chargeback.html#chargeback-process\" target=\"_blank\" rel=\"noopener noreferrer\">chargeback</a>\noccurs. You can also set this explicitly when <a href=\"/docs/api/transactions/record-an-offline-refund\">recording a refund</a>\n.</p>\n* automated_bank_transfer - <p class=\"mb-2\">Automated Bank Transfer</p>\n<span featureId=\"cb-bank-transfer\" isMicro=\"true\"></span>\n* google_pay - <p class=\"mb-2\">Google Pay</p>\n* netbanking_emandates - <p class=\"mb-2\">netbanking_emandates</p>\n* pay_to - <p class=\"mb-2\">PayTo</p>\n<span featureId=\"cb-pay-to\" isMicro=\"true\"></span>\n* pay_by_bank - <p class=\"mb-2\">Pay By Bank</p>\n* dotpay - <p class=\"mb-2\">Dotpay</p>\n* alipay - <p class=\"mb-2\">Payments made via Alipay.</p>\n<span featureId=\"cb-alipay\" isMicro=\"true\"></span>\n* sofort - <p class=\"mb-2\">Sofort</p>\n* swish - <p class=\"mb-2\">Payments made via Swish</p>\n<span featureId=\"cb-swish\" isMicro=\"true\"></span>\n* grab_pay - <p class=\"mb-2\">Payments made via GrabPay</p>\n<span featureId=\"cb-grab-pay\" isMicro=\"true\"></span>\n* pix - <p class=\"mb-2\">Pix</p>\n<span featureId=\"cb-pix\" isMicro=\"true\"></span>\n* giropay - <p class=\"mb-2\">giropay</p>\n* pay_co - <p class=\"mb-2\">Payments made via PayCo</p>\n<span featureId=\"cb-pay-co\" isMicro=\"true\"></span>\n* revolut_pay - <p class=\"mb-2\">Payments made via Revolut Pay.</p>\n<span featureId=\"cb-revolut-pay\" isMicro=\"true\"></span>\n* cash - <p class=\"mb-2\">Cash</p>\n* after_pay - <p class=\"mb-2\">Payments made via Afterpay</p>\n<span featureId=\"cb-after-pay\" isMicro=\"true\"></span>",
            "enum" : [ "card", "cash", "check", "chargeback", "bank_transfer", "amazon_payments", "paypal_express_checkout", "direct_debit", "alipay", "unionpay", "apple_pay", "wechat_pay", "ach_credit", "sepa_credit", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "other", "upi", "netbanking_emandates", "custom", "boleto", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "pix", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "klarna" ],
            "example" : null
          },
          "reference_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The reference number for this transaction. For example, the check number when <code><a href=\"/docs/api/transactions/transaction-object#payment_method\">payment_method</a></code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">check</code>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Gateway through which this transaction was done. Applicable only for 'Card' Payment Method\n\\* bluesnap -\n\nBlueSnap is a payment gateway.\n\\* jp_morgan -\n\nJ.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different [payment_source_type](/docs/api/payment_sources/payment_source-object#type).  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/jp-morgan-bacs&ref=feature) to enable the J.P. Morgan Mobility Payment Solutions gateway via payFURL for your test and live sites.\n\\* tco -\n\n2Checkout is a payment gateway.\n\\* razorpay -\n\nRazorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n\\* dlocal -\n\nDlocal provides payment solutions for global commerce by accepting local payment methods.\n\\* checkout_com -\n\nCheckout.com is a payment gateway.\n\\* adyen -\n\nAdyen is a payment gateway.\n\\* braintree -\n\nBraintree is a payment gateway.\n\\* paystack -\n\nPaystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/paystack&ref=feature) to enable Paystack for your test and live sites.\n\\* pay_com -\n\nPay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.\n\\* moneris_us -\n\nMoneris USA is a payment gateway.\n\\* pin -\n\nPin is a payment gateway\n\\* moneris -\n\nMoneris is a payment gateway.\n\\* chargebee -\n\nChargebee test gateway.\n\\* cybersource -\n\nCyberSource is a payment gateway.\n\\* ecentric -\n\nEcentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n\\* first_data_global -\n\nFirst Data Global Gateway Virtual Terminal Account\n\\* exact -\n\nExact Payments is a payment gateway.\n\\* nuvei -\n\nNuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/nuvei&ref=feature) to enable Nuvei for your test and live sites.\n\\* eway -\n\neWAY Account is a payment gateway.\n\\* amazon_payments -\n\nAmazon Payments is a payment service provider.\n\\* sage_pay -\n\nSage Pay is a payment gateway.\n\\* elavon -\n\nElavon Virtual Merchant is a payment solution.\n\\* orbital -\n\nChase Paymentech(Orbital) is a payment gateway.\n\\* beanstream -\n\nBambora(formerly known as Beanstream) is a payment gateway.\n\\* hdfc -\n\nHDFC Account is a payment gateway.\n\\* bank_of_america -\n\nBank of America Gateway\n\\* gocardless -\n\nGoCardless is a payment service provider.\n\\* paymill -\n\nPAYMILL is a payment gateway.\n\\* balanced_payments -\n\nBalanced is a payment gateway\n\\* twikey -\n\nTwikey is a payment service provider that specializes in processing direct debit payments across the EU.\n\\* deutsche_bank -\n\nDeutsche Bank is the leading German bank with strong European roots and a global network.  \nThis feature is a **Private Beta Release**.\n\\* bluepay -\n\nBluePay is a payment gateway.\n\\* paypal_express_checkout -\n\nPayPal Express Checkout is a payment gateway.\n\\* paypal_payflow_pro -\n\nPayPal Payflow Pro is a payment gateway.\n\\* global_payments -\n\nGlobal Payments is a payment service provider.\n\\* not_applicable -\n\nIndicates that payment gateway is not applicable for this resource.\n\\* nmi -\n\nNMI is a payment gateway.\n\\* worldpay -\n\nWorldPay is a payment gateway\n\\* authorize_net -\n\nAuthorize.net is a payment gateway\n\\* stripe -\n\nStripe is a payment gateway.\n\\* metrics_global -\n\nMetrics global is a leading payment service provider providing unified payment services in the US.\n\\* windcave -\n\nWindcave provides an end to end payment processing solution in ANZ and other leading global markets.\n\\* quickbooks -\n\nIntuit QuickBooks Payments gateway\n\\* wepay -\n\nWePay is a payment gateway.\n\\* ezidebit -\n\nEzidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.  \nThis feature is a **Private Beta Release**.\n\\* wirecard -\n\nWireCard Account is a payment service provider.\n\\* chargebee_payments -\n\nChargebee Payments gateway\n\\* paypal_pro -\n\nPayPal Pro Account is a payment gateway.\n\\* paypal -\n\nPayPal Commerce is a payment gateway.\n\\* ingenico_direct -\n\nWorldline Online Payments is a payment gateway.\n\\* ogone -\n\nIngenico ePayments (formerly known as Ogone) is a payment gateway.\n\\* migs -\n\nMasterCard Internet Gateway Service payment gateway.\n\\* vantiv -\n\nVantiv is a payment gateway.\n\\* eway_rapid -\n\neWAY Rapid is a payment gateway.\n\\* mollie -\n\nMollie is a payment gateway.\n\\* solidgate -\n\nSolidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release**.\n\\* ebanx -\n\nEBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.\n",
            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
            "example" : null
          },
          "type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Type of the transaction.</p>\n* authorization - <p class=\"mb-2\">The transaction represents an authorization for capturing the <code><a href=\"/docs/api/transactions/transaction-object#amount\">amount</a></code>\nfrom the customer&#x27;s <code><a href=\"/docs/api/payment_sources\">payment_source</a></code>\n.</p>\n* payment - <p class=\"mb-2\">The transaction represents capture of <code><a href=\"/docs/api/transactions/transaction-object#amount\">amount</a></code>\nfrom the customer&#x27;s <code><a href=\"/docs/api/payment_sources\">payment_source</a></code>\n.</p>\n* refund - <p class=\"mb-2\">The transaction represents a refund of <code><a href=\"/docs/api/transactions/transaction-object#amount\">amount</a></code>\nto the customer&#x27;s <code><a href=\"/docs/api/payment_sources\">payment_source</a></code>\n.</p>\n* payment_reversal - <p class=\"mb-2\">Indicates a reversal transaction.</p>",
            "enum" : [ "authorization", "payment", "refund", "payment_reversal" ],
            "example" : null
          },
          "date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates when this transaction occurred.\n",
            "example" : null
          },
          "settled_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Indicates the time at which the final status of the transaction has been marked.\n",
            "example" : null
          },
          "exchange_rate" : {
            "type" : "number",
            "format" : "decimal",
            "deprecated" : false,
            "description" : "Exchange rate used for base currency conversion\n",
            "maximum" : 1000000000,
            "minimum" : 0.0000000010,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) for the transaction.\n",
            "maxLength" : 3,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Amount for this transaction.\n",
            "minimum" : 0,
            "example" : null
          },
          "id_at_gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id with which this transaction is referred in gateway.\n",
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The status of this transaction.</p>\n* in_progress - <p class=\"mb-2\">Transaction is being processed by the gateway. This typically happens for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.</p>\n* timeout - <p class=\"mb-2\">Transaction failed because of Gateway not accepting the connection.</p>\n* success - <p class=\"mb-2\">The transaction is successful.</p>\n* voided - <p class=\"mb-2\">The transaction got voided or authorization expired at gateway.</p>\n* needs_attention - <p class=\"mb-2\">When connection with the Gateway gets terminated abruptly. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\nstatus Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nYou can use this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(Gateway Transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nfor a <a href=\"/docs/api/transactions/transaction-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code></a>\ntransaction to be reconciled at par with the gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransaction status</p></div>\n* late_failure - <p class=\"mb-2\">Indicates that a successful payment transaction has failed now due to a late failure notification from the payment gateway, typically caused by issues like insufficient funds or a closed bank account.</p>\n* failure - <p class=\"mb-2\">Transaction failed. Refer the &#x27;error_code&#x27; and &#x27;error_text&#x27; fields to know the reason for failure</p>",
            "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
            "example" : null
          },
          "fraud_flag" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Indicates whether or not the transaction has been [identified as fraudulent](https://www.chargebee.com/docs/payments/2.0/fraud-management/chargebee-fraud-management).\n\\* suspicious -\n\nThe transaction has been identified as potentially fraudulent by the gateway\n\\* safe -\n\nThe transaction has been marked as safe\n\\* fraudulent -\n\nThe transaction has been marked as fraudulent\n",
            "enum" : [ "safe", "suspicious", "fraudulent" ],
            "example" : null
          },
          "initiator_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Marker for on-session payments (3DS). null indicates 'merchant'.\n\\* merchant -\n\nPayment initiated on stored payment method by the merchant\n\\* customer -\n\nCustomer initiated 3DS payment\n",
            "enum" : [ "customer", "merchant" ],
            "example" : null
          },
          "three_d_secure" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates whether this transaction has gone through 3DS. Applicable only for 'on-session' payments \\& verifications.If 3DS is not enforced by the gateway/bank or if the customers' card is not enrolled, this will be false.\n",
            "example" : null
          },
          "authorization_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Type of authorization transaction.</p>\n* scheduled_capture - <p class=\"mb-2\">The transaction was authorized in advance for capture at a later time by a scheduled system job. The capture may succeed or fail, and its outcome is recorded as a linked transaction under <code><a href=\"\">linked_payments</a></code>\n.</p>\n* verification - <p class=\"mb-2\">The transaction has been created for payment method verification.</p>\n* blocking_funds - <p class=\"mb-2\">The transaction has been created to block the funds from payment method.</p>",
            "enum" : [ "blocking_funds", "verification", "scheduled_capture" ],
            "example" : null
          },
          "error_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Error code received from the payment gateway on failure.\n",
            "maxLength" : 100,
            "example" : null
          },
          "error_text" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Error message received from the payment gateway on failure.\n",
            "maxLength" : 65000,
            "example" : null
          },
          "voided_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the payment was voided or authorization expired at gateway.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this transaction was last updated. This attribute will be present only if the resource has been updated after 2016-09-28.\n",
            "example" : null
          },
          "fraud_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Short description why the transaction was marked as fraud/suspicious\n",
            "maxLength" : 250,
            "example" : null
          },
          "custom_payment_method_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the custom payment method of this transaction.\n",
            "maxLength" : 50,
            "example" : null
          },
          "amount_unused" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This is the part of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\nwhich has not been invoiced yet and is therefore added to <code><a href=\"/docs/api/customers/customer-object#excess_payments\">excess_payments</a></code>\nfor the customer. Applicable only for a transaction of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment</code>\n.</p>",
            "minimum" : 0,
            "example" : null
          },
          "masked_card_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The masked card number used for this transaction. Applicable only for 'Card' Payment Method\n",
            "maxLength" : 20,
            "example" : null
          },
          "reference_transaction_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the offline transaction that is being refunded or reversed. Applicable only for transaction of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment_reversal</code>\n.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "refunded_txn_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the transaction (always of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment</code>\n) being refunded. Applicable only for transaction of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">refund</code>\n.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "reference_authorization_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the transaction (always of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorization</code>\n) which authorizes the payment being captured. Applicable only for transaction of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment</code>\n.</p>",
            "maxLength" : 40,
            "example" : null
          },
          "amount_capturable" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">This is the part of the authorized <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>\nthat is yet to be captured. The payment capture is recorded as a transaction of of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">payment</code>.\nApplicable only for a transaction of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code>\n= <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">authorization</code>\n.</p>",
            "minimum" : 0,
            "example" : null
          },
          "reversal_transaction_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Reversal transaction id. Applicable only for payment transactions.\n",
            "maxLength" : 40,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates that this resource has been deleted.\n",
            "example" : null
          },
          "iin" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "First 6 digits of the card payment method.\n",
            "maxLength" : 6,
            "minLength" : 4,
            "example" : null
          },
          "last4" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Last 4 digits of the card payment method.\n",
            "maxLength" : 4,
            "minLength" : 4,
            "example" : null
          },
          "merchant_reference_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique id used to track this transaction across various systems you integrate with. This id is passed to the payment gateway when the transaction is initiated. Supported only for the [Exact payment gateway](https://www.chargebee.com/docs/exact-direct.html)\n.\n",
            "maxLength" : 500,
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The unique ID of the <a href=\"/docs/api/getting-started\">business entity</a>\nof this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">transaction</code>.\nThis is always the same as the business entity of the <a href=\"/docs/api/transactions/transaction-object#customer_id\">customer</a>.</p>\n<span featureId=\"cb-mbe\" isMicro=\"true\"></span>",
            "maxLength" : 50,
            "example" : null
          },
          "payment_method_details" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Payment method details of the corresponding transaction\n",
            "example" : null
          },
          "custom_payment_method_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the custom payment method of this transaction.\n",
            "maxLength" : 100,
            "example" : null
          },
          "linked_invoices" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Applicable only for 'Payment' transactions. The list of invoices this 'payment' transaction is applied to.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "invoice_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Identifier for the invoice.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "applied_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The transaction amount applied to this invoice\n",
                  "minimum" : 0,
                  "example" : null
                },
                "applied_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp at which the transaction is applied.\n",
                  "example" : null
                },
                "invoice_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The date this invoice is issued.\n",
                  "example" : null
                },
                "invoice_total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Total amount of the invoice\n",
                  "minimum" : 0,
                  "example" : null
                },
                "invoice_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Current status of this invoice.</p>\n* pending - <p class=\"mb-2\">The <a href=\"/docs/api/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). An invoice is generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when it has line items that belong to items that are <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> or when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription.create_pending_invoices</code>attribute is set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>.\nThe <a href=\"/docs/api/v2/pcv-1/invoices/invoice-object#status\">invoice</a> is yet to be closed (sent for payment collection). All invoices are generated with this <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> when <a href=\"https://www.chargebee.com/docs/1.0/metered_billing.html\" target=\"_blank\">Metered Billing</a> is enabled for the site.</p>\n* voided - <p class=\"mb-2\">Indicates a voided invoice.</p>\n* payment_due - <p class=\"mb-2\">Indicates the payment is not yet collected and is being retried as per retry settings.</p>\n* paid - <p class=\"mb-2\">Indicates a paid invoice.</p>\n* posted - <p class=\"mb-2\">Indicates the payment is not yet collected and will be in this state till the due date to indicate the due period</p>\n* not_paid - <p class=\"mb-2\">Indicates the payment is not made and all attempts to collect is failed.</p>",
                  "enum" : [ "paid", "posted", "payment_due", "not_paid", "voided", "pending" ],
                  "example" : null
                }
              },
              "required" : [ "applied_amount", "applied_at", "invoice_id", "invoice_status" ],
              "example" : null
            },
            "example" : null
          },
          "linked_credit_notes" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Applicable only for 'Refund' transactions. The list of Credit Notes this 'refund' transaction is associated with.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "cn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Identifier for the credit-notes.\n",
                  "maxLength" : 50,
                  "example" : null
                },
                "applied_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "The transaction amount applied to this invoice\n",
                  "minimum" : 0,
                  "example" : null
                },
                "applied_at" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Timestamp at which the transaction is applied.\n",
                  "example" : null
                },
                "cn_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code. Deprecated use the cn_create_reason_code parameter instead\n\\* service_unsatisfactory -\n\nService Unsatisfactory\n\\* other -\n\nCan be set when none of the above reason codes are applicable\n\\* subscription_cancellation -\n\nThis reason will be set automatically for Credit Notes created during cancel subscription operation\n\\* fraudulent -\n\nFRAUDULENT\n\\* order_change -\n\nOrder Change\n\\* subscription_pause -\n\nThis reason will be automatically set to credit notes created during pause/resume subscription operation.\n\\* write_off -\n\nThis reason will be set automatically for the Credit Notes created during invoice [Write Off](https://www.chargebee.com/docs/invoice-operations.html#write-off)\noperation.\n\\* subscription_change -\n\nThis reason will be set automatically for Credit Notes created during Change Subscription operation when [proration](https://www.chargebee.com/docs/proration.html)\nis enabled\n\\* chargeback -\n\nCan be set when you are recording your customer Chargebacks\n\\* waiver -\n\nWaiver\n\\* order_cancellation -\n\nOrder Cancellation\n\\* product_unsatisfactory -\n\nProduct Unsatisfactory\n",
                  "enum" : [ "write_off", "subscription_change", "subscription_cancellation", "subscription_pause", "chargeback", "product_unsatisfactory", "service_unsatisfactory", "order_change", "order_cancellation", "waiver", "other", "fraudulent" ],
                  "example" : null
                },
                "cn_create_reason_code" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Credit note reason code\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "cn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "The date this credit note is created.\n",
                  "example" : null
                },
                "cn_total" : {
                  "type" : "integer",
                  "format" : "int64",
                  "default" : 0,
                  "deprecated" : false,
                  "description" : "Total amount of the credit note\n",
                  "minimum" : 0,
                  "example" : null
                },
                "cn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The status of this Credit Note.\n\\* voided -\n\nWhen the Credit Note has been cancelled.\n\\* refund_due -\n\nWhen the credits are yet to be used, or have been partially used.\n\\* refunded -\n\nWhen the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded).\n\\* adjusted -\n\nWhen the Credit Note has been adjusted against an invoice.\n",
                  "enum" : [ "adjusted", "refunded", "refund_due", "voided" ],
                  "example" : null
                },
                "cn_reference_invoice_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "The invoice number. Acts as a identifier for invoice and typically generated sequentially.\n",
                  "maxLength" : 50,
                  "example" : null
                }
              },
              "required" : [ "applied_amount", "applied_at", "cn_id", "cn_status" ],
              "example" : null
            },
            "example" : null
          },
          "linked_refunds" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "Applicable only for Payment transactions. It only returns values when the transaction is not associated with an invoice, and that there is a refund for the transaction.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "txn_id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies the transaction.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "txn_status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The status of this transaction.</p>\n* needs_attention - <p class=\"mb-2\">When connection with the Gateway gets terminated abruptly. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\nstatus Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nYou can use this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(Gateway Transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nfor a <a href=\"/docs/api/transactions/transaction-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code></a>\ntransaction to be reconciled at par with the gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransaction status</p></div>\n* voided - <p class=\"mb-2\">The transaction got voided or authorization expired at gateway.</p>\n* late_failure - <p class=\"mb-2\">Indicates that a successful payment transaction has failed now due to a late failure notification from the payment gateway, typically caused by issues like insufficient funds or a closed bank account.</p>\n* timeout - <p class=\"mb-2\">Transaction failed because of Gateway not accepting the connection.</p>\n* success - <p class=\"mb-2\">The transaction is successful.</p>\n* failure - <p class=\"mb-2\">Transaction failed. Refer the &#x27;error_code&#x27; and &#x27;error_text&#x27; fields to know the reason for failure</p>\n* in_progress - <p class=\"mb-2\">Transaction is being processed by the gateway. This typically happens for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.</p>",
                  "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                  "example" : null
                },
                "txn_date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates when this refund occured.\n",
                  "example" : null
                },
                "txn_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Amount of this refund transaction.\n",
                  "minimum" : 0,
                  "example" : null
                }
              },
              "required" : [ "txn_amount", "txn_date", "txn_id", "txn_status" ],
              "example" : null
            },
            "example" : null
          },
          "linked_payments" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of payments captured for this authorization transaction.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "id" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Uniquely identifies the transaction.\n",
                  "maxLength" : 40,
                  "example" : null
                },
                "status" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The status of this transaction.</p>\n* needs_attention - <p class=\"mb-2\">When connection with the Gateway gets terminated abruptly. For <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\nstatus Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the <a href=\"/docs/api/transactions/reconcile-transaction\">Reconcile transaction API</a>.\nYou can use this API to update the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id_at_gateway</code>\n(Gateway Transaction ID) and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nfor a <a href=\"/docs/api/transactions/transaction-object#status\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code></a>\ntransaction to be reconciled at par with the gateway.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><a href=\"https://www.chargebee.com/docs/payments/2.0/needs-attention-transactions.html\">Learn more</a>\nabout <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">needs_attention</code>\ntransaction status</p></div>\n* success - <p class=\"mb-2\">The transaction is successful.</p>\n* voided - <p class=\"mb-2\">The transaction got voided or authorization expired at gateway.</p>\n* in_progress - <p class=\"mb-2\">Transaction is being processed by the gateway. This typically happens for <a href=\"https://www.chargebee.com/docs/direct-debit-payments.html\" target=\"_blank\">direct debit transactions</a>\nor, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.</p>\n* failure - <p class=\"mb-2\">Transaction failed. Refer the &#x27;error_code&#x27; and &#x27;error_text&#x27; fields to know the reason for failure</p>\n* late_failure - <p class=\"mb-2\">Indicates that a successful payment transaction has failed now due to a late failure notification from the payment gateway, typically caused by issues like insufficient funds or a closed bank account.</p>\n* timeout - <p class=\"mb-2\">Transaction failed because of Gateway not accepting the connection.</p>",
                  "enum" : [ "in_progress", "success", "voided", "failure", "timeout", "needs_attention", "late_failure" ],
                  "example" : null
                },
                "amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "Amount for this transaction.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "date" : {
                  "type" : "integer",
                  "format" : "unix-time",
                  "deprecated" : false,
                  "description" : "Indicates when this transaction occurred.\n",
                  "example" : null
                }
              },
              "required" : [ "id" ],
              "example" : null
            },
            "example" : null
          },
          "error_detail" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Comprehensive information regarding the error experienced during an unsuccessful or declined transaction. Learn more about \\[gateway error references\\](/docs/api/v2/pcv-1/gateway_error_references)\n",
            "properties" : {
              "request_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This is a unique identifier assigned by the payment gateway. It is used to track the request at the payment gateway\n",
                "maxLength" : 100,
                "example" : null
              },
              "error_category" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This parameter categorizes the type of error that occurred for the request. It helps in understanding whether the error is due to API error, validation, processing, network issues, and more\n",
                "maxLength" : 100,
                "example" : null
              },
              "error_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A gateway-specific code that corresponds to the particular error encountered for the request. This code can be used for identifying the error in a standardized manner across the gateway's services\n",
                "maxLength" : 100,
                "example" : null
              },
              "error_message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A message provided by the gateway that describes the nature of the error encountered\n",
                "maxLength" : 65000,
                "example" : null
              },
              "decline_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "When a transaction is declined, this code is provided by the gateway to specify the reason for the decline\n",
                "maxLength" : 100,
                "example" : null
              },
              "decline_message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This message gives a descriptive explanation of the reason for the transaction's decline\n",
                "maxLength" : 65000,
                "example" : null
              },
              "network_error_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This code represents errors that originate from the payment network (such as Visa, MasterCard, and more). It is different from the gateway error code and is specific to the network's error-handling system\n",
                "maxLength" : 100,
                "example" : null
              },
              "network_error_message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This the network related error message from the gateway, this is a detailed message provided by the payment network explaining the nature of the network error encountered\n",
                "maxLength" : 65000,
                "example" : null
              },
              "error_field" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This parameter indicates which specific data field or attribute in the request caused the error\n",
                "maxLength" : 100,
                "example" : null
              },
              "recommendation_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "After an error has occurred, the gateway or payment network may provide a recommendation code. This code suggests a course of action or remedy that you can follow to resolve the issue\n",
                "maxLength" : 100,
                "example" : null
              },
              "recommendation_message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This message is intended to provide guidance or suggestions on action or remedy that you can follow to resolve the issue\n",
                "maxLength" : 65000,
                "example" : null
              },
              "processor_error_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This code is provided by the payment processor (the entity that handles the transaction between the bank accounts and the payment networks) and indicates errors that occur at this stage of the payment process\n",
                "maxLength" : 100,
                "example" : null
              },
              "processor_error_message" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "This message describes the specific error that the payment processor encountered\n",
                "maxLength" : 65000,
                "example" : null
              },
              "error_cause_id" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "A [Chargebee-defined code](/docs/api/errors)\nthat corresponds to the specific error encountered during the request. This code helps in identifying and standardizing the error across different gateway services for consistent error handling.\n",
                "maxLength" : 150,
                "example" : null
              },
              "processor_advice_code" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "<p class=\"mb-2\">An advice code from the payment gateway or network that indicates how to handle a card decline. For example, the value <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">try_again_later</code> means you can retry the transaction.</p>",
                "maxLength" : 100,
                "example" : null
              }
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "deleted", "gateway", "id", "payment_method", "type" ],
        "example" : null
      },
      "TransactionCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              }
            },
            "required" : [ "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TransactionDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              }
            },
            "required" : [ "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TransactionUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "transaction" : {
                "$ref" : "#/components/schemas/Transaction"
              }
            },
            "required" : [ "transaction" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "TrialEndAction" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "site_default", "plan_default", "activate_subscription", "cancel_subscription" ],
        "example" : null
      },
      "Type" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "card", "paypal_express_checkout", "amazon_payments", "direct_debit", "generic", "alipay", "unionpay", "apple_pay", "wechat_pay", "ideal", "google_pay", "sofort", "bancontact", "giropay", "dotpay", "upi", "netbanking_emandates", "venmo", "pay_to", "faster_payments", "sepa_instant_transfer", "automated_bank_transfer", "klarna_pay_now", "online_banking_poland", "payconiq_by_bancontact", "electronic_payment_standard", "kbc_payment_button", "pay_by_bank", "trustly", "stablecoin", "kakao_pay", "naver_pay", "revolut_pay", "cash_app_pay", "twint", "go_pay", "grab_pay", "pay_co", "after_pay", "swish", "payme", "pix", "klarna", "free_trial", "pay_up_front", "pay_as_you_go", "usage_exceeded" ],
        "example" : null
      },
      "UnbilledCharge" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Unbilled charge represents the charges that are held by passing <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">invoice_immediately</code> in various operations such as update subscription, add charge, create subscription, etc. <a href=\"https://www.chargebee.com/docs/unbilled-charges.html\" target=\"_blank\">Learn more.</a></p><p class=\"mb-2\">If any invoice is to be created for a subscription all the unbilled charges associated with the subscription will be included in that invoice.</p><p class=\"mb-2\">If any invoice is to be created for a customer, all the unbilled charges associated with its subscriptions will be included in that invoice.</p><p class=\"mb-2\">Any automatic invoice creation like renewal, activation, etc., will include the unbilled charges.</p><p class=\"mb-2\">Subscriptions are invoiced at the start of every term based on the recurring items and charged immediately against the customer&#x27;s credit card if &#x27;auto_collection&#x27; is turned &#x27;on&#x27;, otherwise the resulting invoice will be created as &#x27;Payment Due&#x27;.</p><p class=\"mb-2\">If consolidated invoicing is enabled, the charges during the subscription renewals/activations will be held and consolidated at the last renewal/activation that takes place on that particular day.</p></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Uniquely identifies an unbilled charge.\n",
            "maxLength" : 40,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier for the customer being charged.\n",
            "maxLength" : 50,
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier for the subscription this charge belongs to.\n",
            "maxLength" : 50,
            "example" : null
          },
          "date_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Start date of this charge.\n",
            "example" : null
          },
          "date_to" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "End date of this charge.\n",
            "example" : null
          },
          "unit_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Unit amount of the charge item.\n",
            "minimum" : 0,
            "example" : null
          },
          "pricing_model" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The pricing scheme for this line item.\n\\* tiered -\n\nThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.\n\\* per_unit -\n\nA fixed price per unit quantity.\n\\* flat_fee -\n\nA fixed price that is not quantity-based.\n\\* volume -\n\nThe per unit price is based on the tier that the total quantity falls in.\n\\* stairstep -\n\nA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.\n",
            "enum" : [ "flat_fee", "per_unit", "tiered", "volume", "stairstep" ],
            "example" : null
          },
          "quantity" : {
            "type" : "integer",
            "format" : "int32",
            "deprecated" : false,
            "description" : "Quantity of the item which is represented by this charge.\n",
            "minimum" : 0,
            "example" : null
          },
          "amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total amount of this charge. Typically equals to unit amount x quantity.\n",
            "minimum" : 0,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The currency code (ISO 4217 format) for the charge.\n",
            "maxLength" : 3,
            "example" : null
          },
          "discount_amount" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total discounts for this charge.\n",
            "minimum" : 0,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Detailed description about this charge.\n",
            "maxLength" : 250,
            "example" : null
          },
          "entity_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Specifies the modelled entity this line item is based on.\n\\* plan_setup -\n\nIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* plan -\n\nIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the [plan](/docs/api/v2/pcv-1/plans/plan-object)\nid\n\\* addon_item_price -\n\nIndicates that this line item is based on addon Item Price\n\\* plan_item_price -\n\nIndicates that this line item is based on plan Item Price\n\\* adhoc -\n\nIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case\n\\* addon -\n\nIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the [addon](/docs/api/v2/pcv-1/addons/addon-object)\nid\n\\* charge_item_price -\n\nIndicates that this line item is based on charge Item Price\n",
            "enum" : [ "adhoc", "plan_item_price", "addon_item_price", "charge_item_price" ],
            "example" : null
          },
          "entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The identifier of the modelled entity this charge is based on. Will be null for 'adhoc' entity type.\n",
            "maxLength" : 100,
            "example" : null
          },
          "is_voided" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Will be true if the charge has been voided. Usually the unbilled charge will be voided and revised to different charges(s) during proration.\n",
            "example" : null
          },
          "voided_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating the date and time this charge got voided.\n",
            "example" : null
          },
          "unit_amount_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the unit amount for the entity. The value is in major units of the currency. Returned when the entity is quantity-based and [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 39,
            "example" : null
          },
          "quantity_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The decimal representation of the quantity of this entity. Returned when the entity is quantity-based and [multi-decimal pricing](/docs/api/currencies)\nis enabled.\n",
            "maxLength" : 33,
            "example" : null
          },
          "amount_in_decimal" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The decimal representation of the amount for the charge, in major units of the currency. Typically equals to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">unit_amount_in_decimal</code>\nx <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">quantity_in_decimal</code>.\nReturned when <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
            "maxLength" : 39,
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the unbilled charge was created.\n",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the unbilled charge was last updated\n",
            "example" : null
          },
          "is_advance_charge" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "The value of this parameter will be true if it is a recurring unbilled charge for a future term.\n",
            "example" : null
          },
          "business_entity_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique ID of the [business entity](/docs/api/advanced-features)\nof this unbilled charge. This is always the same as the [business entity](/docs/api/unbilled_charges/unbilled_charge-object#customer_id)\nof the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates that this resource has been deleted.\n",
            "example" : null
          },
          "tiers" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The list of tiers applicable for this line item\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "starting_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The lower limit of a range of units for the tier\n",
                  "minimum" : 0,
                  "example" : null
                },
                "ending_unit" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The upper limit of a range of units for the tier\n",
                  "example" : null
                },
                "quantity_used" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "The number of units purchased in a range.\n",
                  "minimum" : 0,
                  "example" : null
                },
                "unit_amount" : {
                  "type" : "integer",
                  "format" : "int64",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The price of the tier if the charge model is a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairtstep</code>\npricing , or the price of each unit in the tier if the charge model is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n/<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\npricing.</p>",
                  "minimum" : 0,
                  "example" : null
                },
                "starting_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ending_unit_in_decimal</code>\nof the next lower tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\nand <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "ending_unit_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">starting_unit_in_decimal</code>\nof the next higher tier. Returned only when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_items.pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\n, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>\nor stairstep and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "quantity_used_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the quantity purchased from this tier. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 33,
                  "example" : null
                },
                "unit_amount_in_decimal" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">The decimal representation of the per-unit price for the tier when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">tiered</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">volume</code>.\nWhen the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_model</code>\nis <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">stairstep</code>\n, it is the decimal representation of the total price for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>.\nThe value is in major units of the currency. Returned when the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">line_item</code>\nis quantity-based and <a href=\"/docs/api/currencies\" target=\"_blank\">multi-decimal pricing</a>\nis enabled.</p>",
                  "maxLength" : 40,
                  "example" : null
                },
                "pricing_type" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pricing type for the tier.</p>\n* flat_fee - <p class=\"mb-2\">Indicates that the tier pricing is a flat fee, applied to the entire tier regardless of the number of units consumed. For the <strong class=\"font-semibold\">stairstep</strong>\npricing model, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pricing_type</code>\nwill be set to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">flat_fee</code>\nby default. For example, if the flat fee for a tier is $100, the customer pays $100 whether they consume 1 unit or the maximum number of units within that tier.</p>\n* per_unit - <p class=\"mb-2\">Indicates that the tier pricing is based on individual units. Customers are charged a fixed price per unit. For example, if the price per unit is $2 and the customer consumes 150 units, they will be charged $300 (150 × $2).</p>\n* package - <p class=\"mb-2\">Indicates that the tier pricing is based on a package of units. Customers are charged for each block or package of units. For example, if the package size is 100 units and the cost per block is $20 consuming 400 units will result in a charge of $80 (4 × $20).</p>",
                  "enum" : [ "per_unit", "flat_fee", "package" ],
                  "example" : null
                },
                "package_size" : {
                  "type" : "integer",
                  "format" : "int32",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Package size for the tier when pricing type is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">package</code>.\nSpecify the number of units that make up one package.  For example, if 1000 API hits are grouped into a single package, set the package size to 1000.</p>",
                  "minimum" : 1,
                  "example" : null
                }
              },
              "required" : [ "quantity_used", "starting_unit", "unit_amount" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "currency_code", "deleted", "entity_type", "is_voided", "updated_at" ],
        "example" : null
      },
      "UnbilledChargesCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "UnbilledChargesDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "UnbilledChargesHandling" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "no_action", "invoice" ],
        "example" : null
      },
      "UnbilledChargesInvoicedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              },
              "invoice" : {
                "$ref" : "#/components/schemas/Invoice"
              }
            },
            "required" : [ "invoice", "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "UnbilledChargesMeta" : {
        "type" : "object",
        "properties" : {
          "count" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 0,
            "deprecated" : false,
            "example" : null
          },
          "has_more" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "example" : null
          }
        },
        "required" : [ "count", "has_more" ],
        "example" : null
      },
      "UnbilledChargesOption" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "invoice", "delete" ],
        "example" : null
      },
      "UnbilledChargesVoidedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "unbilled_charges" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/UnbilledCharge"
                },
                "example" : null
              }
            },
            "required" : [ "unbilled_charges" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "UnpaidInvoicesHandling" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "no_action", "schedule_payment_collection" ],
        "example" : null
      },
      "Usage" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">The Usages API is used to record usage for metered item prices in a subscription. This API is only applicable when Automated Metered Billing is enabled in Chargebee.</p><p class=\"mb-2\">Metered items are those that are billed based on the service usage. Common examples include:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Internet data services.</li>\n<li class=\"text-base leading-relaxed\">SMS send/receive services.</li>\n<li class=\"text-base leading-relaxed\">API services that are billed for the number of API calls made, say, per month.</li>\n</ul><p class=\"mb-2\">An <a href=\"/docs/api/items\">item</a> is marked metered by setting its <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code> attribute as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>. Only recurring items can be can be set as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered</code>. Recurring items are those of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">type</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">plan</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">addon</code>. A subscription can have both metered and non-metered items. The usages API (described in this page), is used to add, retrieve and delete usages for the metered items in a subscription.</p><h4>Invoicing Metered Item Prices</h4><p class=\"mb-2\">While non-metered items are invoiced in a prepaid manner at the beginning of each billing cycle; for metered items, the charges are raised at the end of the billing term (postpaid). During the course of the billing period, <a href=\"/docs/api/usages/create-a-usage\">usages can be added</a> as and when they occur. For a given <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_id</code>, there can be only one usage record for a specific <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>. At the end of each term, the invoice is generated with <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">pending</code>. Any remaining usage records can continue to be added to the subscription until the invoice <a href=\"https://www.chargebee.com/docs/2.0/metered_billing.html#configuring-metered-billing\" target=\"_blank\">closes automatically</a> or is <a href=\"/docs/api/invoices/close-a-pending-invoice\">closed via an API call</a>. If a usage record has erroneous information and you want to correct it, <a href=\"/docs/api/usages/delete-a-usage\">delete the usage</a> and add it again.</p><div class=\"warning alert alert-warning\"><p class=\"mb-2\"><strong class=\"font-semibold\">Max Usages</strong></p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The maximum number of usages that can be recorded for the entire lifetime of a subscription is 5000. <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Contact Support</a> if you want this limit to be increased for your site.</li>\n<li class=\"text-base leading-relaxed\">If there are no usages for an item price, the item price is not invoiced.</li>\n</ul></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique and immutable id for the usage. If not provided, it is autogenerated.\n",
            "maxLength" : 100,
            "example" : null
          },
          "usage_date" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The time at which this usage occurred. Chargebee bills only those usages whose\n<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\nfalls within a time when the subscription <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>\nwas <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code>\nor <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">non_renewing</code>.\nHowever, the remaining usage records are still stored and are\n<a href=\"/docs/api/usages/retrieve-a-usage\">retrievable</a>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nIf <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_date</code>\ncorresponds to a time already invoiced, then it is stored but never invoiced unless the <a href=\"/docs/api/subscriptions/regenerate-an-invoice\">invoice is regenerated</a>\n.</p>",
            "example" : null
          },
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id of the [subscription](/docs/api/subscriptions)\nto which this usage record belongs.\n",
            "maxLength" : 100,
            "example" : null
          },
          "item_price_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The id of the [item price](/docs/api/item_prices)\nto which this usage belongs. The item price must be a part of the subscription or should have been part of it historically.\n",
            "maxLength" : 100,
            "example" : null
          },
          "invoice_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When the usage has been invoiced, this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <a href=\"/docs/api/invoices\">invoice</a>.\nThis is cleared when the invoice is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">voided</code>\nor deleted.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "line_item_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">When the usage has been invoiced, this is the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nof the <code><a href=\"/docs/api/invoices/invoice-object#line_items\">invoice.line_item</a></code>\nthat the usage is for. This is cleared when the invoice is <code><a href=\"/docs/api/invoices/void-an-invoice\">voided</a></code>\nor <a href=\"/docs/api/invoices/delete-an-invoice\">deleted</a>\n.</p>",
            "maxLength" : 100,
            "example" : null
          },
          "quantity" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The quantity specified for this usage record.\n",
            "maxLength" : 40,
            "example" : null
          },
          "source" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The source from which the usage record was created.\n\\* admin_console -\n\nOperation made through the Chargebee admin UI\n\\* api -\n\nOperation made through the API\n\\* bulk_operation -\n\nOperation that are triggerd through bulk operation.\n",
            "enum" : [ "admin_console", "api", "bulk_operation" ],
            "example" : null
          },
          "note" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A note for this usage record. This note is not displayed on any customer-facing document or interface such as [invoice PDFs](/docs/api/invoices/retrieve-invoice-as-pdf)\nor [Hosted Pages](/docs/api/hosted_pages)\n.\n",
            "maxLength" : 500,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this usage resource was last updated.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when the item was created.\n",
            "example" : null
          }
        },
        "required" : [ "created_at", "item_price_id", "quantity", "subscription_id", "usage_date" ],
        "example" : null
      },
      "UsageAccumulationResetFrequency" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "never", "subscription_billing_frequency" ],
        "example" : null
      },
      "UsageCharge" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><p class=\"mb-2\">Usage charge represents the current, unbilled usage for a metered feature in a subscription within its active usage period.\nEach usage charge reflects usage accumulated from the start of the current usage period up to the time of the request.\nIt includes:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">the metered feature (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_id</code>)</li>\n<li class=\"text-base leading-relaxed\">the included entitlement for the current period (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">included_usage</code>)</li>\n<li class=\"text-base leading-relaxed\">the total usage recorded so far (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">total_usage</code>)</li>\n<li class=\"text-base leading-relaxed\">any chargeable usage beyond the included entitlement, including on-demand usage and amount (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">on_demand_usage</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">metered_item_price_id</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">amount</code>)</li>\n<li class=\"text-base leading-relaxed\">the usage interval (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_from</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_to</code>) used to compute the usage</li>\n</ul></div>",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier of the subscription to which the usage charge applies.\n",
            "maxLength" : 100,
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Unique identifier of the [feature](/docs/api/features/feature-object#id) for which usage is tracked.\n",
            "maxLength" : 100,
            "example" : null
          },
          "included_usage" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Usage included in the [subscription entitlement](/docs/api/subscription_entitlements/subscription-entitlement-object) for the current usage period.\n",
            "maxLength" : 33,
            "example" : null
          },
          "total_usage" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Total usage accumulated so far for the feature in the current usage period.\n",
            "maxLength" : 33,
            "example" : null
          },
          "on_demand_usage" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Usage beyond the included entitlement for the current usage period. Returned only when the feature has an associated metered addon.\n",
            "maxLength" : 33,
            "example" : null
          },
          "metered_item_price_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the metered [item price](/docs/api/item_prices/item-price-object) used to calculate charges. Returned only when the feature has an associated metered addon.\n",
            "maxLength" : 100,
            "example" : null
          },
          "amount" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Current overage charge computed from usage recorded so far, in major units of the currency. This value can change until the usage period ends. Returned only when the feature has an associated metered addon.\n",
            "maxLength" : 39,
            "example" : null
          },
          "currency_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "ISO [currency code](/docs/api/currencies/currency-object#currency_code) in which the overage charges are computed. Returned only when amount exists.\n",
            "maxLength" : 3,
            "example" : null
          },
          "usage_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Start timestamp of the usage window used to compute the accumulated [total_usage](/docs/api/usage_charge/usage-charge-object#total_usage) for the feature.\n",
            "example" : null
          },
          "usage_to" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "End timestamp of the usage window used to compute the accumulated [total_usage](/docs/api/usage_charge/usage-charge-object#total_usage) for the feature.\n",
            "example" : null
          }
        },
        "required" : [ "feature_id", "subscription_id", "usage_from", "usage_to" ],
        "example" : null
      },
      "UsageEvent" : {
        "type" : "object",
        "description" : "This resource allows you to record usage events, which are essential for usage-based billing. These events track customer consumption and calculate charges based on actual usage. You can send usage data to Chargebee using two endpoints: [Ingest a Usage Event](/docs/api/usage_events/create-a-usage-event) for individual events and [Ingest Usage Events in Batch](/docs/api/usage_events/ingest-usages-in-batch) for bulk submissions.\n\nThe usage event resource payload is schema-less, providing the flexibility to adapt to your unique business requirements. Because usage events are not directly tied to a pricing plan, this resource enables independent tracking of feature consumption. Events are processed and associated with relevant features as usage data. This information is used for billing alongside [entitlements](/docs/api/entitlements), [items](/docs/api/items)(such as plans or addons), or [item prices](/docs/api/item_prices) to generate invoices. This decoupling of usage data from the product catalog provides flexibility in defining and monetizing usage beyond predefined pricing models. Additionally, this API supports feature usage analytics, churn prediction, and other insights.  \n**Note**\n:- [Learn more](https://www.chargebee.com/docs/billing/2.0/usage-based-billing/usage-based-billing-usecases) about the use cases associated with this resource.\n\n* [Learn more](https://www.chargebee.com/docs/billing/2.0/usage-based-billing/understanding-usages) about the Usage-based Billing.\n* [Learn more](https://www.chargebee.com/docs/billing/2.0/usage-based-billing/ingesting-usage-from-amazon-s3) about ingesting usage events from Amazon S3.\n",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of a subscription.\n",
            "maxLength" : 50,
            "example" : null
          },
          "deduplication_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">An identifier used by the Chargebee&#x27;s customer to distinguish between multiple events generated at the same timestamp for a single <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>.\nThe combination of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">usage_timestamp</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code>, and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deduplication_id</code> uniquely identifies each event.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Example</strong>:\nIf 3 events are generated for <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">subscription_id</code> = <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sub-1</code> at <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">2025-04-01T00:00:00.000Z</code>, each event must have a distinct <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">deduplication_id</code>.</p>",
            "maxLength" : 36,
            "example" : null
          },
          "usage_timestamp" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The timestamp indicating when this usage occurred, represented as <a href=\"https://en.wikipedia.org/wiki/Unix_time\">Epoch</a>\ntime in <strong class=\"font-semibold\">milliseconds</strong>\n.\nExample: <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">1738732394123</code>\nrepresents the timestamp for February 5, 2025, at 05:13:14.123 UTC.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nThe timestamp must be within the last <strong class=\"font-semibold\">12 hours</strong>\n.</p></div>",
            "example" : null
          },
          "properties" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">A schema-less field that accepts any JSON-formatted data to define the attributes of the ingested event. It is a requirement to structure the data in a flat format wherever possible for better compatibility with downstream processing.\nWe strongly encourage using unique field names-particularly for fields intended for metering purposes. This approach enhances clarity and maintainability in the future.\nFor example, a field named <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>,</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Can represent <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">string</code> values such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">accepted</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">processing</code> in one context.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">In another scenario, it might hold numeric values, such as HTTP response codes like <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">200</code>, <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">300</code>, or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">400</code>.</p>\n</li>\n</ul>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">There is a size limit of <strong class=\"font-semibold\">1 KB</strong>.</li>\n<li class=\"text-base leading-relaxed\">Learn more about <a href=\"/docs/api/usage_files\">field naming guidelines</a>.</li>\n</ul></div>",
            "example" : null
          }
        },
        "required" : [ "deduplication_id", "properties", "subscription_id", "usage_timestamp" ],
        "example" : null
      },
      "UsageFile" : {
        "type" : "object",
        "description" : "<div class=\"api-description\"><span featureId=\"cb-ubb\"></span><p class=\"mb-2\">Represents a file containing usage events that has been uploaded for processing.\n<h2 id=\"steps_to_upload_usages_file\" data-heading=\"heading\">Upload usage events using files</h2></p><p class=\"mb-2\">Follow these steps to upload usage event files:</p><p class=\"mb-2\"><strong class=\"font-semibold\">Step 1:</strong> Request an <code><a href=\"/docs/api/usage_files/usage-file-object\">usage_file</a></code> object using the upload endpoint. This returns an <code><a href=\"/docs/api/usage_files/usage_file-object#upload_details\">url</a></code>.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Step 2:</strong> Create a CSV file containing the usage event records. Ensure that the file meets the expected format and complies with the <a href=\"/docs/api/v2/pcv-1/usage_files/upload-usages-file\">file upload constraints</a>. Only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">text/csv</code> files are supported.</p><p class=\"mb-2\"><strong class=\"font-semibold\">Step 3:</strong> Upload the CSV file using the returned <code><a href=\"/docs/api/usage_files/usage_file-object#upload_details\">url</a></code>.\nMake an HTTP <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">PUT</code> request to the upload URL. Include the file in the request body as binary data (raw file content).</p><p class=\"mb-2\"><strong class=\"font-semibold\">Step 4:</strong> Check the uploaded <code><a href=\"/docs/api/usage_files/usage_file-object#status\">usage_file_status</a></code> using the <code><a href=\"/docs/api/usage_files/get-uploaded-file-processing-status\">retrieve_file_processing_status</a></code> endpoint.</p><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Important</strong>\n:\n<a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/ingesting-usage-from-amazon-s3\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Learn more</a> about ingesting usage events from Amazon S3.</p></div><h3 id=\"best_practices\" data-heading=\"heading\">Best practices</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">We recommend not to create empty files which contain only header rows.</li>\n<li class=\"text-base leading-relaxed\">We recommend uploading files in batches of <strong class=\"font-semibold\">100,000</strong> events per file or lesser to ensure optimal performance.</li>\n<li class=\"text-base leading-relaxed\">We recommend ensuring that no row contains extra columns without corresponding headers.</li>\n</ul><h3 id=\"file_upload_constraints\" data-heading=\"heading\">File upload constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">File names should not contain any special characters except for underscores <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">_</code> and hyphens <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">-</code>.</li>\n<li class=\"text-base leading-relaxed\">File names must be under <strong class=\"font-semibold\">150</strong> characters and include the appropriate extensions, such as <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">.csv</code>.</li>\n<li class=\"text-base leading-relaxed\">The supported delimiter for CSV file format is <strong class=\"font-semibold\">comma(,)</strong>.</li>\n<li class=\"text-base leading-relaxed\">The file must not exceed <strong class=\"font-semibold\">1 GB</strong> size or 1 million records. The lesser of the two limits applies.</li>\n<li class=\"text-base leading-relaxed\">The uploaded data will be processed at the rate of <strong class=\"font-semibold\">10,000</strong> events per minute.</li>\n</ul><div class=\"alert alert-info\"><p class=\"mb-2\">To process more usage events than the limit mentioned above, contact <a href=\"https://www.chargebee.com/docs/billing/2.0/kb/getting-started/how-to-contact-chargebees-support-team?utm_source=docs_api&amp;utm_medium=content&amp;utm_campaign=support\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Chargebee Support</a></p></div><h3 id=\"file_field_constraints\" data-heading=\"heading\">File field constraints</h3><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Make sure your file follows the sample file format:</li>\n</ul><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><tbody><tr><td style=\"vertical-align:middle;text-align:center\"><strong class=\"font-semibold\">deduplication_id</strong></td><td style=\"vertical-align:middle;text-align:center\"><strong class=\"font-semibold\">subscription_id</strong></td><td style=\"vertical-align:middle;text-align:center\"><strong class=\"font-semibold\">usage_timestamp</strong></td><td style=\"vertical-align:middle;text-align:center\"><strong class=\"font-semibold\">input_tokens</strong></td><td style=\"vertical-align:middle;text-align:center\"><strong class=\"font-semibold\">output_tokens</strong></td></tr><tr><td style=\"vertical-align:middle;text-align:center\">123e4567-e89b-12d3</td><td style=\"vertical-align:middle;text-align:center\">Sub-01</td><td style=\"vertical-align:middle;text-align:center\">1741156511000</td><td style=\"vertical-align:middle;text-align:center\">100</td><td style=\"vertical-align:middle;text-align:center\">100</td></tr><tr><td style=\"vertical-align:middle;text-align:center\">987f6543-b21c-34a5</td><td style=\"vertical-align:middle;text-align:center\">Sub-02</td><td style=\"vertical-align:middle;text-align:center\">1741156511001</td><td style=\"vertical-align:middle;text-align:center\">859</td><td style=\"vertical-align:middle;text-align:center\">194</td></tr></tbody></table></div><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Learn more about <code><a href=\"/docs/api/usage_events/create-a-usage-event#deduplication_id\">deduplication_id</a></code>, <code><a href=\"/docs/api/usage_events/create-a-usage-event#subscription_id\">subscription_id</a></code>, and <code><a href=\"/docs/api/usage_events/create-a-usage-event#usage_timestamp\">usage_timestamp</a></code>.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Each row must include <code><a href=\"/docs/api/usage_events/create-a-usage-event#deduplication_id\">deduplication_id</a></code>, <code><a href=\"/docs/api/usage_events/create-a-usage-event#subscription_id\">subscription_id</a></code>, and <code><a href=\"/docs/api/usage_events/create-a-usage-event#usage_timestamp\">usage_timestamp</a></code>. Rows missing any of these fields are flagged as failed events.</p>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\">Any top-level fields in the event row that are not a recognized field (<code><a href=\"/docs/api/usage_events/create-a-usage-event#deduplication_id\">deduplication_id</a></code>, <code><a href=\"/docs/api/usage_events/create-a-usage-event#subscription_id\">subscription_id</a></code>, and <code><a href=\"/docs/api/usage_events/create-a-usage-event#usage_timestamp\">usage_timestamp</a></code>) will automatically be added to the <code><a href=\"/docs/api/usage_events/create-a-usage-event#properties\">properties</a></code>.</p>\n<p class=\"mb-2\"><strong class=\"font-semibold\">Field Naming Guidelines</strong>: Ensure that your file&#x27;s column headers follow the required naming rules to avoid processing issues:</p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\"><strong class=\"font-semibold\">Start with:</strong> a lowercase letter (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">a-z</code>)</li>\n</ul>\n</li>\n<li class=\"text-base leading-relaxed\">\n<p class=\"mb-2\"><strong class=\"font-semibold\">May include:</strong></p>\n<ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">Lowercase letters (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">a-z</code>)</li>\n<li class=\"text-base leading-relaxed\">Numbers (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">0-9</code>)</li>\n<li class=\"text-base leading-relaxed\">Underscores (<code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">_</code>)</li>\n</ul>\n</li>\n</ul><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><tbody><tr><td style=\"vertical-align:middle;text-align:center\"><strong class=\"font-semibold\">Valid Examples</strong></td><td style=\"vertical-align:middle;text-align:center\"><strong class=\"font-semibold\">Invalid Examples</strong></td></tr><tr><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">input_tokens</code></td><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">InputTokens</code></td></tr><tr><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">output_tokens</code></td><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">Output Tokens</code></td></tr><tr><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature_usage_1</code></td><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">123output</code></td></tr><tr><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">output_value</code></td><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">output@value</code></td></tr><tr><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">input_value</code></td><td style=\"vertical-align:middle;text-align:center\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">input-value</code></td></tr></tbody></table></div><h3 id=\"validating_and_handling_errors\" data-heading=\"heading\">Validating and handling errors</h3><p class=\"mb-2\">When uploading a usage events file using the API, certain validation checks are performed. If issues are detected, the upload or processing may fail. The following sections explain the possible error scenarios and how they are handled.</p><div class=\"relative w-full overflow-x-auto\"><table class=\"cb-table cb-table\" data-layout=\"default\"><thead><tr><th>Error Code</th><th>Description</th></tr></thead><tbody><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">INVALID_FILE</code></td><td><p class=\"mb-2\">This error occurs in the following scenarios:</p><ul class=\"list-disc list-outside ml-6 my-4 space-y-2\">\n<li class=\"text-base leading-relaxed\">The file is not in a supported <a href=\"/docs/api/usage_files/get-usages-file-upload-url#mime_type\">MIME type</a>, so the upload <a href=\"/docs/api/usage_files/usage_file-object#upload_details\">URL</a> is not generated.</li>\n<li class=\"text-base leading-relaxed\">The file size exceeds <strong class=\"font-semibold\">1 GB</strong>. The upload succeeds, but processing is discarded. Check the status using the <a href=\"/docs/api/usage_files/get-uploaded-file-processing-status\">Retrieve file processing status</a> endpoint.</li>\n<li class=\"text-base leading-relaxed\">The file contains invalid or corrupt content that prevents successful parsing.\n<strong class=\"font-semibold\">Error Message:</strong> &quot;The file format, size, or content is invalid. Please ensure the file is in the correct format and adheres to the size limits.&quot;</li>\n</ul></td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">DUPLICATE_COLUMNS</code></td><td>This error occurs when the file contains duplicate column headers, which must be unique. <strong class=\"font-semibold\">Error Message:</strong> &quot;Duplicate columns found: [list of duplicates]. Please remove duplicates from your file before uploading again.&quot;</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">RECORD_LIMIT_EXCEEDED</code></td><td>This error occurs when the number of records in the uploaded file exceeds the system-defined limit. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">[limit]</code> placeholder specifies the maximum allowed records. <strong class=\"font-semibold\">Error Message:</strong> &quot;The number of records exceeds the allowed limit of [limit]. Please reduce the number of records in the file and try uploading again.&quot;</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">PARTIAL_FAILURE</code></td><td>This error indicates that some records in the file failed to process, while others were processed successfully. Review the failed records in the UI or failed queue for more details. <strong class=\"font-semibold\">Error Message:</strong> &quot;Some records in the file could not be processed successfully. Please check the failed records in the [UI/Failed Queue] for more details.&quot;</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">COMPLETE_FAILURE</code></td><td>This error indicates that all records in the uploaded file failed to process. Review the file, fix the issues, and try uploading it again. <strong class=\"font-semibold\">Error Message:</strong> &quot;All records in the file failed to process. Please check the failed records in the [UI/Failed Queue] for more details.&quot;</td></tr><tr><td><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">INVALID_COLUMNS</code></td><td>This error indicates that the file contains invalid column headers. <strong class=\"font-semibold\">Error Message:</strong> &quot;Invalid columns found: [list of invalid headers]. Please correct column names in your file before uploading again.&quot;</td></tr></tbody></table></div><div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>:\nUsage events flagged as failed appear in the <strong class=\"font-semibold\">Usages</strong> &gt; <a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/ingesting-usage-events-into-chargebee#failed_events\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\"><strong class=\"font-semibold\">Failed Events</strong></a>\nsection of the <strong class=\"font-semibold\">Admin UI Dashboard</strong>.</p></div></div>",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier for the usage file.\n",
            "maxLength" : 36,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The name of the uploaded file.\n",
            "maxLength" : 150,
            "example" : null
          },
          "mime_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates the format of a file.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note:</strong>\nCurrently, only <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">text/csv</code>\nis supported.</p></div>",
            "maxLength" : 100,
            "example" : null
          },
          "error_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A short, machine-readable code that indicates the reason for the failure. [Learn more](/docs/api/usage_files)\nabout the error codes.\n",
            "maxLength" : 50,
            "example" : null
          },
          "error_reason" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A descriptive, human-readable message explaining the failure. [Learn more](/docs/api/usage_files)\nabout the error messages.\n",
            "maxLength" : 500,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "default" : "queued",
            "deprecated" : false,
            "description" : "Current status of the usage file.\n\\* processed -\n\nThe file processing is completed.\n\\* processing -\n\nThe file is currently being processed.\n\\* queued -\n\nThe file is queued for upload.\n\\* cancelled -\n\nThe file upload or processing was canceled.\n\\* failed -\n\nThe file failed to process.\n\\* imported -\n\nThe file has been imported.\n",
            "enum" : [ "queued", "imported", "processing", "processed", "failed" ],
            "example" : null
          },
          "total_records_count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Total number of records in the file.\n",
            "example" : null
          },
          "processed_records_count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Number of records that were successfully processed.\n",
            "example" : null
          },
          "failed_records_count" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "Number of records that failed validation or import.\n",
            "example" : null
          },
          "file_size_in_bytes" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "The size of the file in bytes.\n",
            "example" : null
          },
          "processing_started_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the file processing began.\n",
            "example" : null
          },
          "processing_completed_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the file processing was completed.\n",
            "example" : null
          },
          "uploaded_by" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the user or system that uploaded the file.\n",
            "maxLength" : 100,
            "example" : null
          },
          "uploaded_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the file was uploaded.\n",
            "example" : null
          },
          "error_file_path" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Amazon S3 path in your bucket where the error file containing error codes is uploaded.\n",
            "maxLength" : 2000,
            "example" : null
          },
          "error_file_url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Pre-signed URL for the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">error_file</code>\ncontaining <code><a href=\"/docs/api/usage_files/usage_file-object#error_code\">error_codes</a></code>.\nThe link is valid for 60 minutes.</p>",
            "maxLength" : 2000,
            "example" : null
          },
          "upload_details" : {
            "type" : "object",
            "deprecated" : false,
            "description" : "Contains details of the file upload.\n",
            "properties" : {
              "url" : {
                "type" : "string",
                "deprecated" : false,
                "description" : "Pre-signed URL that allows you to upload usage events file.\n",
                "maxLength" : 2000,
                "example" : null
              },
              "expires_at" : {
                "type" : "integer",
                "format" : "unix-time",
                "deprecated" : false,
                "description" : "Expiry time of the pre-signed URL.\n",
                "example" : null
              }
            },
            "required" : [ "expires_at", "url" ],
            "example" : null
          }
        },
        "required" : [ "id", "mime_type", "name" ],
        "example" : null
      },
      "UsageFileIngestedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "usage_file" : {
                "$ref" : "#/components/schemas/UsageFile"
              }
            },
            "required" : [ "usage_file" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "UsageReminderInfo" : {
        "type" : "object",
        "description" : "",
        "properties" : {
          "usage_date_start" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "",
            "example" : null
          },
          "usage_date_end" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "",
            "example" : null
          }
        },
        "example" : null
      },
      "UsageSummary" : {
        "type" : "object",
        "description" : "Usage summary represents aggregated usage data for a metered [feature](/docs/api/features/feature-object) in a [subscription](/docs/api/subscriptions/subscription-object) over a specific reporting period. The aggregation is performed based on the [aggregation method](https://www.chargebee.com/docs/billing/2.0/usage-based-billing/defining-metered-features) configured in Billing.\n\nUse this resource to analyze feature-level usage for reporting or analytics purposes, independent of usage billing or invoicing.\n",
        "properties" : {
          "subscription_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the subscription for which usage is reported.\n",
            "maxLength" : 50,
            "example" : null
          },
          "feature_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the metered feature for which usage is aggregated.\n",
            "maxLength" : 100,
            "example" : null
          },
          "aggregated_value" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">The total usage aggregated over the reporting window defined by <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_from</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">aggregated_to</code>. The aggregation is performed based on the <a href=\"https://www.chargebee.com/docs/billing/2.0/usage-based-billing/defining-metered-features\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">aggregation method</a> configured in Billing.</p>",
            "maxLength" : 33,
            "example" : null
          },
          "aggregated_from" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The start timestamp (inclusive) of the aggregation window in UTC.\n",
            "example" : null
          },
          "aggregated_to" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "The end timestamp (exclusive) of the aggregation window in UTC.\n",
            "example" : null
          }
        },
        "required" : [ "aggregated_from", "aggregated_to", "aggregated_value", "feature_id", "subscription_id" ],
        "example" : null
      },
      "ValidationStatus" : {
        "type" : "string",
        "default" : "not_validated",
        "deprecated" : false,
        "enum" : [ "not_validated", "valid", "partially_valid", "invalid" ],
        "example" : null
      },
      "Variant" : {
        "type" : "object",
        "description" : "A product variant is a specific product version with a unique combination of product option values.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The immutable unique identifier of a product variant.\n",
            "maxLength" : 100,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This is a unique name that appears for each product variant to the end user.\n",
            "maxLength" : 100,
            "example" : null
          },
          "external_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "This is a unique name appears for each product variant to the end user.\n",
            "maxLength" : 100,
            "example" : null
          },
          "description" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Description of the product variant.\n",
            "maxLength" : 500,
            "example" : null
          },
          "sku" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier code a seller assigns to each product variant. Retailers and merchants use SKUs to keep track of inventory and sales data and help organize products within a store or warehouse. SKUs can include a combination of letters, numbers, and symbols and can vary in length depending on the seller's needs.\n",
            "maxLength" : 100,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Product variant is deleted or not. If the value is <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\nthen the product variant has been deleted else it exists. Once the product variant is deleted, you can reuse the product variant <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">id</code>\nand <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">name</code>\n.</p>",
            "example" : null
          },
          "product_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The unique identifier of the product that is associated with this variant.\n",
            "maxLength" : 100,
            "example" : null
          },
          "status" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Status of the product variant.\n\\* active -\n\nThe active product variants are visible on the storefront, subscription, or checkout.\n\\* inactive -\n\nThe inactive product variants are not visible on the storefront, subscription, or checkout.\n",
            "enum" : [ "active", "inactive" ],
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp when the product variant was created.\n",
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this product variant was last updated.\n",
            "example" : null
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : true,
            "deprecated" : false,
            "description" : "A collection of key-value pairs that provides extra information about the variant. \\*\\*Note:\\*\\* There's a character limit of 65,535. \\[Learn more\\](/docs/api/advanced-features#metadata) .\n",
            "example" : null
          },
          "option_values" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "List of product variants option values.\n",
            "items" : {
              "type" : "object",
              "deprecated" : false,
              "properties" : {
                "name" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "Name of the option values.\n",
                  "maxLength" : 100,
                  "example" : null
                },
                "value" : {
                  "type" : "string",
                  "deprecated" : false,
                  "description" : "<p class=\"mb-2\">Pass values of the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">option_values</code>\n.</p>",
                  "maxLength" : 100,
                  "example" : null
                }
              },
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "created_at", "deleted", "name", "product_id" ],
        "example" : null
      },
      "VariantCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "variant" : {
                "$ref" : "#/components/schemas/Variant"
              }
            },
            "required" : [ "variant" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VariantDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "variant" : {
                "$ref" : "#/components/schemas/Variant"
              }
            },
            "required" : [ "variant" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VariantUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "variant" : {
                "$ref" : "#/components/schemas/Variant"
              }
            },
            "required" : [ "variant" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VirtualBankAccount" : {
        "type" : "object",
        "description" : "A virtual bank account gives customers a dedicated account to pay into, so you don't share your organization's sensitive bank account details with them. You can create a virtual bank account for a customer and share the payment instructions. Customers pay using methods such as ACH credit or wire transfer. Chargebee automatically applies incoming funds to the customer's due invoices.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the virtual bank account\n",
            "maxLength" : 40,
            "example" : null
          },
          "customer_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier of the customer.\n",
            "maxLength" : 50,
            "example" : null
          },
          "email" : {
            "type" : "string",
            "format" : "email",
            "deprecated" : false,
            "description" : "Email address associated with the virtual bank account\n",
            "maxLength" : 70,
            "example" : null
          },
          "scheme" : {
            "type" : "string",
            "default" : "ach_credit",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Type of the credit transfer</p>\n* eu_automated_bank_transfer - <p class=\"mb-2\">EU Automated Bank Transfer</p>\n* ach_credit - <p class=\"mb-2\">ACH Credit Transfer</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This scheme is deprecated. Instead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">ach_credit</code>\nuse <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">us_automated_bank_transfer</code>\n.</p></div>\n* gb_automated_bank_transfer - <p class=\"mb-2\">UK Automated Bank Transfer</p>\n* mx_automated_bank_transfer - <p class=\"mb-2\">MX Automated Bank Transfer</p>\n* jp_automated_bank_transfer - <p class=\"mb-2\">JP Automated Bank Transfer</p>\n* us_automated_bank_transfer - <p class=\"mb-2\">US Automated Bank Transfer</p>\n* sepa_credit - <p class=\"mb-2\">SEPA Credit Transfer</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\">This scheme is deprecated. Instead of <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">sepa_credit</code>\nuse <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">eu_automated_bank_transfer</code>\n.</p></div>",
            "enum" : [ "ach_credit", "sepa_credit", "us_automated_bank_transfer", "gb_automated_bank_transfer", "eu_automated_bank_transfer", "jp_automated_bank_transfer", "mx_automated_bank_transfer" ],
            "example" : null
          },
          "bank_name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the bank\n",
            "maxLength" : 100,
            "example" : null
          },
          "account_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The account number to which funds will be transferred.\n",
            "maxLength" : 50,
            "minLength" : 5,
            "example" : null
          },
          "routing_number" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The routing number of the bank\n",
            "maxLength" : 50,
            "minLength" : 3,
            "example" : null
          },
          "swift_code" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Swift code of the bank in which the account exists.\n",
            "maxLength" : 11,
            "minLength" : 3,
            "example" : null
          },
          "gateway" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Name of the gateway this virtual bank account is stored in.\n\\* twikey -\n\nTwikey is a payment service provider that specializes in processing direct debit payments across the EU.\n\\* ecentric -\n\nEcentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities.\n\\* bluesnap -\n\nBlueSnap is a payment gateway.\n\\* jp_morgan -\n\nJ.P. Morgan Mobility Payment Solutions is a payment gateway that enables you to securely accept and manage digital payments across different [payment_source_type](/docs/api/payment_sources/payment_source-object#type).  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/jp-morgan-bacs&ref=feature) to enable the J.P. Morgan Mobility Payment Solutions gateway via payFURL for your test and live sites.\n\\* tco -\n\n2Checkout is a payment gateway.\n\\* first_data_global -\n\nFirst Data Global Gateway Virtual Terminal Account\n\\* exact -\n\nExact Payments is a payment gateway.\n\\* deutsche_bank -\n\nDeutsche Bank is the leading German bank with strong European roots and a global network.  \nThis feature is a **Private Beta Release**.\n\\* bluepay -\n\nBluePay is a payment gateway.\n\\* paypal_express_checkout -\n\nPayPal Express Checkout is a payment gateway.\n\\* nuvei -\n\nNuvei is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/nuvei&ref=feature) to enable Nuvei for your test and live sites.\n\\* eway -\n\neWAY Account is a payment gateway.\n\\* metrics_global -\n\nMetrics global is a leading payment service provider providing unified payment services in the US.\n\\* paypal_payflow_pro -\n\nPayPal Payflow Pro is a payment gateway.\n\\* razorpay -\n\nRazorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc.\n\\* global_payments -\n\nGlobal Payments is a payment service provider.\n\\* amazon_payments -\n\nAmazon Payments is a payment service provider.\n\\* dlocal -\n\nDlocal provides payment solutions for global commerce by accepting local payment methods.\n\\* not_applicable -\n\nIndicates that payment gateway is not applicable for this resource.\n\\* windcave -\n\nWindcave provides an end to end payment processing solution in ANZ and other leading global markets.\n\\* checkout_com -\n\nCheckout.com is a payment gateway.\n\\* adyen -\n\nAdyen is a payment gateway.\n\\* braintree -\n\nBraintree is a payment gateway.\n\\* nmi -\n\nNMI is a payment gateway.\n\\* quickbooks -\n\nIntuit QuickBooks Payments gateway\n\\* wepay -\n\nWePay is a payment gateway.\n\\* worldpay -\n\nWorldPay is a payment gateway\n\\* paystack -\n\nPaystack is a payment gateway for businesses in Africa. It enables secure payment acceptance both online and offline.  \nThis feature is a **Private Beta Release** . [Request access](https://app.chargebee.com/login?forward=https://app.chargebee.com/request_access/paystack&ref=feature) to enable Paystack for your test and live sites.\n\\* ezidebit -\n\nEzidebit is a payment gateway integration based in Australia that supports automated direct debit, BPAY, and card payments for businesses.  \nThis feature is a **Private Beta Release**.\n\\* pay_com -\n\nPay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes.\n\\* wirecard -\n\nWireCard Account is a payment service provider.\n\\* chargebee_payments -\n\nChargebee Payments gateway\n\\* sage_pay -\n\nSage Pay is a payment gateway.\n\\* moneris_us -\n\nMoneris USA is a payment gateway.\n\\* pin -\n\nPin is a payment gateway\n\\* authorize_net -\n\nAuthorize.net is a payment gateway\n\\* elavon -\n\nElavon Virtual Merchant is a payment solution.\n\\* paypal_pro -\n\nPayPal Pro Account is a payment gateway.\n\\* orbital -\n\nChase Paymentech(Orbital) is a payment gateway.\n\\* paypal -\n\nPayPal Commerce is a payment gateway.\n\\* beanstream -\n\nBambora(formerly known as Beanstream) is a payment gateway.\n\\* hdfc -\n\nHDFC Account is a payment gateway.\n\\* ingenico_direct -\n\nWorldline Online Payments is a payment gateway.\n\\* ogone -\n\nIngenico ePayments (formerly known as Ogone) is a payment gateway.\n\\* migs -\n\nMasterCard Internet Gateway Service payment gateway.\n\\* stripe -\n\nStripe is a payment gateway.\n\\* vantiv -\n\nVantiv is a payment gateway.\n\\* moneris -\n\nMoneris is a payment gateway.\n\\* bank_of_america -\n\nBank of America Gateway\n\\* chargebee -\n\nChargebee test gateway.\n\\* eway_rapid -\n\neWAY Rapid is a payment gateway.\n\\* gocardless -\n\nGoCardless is a payment service provider.\n\\* mollie -\n\nMollie is a payment gateway.\n\\* paymill -\n\nPAYMILL is a payment gateway.\n\\* balanced_payments -\n\nBalanced is a payment gateway\n\\* solidgate -\n\nSolidgate is a secure and reliable payment processing solution that allows you to accept payments from customers and suitable for various types of businesses.  \nThis feature is a **Private Beta Release**.\n\\* cybersource -\n\nCyberSource is a payment gateway.\n\\* ebanx -\n\nEBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.\n",
            "enum" : [ "chargebee", "chargebee_payments", "adyen", "stripe", "wepay", "braintree", "authorize_net", "paypal_pro", "pin", "eway", "eway_rapid", "worldpay", "balanced_payments", "beanstream", "bluepay", "elavon", "first_data_global", "hdfc", "migs", "nmi", "ogone", "paymill", "paypal_payflow_pro", "sage_pay", "tco", "wirecard", "amazon_payments", "paypal_express_checkout", "gocardless", "orbital", "moneris_us", "moneris", "bluesnap", "cybersource", "vantiv", "checkout_com", "paypal", "ingenico_direct", "exact", "mollie", "quickbooks", "razorpay", "global_payments", "bank_of_america", "ecentric", "metrics_global", "windcave", "pay_com", "ebanx", "dlocal", "nuvei", "solidgate", "paystack", "jp_morgan", "deutsche_bank", "ezidebit", "twikey", "tempus", "moyasar", "payway", "not_applicable" ],
            "example" : null
          },
          "gateway_account_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The gateway account in which this virtual bank account is stored.\n",
            "maxLength" : 50,
            "example" : null
          },
          "resource_version" : {
            "type" : "integer",
            "format" : "int64",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Version number of this resource. The <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">resource_version</code>\nis updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.</p>",
            "example" : null
          },
          "updated_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this virtual bank account resource was last updated.\n",
            "example" : null
          },
          "created_at" : {
            "type" : "integer",
            "format" : "unix-time",
            "deprecated" : false,
            "description" : "Timestamp indicating when this virtual bank account resource is created.\n",
            "example" : null
          },
          "reference_id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "Identifier provided by the gateway for the virtual bank account source. In case of Stripe, the reference_id consists of a combination of Stripe Customer ID and Stripe Source ID separated by a forward slash (e.g. cus_63MnDn0t6kfDW7/src_6WjCF20vT9WN1G).\n",
            "maxLength" : 150,
            "example" : null
          },
          "deleted" : {
            "type" : "boolean",
            "deprecated" : false,
            "description" : "Indicates that this resource has been deleted.\n",
            "example" : null
          }
        },
        "required" : [ "account_number", "created_at", "customer_id", "deleted", "email", "gateway", "gateway_account_id", "id", "reference_id" ],
        "example" : null
      },
      "VirtualBankAccountAddedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "virtual_bank_account" : {
                "$ref" : "#/components/schemas/VirtualBankAccount"
              }
            },
            "required" : [ "customer", "virtual_bank_account" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VirtualBankAccountDeletedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "virtual_bank_account" : {
                "$ref" : "#/components/schemas/VirtualBankAccount"
              }
            },
            "required" : [ "customer", "virtual_bank_account" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VirtualBankAccountUpdatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "customer" : {
                "$ref" : "#/components/schemas/Customer"
              },
              "virtual_bank_account" : {
                "$ref" : "#/components/schemas/VirtualBankAccount"
              }
            },
            "required" : [ "customer", "virtual_bank_account" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VoucherCreateFailedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_voucher" : {
                "$ref" : "#/components/schemas/PaymentVoucher"
              }
            },
            "required" : [ "payment_voucher" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VoucherCreatedEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_voucher" : {
                "$ref" : "#/components/schemas/PaymentVoucher"
              }
            },
            "required" : [ "payment_voucher" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VoucherExpiredEvent" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The ID of the event\n",
            "example" : null
          },
          "occurred_at" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Timestamp of the event\n",
            "example" : null
          },
          "source" : {
            "type" : "string",
            "description" : "Source of the event\n",
            "example" : null
          },
          "object" : {
            "type" : "string",
            "description" : "The object of the event\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "description" : "API version\n",
            "example" : null
          },
          "event_type" : {
            "type" : "string",
            "description" : "Type of the event\n",
            "example" : null
          },
          "webhook_status" : {
            "type" : "string",
            "description" : "Status of webhook\n",
            "example" : null
          },
          "content" : {
            "type" : "object",
            "properties" : {
              "payment_voucher" : {
                "$ref" : "#/components/schemas/PaymentVoucher"
              }
            },
            "required" : [ "payment_voucher" ],
            "example" : null
          }
        },
        "required" : [ "api_version", "content", "event_type", "id", "object", "occurred_at", "source", "webhook_status" ],
        "example" : null
      },
      "VoucherType" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "boleto" ],
        "example" : null
      },
      "WebhookEndpoint" : {
        "type" : "object",
        "description" : "A webhook endpoint receives real-time notifications from your Chargebee site when specific events occur, such as invoice generation, payment failures, or subscription updates. It allows your application, server, or third-party service to automatically respond to these changes, eliminating the need for manual checks or polling the API.\nEach webhook endpoint includes details such as a unique ID, target URL, list of subscribed events, and status. You can manage webhook endpoints using the Chargebee dashboard or the API.  \n**Note**\nYou can create up to five webhook endpoints per site.\n",
        "properties" : {
          "id" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "A unique identifier for the webhook.\n",
            "maxLength" : 40,
            "example" : null
          },
          "name" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The name assigned to the webhook.\n",
            "maxLength" : 50,
            "example" : null
          },
          "url" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "The full URL of the webhook endpoint.\n",
            "maxLength" : 512,
            "example" : null
          },
          "send_card_resource" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Controls whether card-related resources are included in the webhook payload. Card details are always masked.\n",
            "example" : null
          },
          "disabled" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates whether the webhook endpoint is disabled. If <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">true</code>\n, the endpoint is disabled; if <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">false</code>\n, it is enabled.</p>",
            "example" : null
          },
          "primary_url" : {
            "type" : "boolean",
            "default" : false,
            "deprecated" : false,
            "description" : "Indicates whether this is the primary webhook endpoint. If only one endpoint exists, it is considered primary by default.\n",
            "example" : null
          },
          "api_version" : {
            "type" : "string",
            "default" : "v2",
            "deprecated" : false,
            "description" : "Specifies the API version used to format the webhook payload. Make sure this version matches the client library version used by your webhook server.\n\\* v1 -\n\nIf selected, the webhook payload includes only attributes from API v1 resources.\n\\* v2 -\n\nIf selected, the webhook payload includes only attributes from API v2 resources.\n",
            "enum" : [ "v1", "v2" ],
            "example" : null
          },
          "chargebee_response_schema_type" : {
            "type" : "string",
            "deprecated" : false,
            "description" : "<p class=\"mb-2\">Indicates the response schema used in the webhook payload,  based on the product catalog version configured for the site.</p>\n<div class=\"alert alert-info\"><p class=\"mb-2\"><strong class=\"font-semibold\">Note</strong>\nThis field is only applicable if the site is in <a href=\"https://www.chargebee.com/docs/billing/1.0/product-catalog/product-catalog-coexistence-ui-changes\"><code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">compat</code></a> mode.</p></div>\n* compat - <p class=\"mb-2\">The webhook payload uses a schema compatible with both Product Catalog 1.0 and 2.0. This is applicable only to sites automatically upgraded to Product Catalog 2.0.</p>\n* items - <p class=\"mb-2\">The webhook payload follows the <a href=\"https://www.chargebee.com/docs/billing/2.0/product-catalog/product-catalog\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 hover:text-blue-800 underline\">Product Catalog 2.0</a>\nschema and uses the <a href=\"/docs/api/items\">Items API model</a>\n.</p>\n* plans_addons - <p class=\"mb-2\">The webhook payload follows the <a href=\"https://www.chargebee.com/docs/billing/1.0/product-catalog/product-catalog\">Product Catalog 1.0</a>\nschema and uses the <a href=\"/docs/api/v2/pcv-1/plans\">Plans</a>\nand <a href=\"/docs/api/v2/pcv-1/addons\">Addons</a>\nmodel.</p>",
            "enum" : [ "plans_addons", "items", "compat" ],
            "example" : null
          },
          "enabled_events" : {
            "type" : "array",
            "deprecated" : false,
            "description" : "The types of events that trigger this webhook. For a complete list, see [event types](/docs/api/webhook_endpoints)\n.\n",
            "items" : {
              "type" : "string",
              "deprecated" : false,
              "description" : "The types of events that trigger this webhook. For a complete list, see [event types](/docs/api/webhook_endpoints)\n.\n",
              "enum" : [ "coupon_created", "coupon_updated", "coupon_deleted", "coupon_set_created", "coupon_set_updated", "coupon_set_deleted", "coupon_codes_added", "coupon_codes_deleted", "coupon_codes_updated", "customer_created", "customer_changed", "customer_deleted", "customer_moved_out", "customer_moved_in", "promotional_credits_added", "promotional_credits_deducted", "subscription_created", "subscription_created_with_backdating", "subscription_started", "subscription_trial_end_reminder", "subscription_activated", "subscription_activated_with_backdating", "subscription_changed", "subscription_trial_extended", "mrr_updated", "subscription_changed_with_backdating", "subscription_cancellation_scheduled", "subscription_cancellation_reminder", "subscription_cancelled", "subscription_canceled_with_backdating", "subscription_reactivated", "subscription_reactivated_with_backdating", "subscription_renewed", "subscription_items_renewed", "subscription_scheduled_cancellation_removed", "subscription_changes_scheduled", "subscription_scheduled_changes_removed", "subscription_shipping_address_updated", "subscription_deleted", "subscription_paused", "subscription_pause_scheduled", "subscription_scheduled_pause_removed", "subscription_resumed", "subscription_resumption_scheduled", "subscription_scheduled_resumption_removed", "subscription_advance_invoice_schedule_added", "subscription_advance_invoice_schedule_updated", "subscription_advance_invoice_schedule_removed", "pending_invoice_created", "pending_invoice_updated", "invoice_generated", "invoice_generated_with_backdating", "invoice_updated", "invoice_deleted", "credit_note_created", "credit_note_created_with_backdating", "credit_note_updated", "credit_note_deleted", "payment_schedules_created", "payment_schedules_updated", "payment_schedule_scheme_created", "payment_schedule_scheme_deleted", "subscription_renewal_reminder", "add_usages_reminder", "payment_due_reminder", "transaction_created", "transaction_updated", "transaction_deleted", "payment_succeeded", "payment_failed", "dunning_updated", "payment_refunded", "payment_initiated", "refund_initiated", "authorization_succeeded", "authorization_voided", "card_added", "card_updated", "card_expiry_reminder", "card_expired", "card_deleted", "payment_source_added", "payment_source_updated", "payment_source_deleted", "payment_source_expiring", "payment_source_expired", "payment_source_locally_deleted", "virtual_bank_account_added", "virtual_bank_account_updated", "virtual_bank_account_deleted", "token_created", "token_consumed", "token_expired", "unbilled_charges_created", "unbilled_charges_voided", "unbilled_charges_deleted", "unbilled_charges_invoiced", "order_created", "order_updated", "order_cancelled", "order_delivered", "order_returned", "order_ready_to_process", "order_ready_to_ship", "order_deleted", "order_resent", "quote_created", "quote_updated", "quote_deleted", "tax_withheld_recorded", "tax_withheld_deleted", "tax_withheld_refunded", "gift_scheduled", "gift_unclaimed", "gift_claimed", "gift_expired", "gift_cancelled", "gift_updated", "hierarchy_created", "hierarchy_deleted", "payment_intent_created", "payment_intent_updated", "contract_term_created", "contract_term_renewed", "contract_term_terminated", "contract_term_completed", "contract_term_cancelled", "item_family_created", "item_family_updated", "item_family_deleted", "item_created", "item_updated", "item_deleted", "item_price_created", "item_price_updated", "item_price_deleted", "attached_item_created", "attached_item_updated", "attached_item_deleted", "differential_price_created", "differential_price_updated", "differential_price_deleted", "feature_created", "feature_updated", "feature_deleted", "feature_activated", "feature_reactivated", "feature_archived", "item_entitlements_updated", "entitlement_overrides_updated", "entitlement_overrides_removed", "item_entitlements_removed", "entitlement_overrides_auto_removed", "subscription_entitlements_created", "subscription_entitlements_updated", "business_entity_created", "business_entity_updated", "business_entity_deleted", "customer_business_entity_changed", "subscription_business_entity_changed", "purchase_created", "voucher_created", "voucher_expired", "voucher_create_failed", "item_price_entitlements_updated", "item_price_entitlements_removed", "subscription_ramp_created", "subscription_ramp_deleted", "subscription_ramp_applied", "subscription_ramp_drafted", "subscription_ramp_updated", "price_variant_created", "price_variant_updated", "price_variant_deleted", "customer_entitlements_updated", "subscription_moved_in", "subscription_moved_out", "subscription_movement_failed", "omnichannel_subscription_created", "omnichannel_subscription_item_renewed", "omnichannel_subscription_item_downgraded", "omnichannel_subscription_item_expired", "omnichannel_subscription_item_cancellation_scheduled", "omnichannel_subscription_item_scheduled_cancellation_removed", "omnichannel_subscription_item_resubscribed", "omnichannel_subscription_item_upgraded", "omnichannel_subscription_item_cancelled", "omnichannel_subscription_imported", "omnichannel_subscription_item_grace_period_started", "omnichannel_subscription_item_grace_period_expired", "omnichannel_subscription_item_dunning_started", "omnichannel_subscription_item_dunning_expired", "rule_created", "rule_updated", "rule_deleted", "record_purchase_failed", "omnichannel_subscription_item_change_scheduled", "omnichannel_subscription_item_scheduled_change_removed", "omnichannel_subscription_item_reactivated", "sales_order_created", "sales_order_updated", "omnichannel_subscription_item_changed", "omnichannel_subscription_item_paused", "omnichannel_subscription_item_resumed", "omnichannel_one_time_order_created", "omnichannel_one_time_order_item_cancelled", "usage_file_ingested", "omnichannel_subscription_item_pause_scheduled", "omnichannel_subscription_moved_in", "omnichannel_transaction_created", "alert_status_changed", "omnichannel_subscription_item_updated", "omnichannel_subscription_item_recovered" ],
              "example" : null
            },
            "example" : null
          }
        },
        "required" : [ "api_version", "disabled", "id", "name", "primary_url", "url" ],
        "example" : null
      },
      "WindowSize" : {
        "type" : "string",
        "deprecated" : false,
        "enum" : [ "month", "week", "day", "hour", "minute" ],
        "example" : null
      }
    },
    "parameters" : {
      "payment-voucher-id" : {
        "name" : "payment-voucher-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "item-price-id" : {
        "name" : "item-price-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "reason-code-id" : {
        "name" : "reason-code-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "differential-price-id" : {
        "name" : "differential-price-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "tax-withheld-id" : {
        "name" : "tax-withheld-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "sales-order-id" : {
        "name" : "sales-order-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "in-app-subscription-app-id" : {
        "name" : "in-app-subscription-app-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "quote-id" : {
        "name" : "quote-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "limit" : {
        "name" : "limit",
        "in" : "query",
        "required" : false,
        "style" : "form",
        "explode" : true,
        "schema" : {
          "type" : "integer",
          "format" : "int32",
          "default" : 10,
          "description" : "The number of resources to be returned.",
          "x-cb-is-pagination-parameter" : true,
          "maximum" : 100,
          "minimum" : 1,
          "example" : null
        }
      },
      "include_deleted" : {
        "name" : "include_deleted",
        "in" : "query",
        "required" : false,
        "style" : "form",
        "explode" : true,
        "schema" : {
          "type" : "boolean",
          "default" : false,
          "description" : "Indicates whether to include deleted objects in the list. The deleted objects have the attribute `deleted` as `true`."
        }
      },
      "chargebee-request-origin-ip" : {
        "name" : "chargebee-request-origin-ip",
        "in" : "header",
        "description" : "The IP address of the customer where the request originated",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "description" : "The IP address of the customer where the request originated",
          "example" : "192.168.1.2",
          "pattern" : "^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-fA-F]|[a-fA-F][a-fA-F0-9\\-]*[a-fA-F0-9])\\.)*([A-Fa-f]|[A-Fa-f][A-Fa-f0-9\\-]*[A-Fa-f0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::)))))$"
        }
      },
      "coupon-code-code" : {
        "name" : "coupon-code-code",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "pc2-migration-item-family-id" : {
        "name" : "pc2-migration-item-family-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "chargebee-business-entity-id" : {
        "name" : "chargebee-business-entity-id",
        "in" : "header",
        "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "description" : "If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.",
          "maxLength" : 50
        }
      },
      "offset" : {
        "name" : "offset",
        "in" : "query",
        "required" : false,
        "style" : "form",
        "explode" : true,
        "schema" : {
          "type" : "string",
          "description" : "Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set 'offset' to the value of 'next_offset' obtained in the previous iteration of the API call.",
          "x-cb-is-pagination-parameter" : true,
          "maxLength" : 1000,
          "example" : null
        }
      },
      "entitlement-override-id" : {
        "name" : "entitlement-override-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "subscription-id" : {
        "name" : "subscription-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "hosted-page-id" : {
        "name" : "hosted-page-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "credit-note-id" : {
        "name" : "credit-note-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "virtual-bank-account-id" : {
        "name" : "virtual-bank-account-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "chargebee-event-webhook" : {
        "name" : "chargebee-event-webhook",
        "in" : "header",
        "description" : " skip only webhooks",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "description" : " skip only webhooks",
          "enum" : [ "all-disabled" ]
        }
      },
      "e-invoicing-country-country" : {
        "name" : "e-invoicing-country-country",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "coupon-set-id" : {
        "name" : "coupon-set-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "non-subscription-app-id" : {
        "name" : "non-subscription-app-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "business-entity-transfer-id" : {
        "name" : "business-entity-transfer-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "portal-session-id" : {
        "name" : "portal-session-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "attached-item-id" : {
        "name" : "attached-item-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "plan-id" : {
        "name" : "plan-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "chargebee-request-origin-user-encoded" : {
        "name" : "chargebee-request-origin-user-encoded",
        "in" : "header",
        "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "format" : "email",
          "description" : "The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.",
          "example" : "dXNlci7QutCy0ZbRgtC+0YfQutCwQGV4YW1wbGUuY29t"
        }
      },
      "ruleset-id" : {
        "name" : "ruleset-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "meter-id" : {
        "name" : "meter-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "business-entity-id" : {
        "name" : "business-entity-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "item-id" : {
        "name" : "item-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "item-billing-metric-id" : {
        "name" : "item-billing-metric-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "subscription-entitlement-id" : {
        "name" : "subscription-entitlement-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "customer-id" : {
        "name" : "customer-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "cust-payment-source-id" : {
        "name" : "cust-payment-source-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "site-currency-id" : {
        "name" : "site-currency-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "chargebee-request-origin-device" : {
        "name" : "chargebee-request-origin-device",
        "in" : "header",
        "description" : "The device from which the customer has made the request",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "description" : "The device from which the customer has made the request",
          "example" : "Android"
        }
      },
      "thunking-plan-id" : {
        "name" : "thunking-plan-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "tp-site-user-domain" : {
        "name" : "tp-site-user-domain",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "payment-schedule-scheme-id" : {
        "name" : "payment-schedule-scheme-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "event-id" : {
        "name" : "event-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "async-response-id" : {
        "name" : "async-response-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "site-owner-id" : {
        "name" : "site-owner-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "rule-id" : {
        "name" : "rule-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "time-machine-name" : {
        "name" : "time-machine-name",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "item-family-id" : {
        "name" : "item-family-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "omnichannel-subscription-item-id" : {
        "name" : "omnichannel-subscription-item-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "product-id" : {
        "name" : "product-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "omnichannel-one-time-order-id" : {
        "name" : "omnichannel-one-time-order-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "invoice-id" : {
        "name" : "invoice-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "feature-id" : {
        "name" : "feature-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "transaction-id" : {
        "name" : "transaction-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "business-rule-id" : {
        "name" : "business-rule-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "offer-fulfillment-id" : {
        "name" : "offer-fulfillment-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "cb-token-id" : {
        "name" : "cb-token-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "purchase-id" : {
        "name" : "purchase-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "chargebee-event-email" : {
        "name" : "chargebee-event-email",
        "in" : "header",
        "description" : "skip only emails",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "description" : "skip only emails",
          "enum" : [ "all-disabled" ]
        }
      },
      "omnichannel-subscription-id" : {
        "name" : "omnichannel-subscription-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "price-variant-id" : {
        "name" : "price-variant-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "comment-id" : {
        "name" : "comment-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "webhook-endpoint-id" : {
        "name" : "webhook-endpoint-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "pc2-migration-item-id" : {
        "name" : "pc2-migration-item-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "usage-file-id" : {
        "name" : "usage-file-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "coupon-id" : {
        "name" : "coupon-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "alert-id" : {
        "name" : "alert-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "recorded-purchase-id" : {
        "name" : "recorded-purchase-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "payment-intent-id" : {
        "name" : "payment-intent-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "tp-integ-sync-detail-id" : {
        "name" : "tp-integ-sync-detail-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "order-id" : {
        "name" : "order-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "pc2-migration-item-price-id" : {
        "name" : "pc2-migration-item-price-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "product-variant-id" : {
        "name" : "product-variant-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "account-credit-id" : {
        "name" : "account-credit-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "chargebee-event-actions" : {
        "name" : "chargebee-event-actions",
        "in" : "header",
        "description" : "skip all actions to be done on the events",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "description" : "skip all actions to be done on the events",
          "enum" : [ "all-disabled" ]
        }
      },
      "pc2-migration-id" : {
        "name" : "pc2-migration-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "async-api-request-id" : {
        "name" : "async-api-request-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "chargebee-request-origin-user" : {
        "name" : "chargebee-request-origin-user",
        "in" : "header",
        "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.",
        "required" : false,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string",
          "format" : "email",
          "description" : "The email address of your customer/user. Use this when the email address has only ASCII characters.",
          "example" : "user@example.com"
        }
      },
      "ramp-id" : {
        "name" : "ramp-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "custom-pricing-unit-id" : {
        "name" : "custom-pricing-unit-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "export-id" : {
        "name" : "export-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "gift-id" : {
        "name" : "gift-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "unbilled-charge-id" : {
        "name" : "unbilled-charge-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      },
      "addon-id" : {
        "name" : "addon-id",
        "in" : "path",
        "required" : true,
        "style" : "simple",
        "explode" : false,
        "schema" : {
          "type" : "string"
        }
      }
    },
    "securitySchemes" : {
      "BasicAuth" : {
        "type" : "http",
        "scheme" : "basic"
      }
    }
  },
  "jsonSchemaDialect" : "https://spec.openapis.org/oas/3.1/dialect/base",
  "webhooks" : {
    "subscription_pause_scheduled" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is scheduled to pause.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is scheduled to pause.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is scheduled to pause.</p>",
        "operationId" : "onSubscription_pause_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_pause_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionPauseScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "customer_business_entity_changed" : {
      "post" : {
        "summary" : "Triggered when a customer's business entity is changed",
        "operationId" : "onCustomer_business_entity_changedWebhook",
        "requestBody" : {
          "description" : "Payload for customer_business_entity_changed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CustomerBusinessEntityChangedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_advance_invoice_schedule_added" : {
      "description" : "<p class=\"mb-2\">Triggered when advance invoice is scheduled for a subscription.</p>",
      "post" : {
        "summary" : "Triggered when advance invoice is scheduled for a subscription.",
        "description" : "<p class=\"mb-2\">Triggered when advance invoice is scheduled for a subscription.</p>",
        "operationId" : "onSubscription_advance_invoice_schedule_addedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_advance_invoice_schedule_added event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionAdvanceInvoiceScheduleAddedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "gift_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when a gift expires.</p>",
      "post" : {
        "summary" : "Triggered when a gift expires.",
        "description" : "<p class=\"mb-2\">Triggered when a gift expires.</p>",
        "operationId" : "onGift_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for gift_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GiftExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "tax_withheld_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a tax withheld is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a tax withheld is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a tax withheld is deleted.</p>",
        "operationId" : "onTax_withheld_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for tax_withheld_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TaxWithheldDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "unbilled_charges_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when unbilled charges are deleted</p>",
      "post" : {
        "summary" : "Triggered when unbilled charges are deleted",
        "description" : "<p class=\"mb-2\">Triggered when unbilled charges are deleted</p>",
        "operationId" : "onUnbilled_charges_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for unbilled_charges_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UnbilledChargesDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a coupon is changed.</p>",
      "post" : {
        "summary" : "Triggered when a coupon is changed.",
        "description" : "<p class=\"mb-2\">Triggered when a coupon is changed.</p>",
        "operationId" : "onCoupon_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "product_updated" : {
      "post" : {
        "summary" : "Triggered when a product resource is updated successfully",
        "operationId" : "onProduct_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for product_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ProductUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "omnichannel_subscription_item_reactivated" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s refund is reversed.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item's refund is reversed",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s refund is reversed.</p>",
        "operationId" : "onOmnichannel_subscription_item_reactivatedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_reactivated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemReactivatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_renewed" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is renewed.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is renewed",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is renewed.</p>",
        "operationId" : "onOmnichannel_subscription_item_renewedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_renewed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemRenewedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "unbilled_charges_created" : {
      "description" : "<p class=\"mb-2\">Triggered when unbilled charges are created</p>",
      "post" : {
        "summary" : "Triggered when unbilled charges are created",
        "description" : "<p class=\"mb-2\">Triggered when unbilled charges are created</p>",
        "operationId" : "onUnbilled_charges_createdWebhook",
        "requestBody" : {
          "description" : "Payload for unbilled_charges_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UnbilledChargesCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_resumed" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is resumed.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is resumed.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is resumed.</p>",
        "operationId" : "onSubscription_resumedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_resumed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionResumedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_one_time_order_item_cancelled" : {
      "post" : {
        "summary" : "Triggered when an omnichannel one time order item is cancelled",
        "operationId" : "onOmnichannel_one_time_order_item_cancelledWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_one_time_order_item_cancelled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelOneTimeOrderItemCancelledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_cancelled" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is cancelled. If it is cancelled due to non payment or because the card details are not present, the subscription will have the possible reason as &#x27;cancel_reason&#x27;.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is cancelled. If it is cancelled due to non payment or because the card details are not present, the subscription will have the possible reason as 'cancel_reason'.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is cancelled. If it is cancelled due to non payment or because the card details are not present, the subscription will have the possible reason as &#x27;cancel_reason&#x27;.</p>",
        "operationId" : "onSubscription_cancelledWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_cancelled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionCancelledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_entitlements_removed" : {
      "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>s were removed for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> or a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>.</p>",
      "post" : {
        "summary" : "One or more `item_entitlement`s were removed for an `item` or a `feature`.",
        "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_entitlement</code>s were removed for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code> or a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>.</p>",
        "operationId" : "onItem_entitlements_removedWebhook",
        "requestBody" : {
          "description" : "Payload for item_entitlements_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemEntitlementsRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "business_entity_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a business entity is created</p>",
      "post" : {
        "summary" : "Triggered when a business entity is created",
        "description" : "<p class=\"mb-2\">Triggered when a business entity is created</p>",
        "operationId" : "onBusiness_entity_createdWebhook",
        "requestBody" : {
          "description" : "Payload for business_entity_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/BusinessEntityCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_set_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a coupon set is updated.</p>",
      "post" : {
        "summary" : "Triggered when a coupon set is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a coupon set is updated.</p>",
        "operationId" : "onCoupon_set_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_set_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponSetUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "differential_price_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a differential price is updated.</p>",
      "post" : {
        "summary" : "Triggered when a differential price is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a differential price is updated.</p>",
        "operationId" : "onDifferential_price_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for differential_price_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DifferentialPriceUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_paused" : {
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is paused",
        "operationId" : "onOmnichannel_subscription_item_pausedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_paused event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemPausedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "entitlement_overrides_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when one or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> objects are removed. This is not triggered when Chargebee removes the objects automatically upon expiry.</p>",
      "post" : {
        "summary" : "Triggered when one or more `entitlement_override` objects are removed. This is not triggered when Chargebee removes the objects automatically upon expiry.",
        "description" : "<p class=\"mb-2\">Triggered when one or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> objects are removed. This is not triggered when Chargebee removes the objects automatically upon expiry.</p>",
        "operationId" : "onEntitlement_overrides_removedWebhook",
        "requestBody" : {
          "description" : "Payload for entitlement_overrides_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/EntitlementOverridesRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_activated_with_backdating" : {
      "description" : "<p class=\"mb-2\">Triggered after the subscription changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> from another <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, while the change is backdated.</p>",
      "post" : {
        "summary" : "Triggered after the subscription changes to `active` from another `status`, while the change is backdated.",
        "description" : "<p class=\"mb-2\">Triggered after the subscription changes to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> from another <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code>, while the change is backdated.</p>",
        "operationId" : "onSubscription_activated_with_backdatingWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_activated_with_backdating event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionActivatedWithBackdatingEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_trial_end_reminder" : {
      "description" : "<p class=\"mb-2\">Triggered 6 days prior to the trial period&#x27;s end date.</p>",
      "post" : {
        "summary" : "Triggered 6 days prior to the trial period's end date.",
        "description" : "<p class=\"mb-2\">Triggered 6 days prior to the trial period&#x27;s end date.</p>",
        "operationId" : "onSubscription_trial_end_reminderWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_trial_end_reminder event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionTrialEndReminderEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_shipping_address_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when shipping address is added or updated for a subscription.</p>",
      "post" : {
        "summary" : "Triggered when shipping address is added or updated for a subscription.",
        "description" : "<p class=\"mb-2\">Triggered when shipping address is added or updated for a subscription.</p>",
        "operationId" : "onSubscription_shipping_address_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_shipping_address_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionShippingAddressUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "voucher_create_failed" : {
      "description" : "<p class=\"mb-2\">Triggered when the Payment voucher Creation fails.</p>",
      "post" : {
        "summary" : "Triggered when the Payment voucher Creation fails.",
        "description" : "<p class=\"mb-2\">Triggered when the Payment voucher Creation fails.</p>",
        "operationId" : "onVoucher_create_failedWebhook",
        "requestBody" : {
          "description" : "Payload for voucher_create_failed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VoucherCreateFailedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "gift_claimed" : {
      "description" : "<p class=\"mb-2\">Triggered when a gift is claimed.</p>",
      "post" : {
        "summary" : "Triggered when a gift is claimed.",
        "description" : "<p class=\"mb-2\">Triggered when a gift is claimed.</p>",
        "operationId" : "onGift_claimedWebhook",
        "requestBody" : {
          "description" : "Payload for gift_claimed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GiftClaimedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "customer_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a customer is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a customer is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a customer is deleted.</p>",
        "operationId" : "onCustomer_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for customer_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CustomerDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "refund_initiated" : {
      "description" : "<p class=\"mb-2\">Triggered when a refund is initiated using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">direct_debit</code> payment method, or when a transaction enters the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code> status due to asynchronous processing at the payment gateway.</p>",
      "post" : {
        "summary" : "Triggered when a refund is initiated via direct debit.",
        "description" : "<p class=\"mb-2\">Triggered when a refund is initiated using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">direct_debit</code> payment method, or when a transaction enters the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code> status due to asynchronous processing at the payment gateway.</p>",
        "operationId" : "onRefund_initiatedWebhook",
        "requestBody" : {
          "description" : "Payload for refund_initiated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RefundInitiatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "invoice_generated_with_backdating" : {
      "description" : "<p class=\"mb-2\">Triggered when an invoice has been created with date set to a value in the past. However, if the invoice is created with a pending status and the site setting is to set invoice.date to the date of closing the invoice, this event is never triggered.</p>",
      "post" : {
        "summary" : "Triggered when an invoice has been created with date set to a value in the past. However, if the invoice is created with a pending status and the site setting is to set invoice.date to the date of closing the invoice, this event is never triggered.",
        "description" : "<p class=\"mb-2\">Triggered when an invoice has been created with date set to a value in the past. However, if the invoice is created with a pending status and the site setting is to set invoice.date to the date of closing the invoice, this event is never triggered.</p>",
        "operationId" : "onInvoice_generated_with_backdatingWebhook",
        "requestBody" : {
          "description" : "Payload for invoice_generated_with_backdating event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/InvoiceGeneratedWithBackdatingEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_transaction_created" : {
      "post" : {
        "summary" : "Triggered when an omnichannel transaction is created",
        "operationId" : "onOmnichannel_transaction_createdWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_transaction_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelTransactionCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "add_usages_reminder" : {
      "description" : "<p class=\"mb-2\">Triggered on one day before term end of every month.</p>",
      "post" : {
        "summary" : "Triggered on one day before term end of every month.",
        "description" : "<p class=\"mb-2\">Triggered on one day before term end of every month.</p>",
        "operationId" : "onAdd_usages_reminderWebhook",
        "requestBody" : {
          "description" : "Payload for add_usages_reminder event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddUsagesReminderEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "voucher_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a Payment voucher is created.</p>",
      "post" : {
        "summary" : "Triggered when a Payment voucher is created.",
        "description" : "<p class=\"mb-2\">Triggered when a Payment voucher is created.</p>",
        "operationId" : "onVoucher_createdWebhook",
        "requestBody" : {
          "description" : "Payload for voucher_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VoucherCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "rule_updated" : {
      "post" : {
        "summary" : "Triggered when a rule is updated",
        "operationId" : "onRule_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for rule_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RuleUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_schedules_created" : {
      "post" : {
        "summary" : "Event triggered when payment schedules are created for an invoice.",
        "operationId" : "onPayment_schedules_createdWebhook",
        "requestBody" : {
          "description" : "Payload for payment_schedules_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSchedulesCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "feature_activated" : {
      "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> status transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> for the first time.</p>",
      "post" : {
        "summary" : "Triggered when a `feature` status transitions to `active` for the first time.",
        "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> status transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> for the first time.</p>",
        "operationId" : "onFeature_activatedWebhook",
        "requestBody" : {
          "description" : "Payload for feature_activated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FeatureActivatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_source_locally_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a payment source is deleted at Chargebee.</p>",
      "post" : {
        "summary" : "Triggered when a payment source is deleted at Chargebee.",
        "description" : "<p class=\"mb-2\">Triggered when a payment source is deleted at Chargebee.</p>",
        "operationId" : "onPayment_source_locally_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_source_locally_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSourceLocallyDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "invoice_generated" : {
      "description" : "<p class=\"mb-2\">Event triggered when a new invoice is created except when created with status as pending. For pending invoices, this event is triggered when the invoice is closed.</p>",
      "post" : {
        "summary" : "Event triggered when a new invoice is created except when created with status as pending. For pending invoices, this event is triggered when the invoice is closed.",
        "description" : "<p class=\"mb-2\">Event triggered when a new invoice is created except when created with status as pending. For pending invoices, this event is triggered when the invoice is closed.</p>",
        "operationId" : "onInvoice_generatedWebhook",
        "requestBody" : {
          "description" : "Payload for invoice_generated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/InvoiceGeneratedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "voucher_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when a Payment voucher is Expired.</p>",
      "post" : {
        "summary" : "Triggered when a Payment voucher is Expired.",
        "description" : "<p class=\"mb-2\">Triggered when a Payment voucher is Expired.</p>",
        "operationId" : "onVoucher_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for voucher_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VoucherExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "authorization_succeeded" : {
      "description" : "<p class=\"mb-2\">Triggered when a authorization transaction is created.</p>",
      "post" : {
        "summary" : "Triggered when a authorization transaction is created.",
        "description" : "<p class=\"mb-2\">Triggered when a authorization transaction is created.</p>",
        "operationId" : "onAuthorization_succeededWebhook",
        "requestBody" : {
          "description" : "Payload for authorization_succeeded event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AuthorizationSucceededEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "gift_scheduled" : {
      "description" : "<p class=\"mb-2\">Triggered when a new gift is created.</p>",
      "post" : {
        "summary" : "Triggered when a new gift is created.",
        "description" : "<p class=\"mb-2\">Triggered when a new gift is created.</p>",
        "operationId" : "onGift_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for gift_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GiftScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_changes_scheduled" : {
      "description" : "<p class=\"mb-2\">Triggered when subscription changes are scheduled for later. Changes will be applied at the end of current term.</p>",
      "post" : {
        "summary" : "Triggered when subscription changes are scheduled for later. Changes will be applied at the end of current term.",
        "description" : "<p class=\"mb-2\">Triggered when subscription changes are scheduled for later. Changes will be applied at the end of current term.</p>",
        "operationId" : "onSubscription_changes_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_changes_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionChangesScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_changed_with_backdating" : {
      "description" : "<p class=\"mb-2\">Triggered when a subscription is changed with changes_scheduled_at set to a value in the past.</p>",
      "post" : {
        "summary" : "Triggered when a subscription is changed with changes_scheduled_at set to a value in the past.",
        "description" : "<p class=\"mb-2\">Triggered when a subscription is changed with changes_scheduled_at set to a value in the past.</p>",
        "operationId" : "onSubscription_changed_with_backdatingWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_changed_with_backdating event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionChangedWithBackdatingEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "variant_created" : {
      "post" : {
        "summary" : "Triggered when a product variant resource is created successfully",
        "operationId" : "onVariant_createdWebhook",
        "requestBody" : {
          "description" : "Payload for variant_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VariantCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "omnichannel_subscription_item_changed" : {
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is changed",
        "operationId" : "onOmnichannel_subscription_item_changedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_changed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemChangedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "gift_unclaimed" : {
      "description" : "<p class=\"mb-2\">Triggered when a new gift is unclaimed and is ready to be claimed.</p>",
      "post" : {
        "summary" : "Triggered when a new gift is unclaimed and is ready to be claimed.",
        "description" : "<p class=\"mb-2\">Triggered when a new gift is unclaimed and is ready to be claimed.</p>",
        "operationId" : "onGift_unclaimedWebhook",
        "requestBody" : {
          "description" : "Payload for gift_unclaimed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GiftUnclaimedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "virtual_bank_account_added" : {
      "description" : "<p class=\"mb-2\">Triggered when a virtual bank account is added.</p>",
      "post" : {
        "summary" : "Triggered when a virtual bank account is added.",
        "description" : "<p class=\"mb-2\">Triggered when a virtual bank account is added.</p>",
        "operationId" : "onVirtual_bank_account_addedWebhook",
        "requestBody" : {
          "description" : "Payload for virtual_bank_account_added event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VirtualBankAccountAddedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_intent_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a payment intent is created.</p>",
      "post" : {
        "summary" : "Triggered when a payment intent is created.",
        "description" : "<p class=\"mb-2\">Triggered when a payment intent is created.</p>",
        "operationId" : "onPayment_intent_createdWebhook",
        "requestBody" : {
          "description" : "Payload for payment_intent_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentIntentCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is updated.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is updated",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is updated.</p>",
        "operationId" : "onOmnichannel_subscription_item_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "credit_note_created_with_backdating" : {
      "description" : "<p class=\"mb-2\">Triggered when a credit note is created such that generated_at is a value in the past.</p>",
      "post" : {
        "summary" : "Triggered when a credit note is created such that generated_at is a value in the past.",
        "description" : "<p class=\"mb-2\">Triggered when a credit note is created such that generated_at is a value in the past.</p>",
        "operationId" : "onCredit_note_created_with_backdatingWebhook",
        "requestBody" : {
          "description" : "Payload for credit_note_created_with_backdating event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreditNoteCreatedWithBackdatingEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "contract_term_terminated" : {
      "description" : "<p class=\"mb-2\">Triggered when contract term is terminated.</p>",
      "post" : {
        "summary" : "Triggered when contract term is terminated.",
        "description" : "<p class=\"mb-2\">Triggered when contract term is terminated.</p>",
        "operationId" : "onContract_term_terminatedWebhook",
        "requestBody" : {
          "description" : "Payload for contract_term_terminated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ContractTermTerminatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_family_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when an item family is updated.</p>",
      "post" : {
        "summary" : "Triggered when an item family is updated.",
        "description" : "<p class=\"mb-2\">Triggered when an item family is updated.</p>",
        "operationId" : "onItem_family_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for item_family_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemFamilyUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_created" : {
      "description" : "<p class=\"mb-2\">Triggered when an order is generated.</p>",
      "post" : {
        "summary" : "Triggered when an order is generated.",
        "description" : "<p class=\"mb-2\">Triggered when an order is generated.</p>",
        "operationId" : "onOrder_createdWebhook",
        "requestBody" : {
          "description" : "Payload for order_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "price_variant_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a price variant resource is deleted successfully</p>",
      "post" : {
        "summary" : "Triggered when a price variant is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a price variant resource is deleted successfully</p>",
        "operationId" : "onPrice_variant_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for price_variant_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PriceVariantDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "alert_status_changed" : {
      "description" : "<p class=\"mb-2\">Triggered when an alert&#x27;s runtime status for a subscription changes between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN_ALARM</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">WITHIN_LIMIT</code>.\nThis indicates a change in the subscription&#x27;s usage relative to the alert threshold and applies only to usage-based billing.</p>",
      "post" : {
        "summary" : "Triggered when the status for an alert changes",
        "description" : "<p class=\"mb-2\">Triggered when an alert&#x27;s runtime status for a subscription changes between <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">IN_ALARM</code> and <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">WITHIN_LIMIT</code>.\nThis indicates a change in the subscription&#x27;s usage relative to the alert threshold and applies only to usage-based billing.</p>",
        "operationId" : "onAlert_status_changedWebhook",
        "requestBody" : {
          "description" : "Payload for alert_status_changed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AlertStatusChangedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_movement_failed" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription movement fails during moving in or out of a subscription from one customer to another asynchronously.</p>",
      "post" : {
        "summary" : "Triggered when a subscription movement failed",
        "description" : "<p class=\"mb-2\">Triggered when the subscription movement fails during moving in or out of a subscription from one customer to another asynchronously.</p>",
        "operationId" : "onSubscription_movement_failedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_movement_failed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionMovementFailedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "customer_moved_in" : {
      "description" : "<p class=\"mb-2\">Triggered when a customer is copied from another site.</p>",
      "post" : {
        "summary" : "Triggered when a customer is copied from another site.",
        "description" : "<p class=\"mb-2\">Triggered when a customer is copied from another site.</p>",
        "operationId" : "onCustomer_moved_inWebhook",
        "requestBody" : {
          "description" : "Payload for customer_moved_in event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CustomerMovedInEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_advance_invoice_schedule_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when scheduled advance invoice is updated for a subscription.</p>",
      "post" : {
        "summary" : "Triggered when scheduled advance invoice is updated for a subscription.",
        "description" : "<p class=\"mb-2\">Triggered when scheduled advance invoice is updated for a subscription.</p>",
        "operationId" : "onSubscription_advance_invoice_schedule_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_advance_invoice_schedule_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionAdvanceInvoiceScheduleUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when an item is deleted.</p>",
      "post" : {
        "summary" : "Triggered when an item is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when an item is deleted.</p>",
        "operationId" : "onItem_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for item_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_ramp_drafted" : {
      "description" : "<p class=\"mb-2\">Triggered when a ramp is moved to draft status.</p>",
      "post" : {
        "summary" : "Triggered when a ramp is drafted.",
        "description" : "<p class=\"mb-2\">Triggered when a ramp is moved to draft status.</p>",
        "operationId" : "onSubscription_ramp_draftedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_ramp_drafted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionRampDraftedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "dunning_updated" : {
      "post" : {
        "summary" : "Triggered when dunning is paused for an invoice",
        "operationId" : "onDunning_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for dunning_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DunningUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_recovered" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item recovers from a billing issue and is active again.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is recovered from grace period or dunning",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item recovers from a billing issue and is active again.</p>",
        "operationId" : "onOmnichannel_subscription_item_recoveredWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_recovered event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemRecoveredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_entitlements_updated" : {
      "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>s were added or updated for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>.</p>",
      "post" : {
        "summary" : "One or more `item_entitlement`s were added or updated for an `item` or a `feature`.",
        "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>s were added or updated for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item</code>.</p>",
        "operationId" : "onItem_entitlements_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for item_entitlements_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemEntitlementsUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "token_consumed" : {
      "description" : "<p class=\"mb-2\">Triggered when a nonce is consumed.</p>",
      "post" : {
        "summary" : "Triggered when a nonce is consumed.",
        "description" : "<p class=\"mb-2\">Triggered when a nonce is consumed.</p>",
        "operationId" : "onToken_consumedWebhook",
        "requestBody" : {
          "description" : "Payload for token_consumed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TokenConsumedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "hierarchy_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a hierarchy is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a hierarchy is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a hierarchy is deleted.</p>",
        "operationId" : "onHierarchy_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for hierarchy_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/HierarchyDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_cancellation_scheduled" : {
      "description" : "<p class=\"mb-2\">Triggered when subscription is scheduled to cancel at end of current term.</p>",
      "post" : {
        "summary" : "Triggered when subscription is scheduled to cancel at end of current term.",
        "description" : "<p class=\"mb-2\">Triggered when subscription is scheduled to cancel at end of current term.</p>",
        "operationId" : "onSubscription_cancellation_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_cancellation_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionCancellationScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_renewed" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is renewed from the current term.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is renewed from the current term.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is renewed from the current term.</p>",
        "operationId" : "onSubscription_renewedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_renewed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionRenewedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "feature_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> is updated. Note: This event is not triggered when only the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> of the feature has changed.</p>",
      "post" : {
        "summary" : "Triggered when a `feature` is updated. Note: This event is not triggered when only the `status` of the feature has changed.",
        "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> is updated. Note: This event is not triggered when only the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> of the feature has changed.</p>",
        "operationId" : "onFeature_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for feature_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FeatureUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "feature_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a `feature` is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> is deleted.</p>",
        "operationId" : "onFeature_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for feature_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FeatureDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_family_created" : {
      "description" : "<p class=\"mb-2\">Triggered when an item family is created.</p>",
      "post" : {
        "summary" : "Triggered when an item family is created.",
        "description" : "<p class=\"mb-2\">Triggered when an item family is created.</p>",
        "operationId" : "onItem_family_createdWebhook",
        "requestBody" : {
          "description" : "Payload for item_family_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemFamilyCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_scheduled_change_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled change is removed.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item scheduled change is removed",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled change is removed.</p>",
        "operationId" : "onOmnichannel_subscription_item_scheduled_change_removedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_scheduled_change_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledChangeRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_resumed" : {
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is resumed",
        "operationId" : "onOmnichannel_subscription_item_resumedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_resumed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemResumedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "purchase_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a purchase resource is created successfully</p>",
      "post" : {
        "summary" : "Triggered when a purchase resource is created successfully",
        "description" : "<p class=\"mb-2\">Triggered when a purchase resource is created successfully</p>",
        "operationId" : "onPurchase_createdWebhook",
        "requestBody" : {
          "description" : "Payload for purchase_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PurchaseCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "entitlement_overrides_updated" : {
      "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code>s for a subscription were added or updated.</p>",
      "post" : {
        "summary" : "One or more `entitlement_override`s for a subscription were added or updated.",
        "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code>s for a subscription were added or updated.</p>",
        "operationId" : "onEntitlement_overrides_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for entitlement_overrides_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/EntitlementOverridesUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_family_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when an item family is deleted.</p>",
      "post" : {
        "summary" : "Triggered when an item family is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when an item family is deleted.</p>",
        "operationId" : "onItem_family_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for item_family_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemFamilyDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_resumption_scheduled" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is scheduled to resume.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is scheduled to resume.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is scheduled to resume.</p>",
        "operationId" : "onSubscription_resumption_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_resumption_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionResumptionScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "feature_reactivated" : {
      "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> status transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> for the second time or more.</p>",
      "post" : {
        "summary" : "Triggered when a `feature` status transitions to `active` for the second time or more.",
        "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> status transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> for the second time or more.</p>",
        "operationId" : "onFeature_reactivatedWebhook",
        "requestBody" : {
          "description" : "Payload for feature_reactivated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FeatureReactivatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_codes_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when coupon codes are deleted in coupon set.</p>",
      "post" : {
        "summary" : "Triggered when coupon codes are deleted in coupon set.",
        "description" : "<p class=\"mb-2\">Triggered when coupon codes are deleted in coupon set.</p>",
        "operationId" : "onCoupon_codes_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_codes_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponCodesDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "card_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when the card for a customer has expired.</p>",
      "post" : {
        "summary" : "Triggered when the card for a customer has expired.",
        "description" : "<p class=\"mb-2\">Triggered when the card for a customer has expired.</p>",
        "operationId" : "onCard_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for card_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CardExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "credit_note_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a credit note is updated.</p>",
      "post" : {
        "summary" : "Triggered when a credit note is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a credit note is updated.</p>",
        "operationId" : "onCredit_note_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for credit_note_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreditNoteUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_downgraded" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is downgraded.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is downgraded",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is downgraded.</p>",
        "operationId" : "onOmnichannel_subscription_item_downgradedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_downgraded event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemDowngradedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "price_variant_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a price variant resource is updated successfully</p>",
      "post" : {
        "summary" : "Triggered when a price variant is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a price variant resource is updated successfully</p>",
        "operationId" : "onPrice_variant_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for price_variant_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PriceVariantUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "promotional_credits_deducted" : {
      "description" : "<p class=\"mb-2\">Triggered when promotional credit is deducted.</p>",
      "post" : {
        "summary" : "Triggered when promotional credit is deducted.",
        "description" : "<p class=\"mb-2\">Triggered when promotional credit is deducted.</p>",
        "operationId" : "onPromotional_credits_deductedWebhook",
        "requestBody" : {
          "description" : "Payload for promotional_credits_deducted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PromotionalCreditsDeductedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_ramp_applied" : {
      "description" : "<p class=\"mb-2\">Triggered when a ramp is executed successfully.</p>",
      "post" : {
        "summary" : "Triggered when a ramp is applied.",
        "description" : "<p class=\"mb-2\">Triggered when a ramp is executed successfully.</p>",
        "operationId" : "onSubscription_ramp_appliedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_ramp_applied event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionRampAppliedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_paused" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is paused.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is paused.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is paused.</p>",
        "operationId" : "onSubscription_pausedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_paused event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionPausedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_ready_to_process" : {
      "description" : "<p class=\"mb-2\">Triggered when an order reaches it&#x27;s order date.</p>",
      "post" : {
        "summary" : "Triggered when an order reaches it's order date.",
        "description" : "<p class=\"mb-2\">Triggered when an order reaches it&#x27;s order date.</p>",
        "operationId" : "onOrder_ready_to_processWebhook",
        "requestBody" : {
          "description" : "Payload for order_ready_to_process event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderReadyToProcessEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "feature_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> is created.</p>",
      "post" : {
        "summary" : "Triggered when a `feature` is created.",
        "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> is created.</p>",
        "operationId" : "onFeature_createdWebhook",
        "requestBody" : {
          "description" : "Payload for feature_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FeatureCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "transaction_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a transaction is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a transaction is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a transaction is deleted.</p>",
        "operationId" : "onTransaction_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for transaction_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TransactionDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "credit_note_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a credit note is created.</p>",
      "post" : {
        "summary" : "Triggered when a credit note is created.",
        "description" : "<p class=\"mb-2\">Triggered when a credit note is created.</p>",
        "operationId" : "onCredit_note_createdWebhook",
        "requestBody" : {
          "description" : "Payload for credit_note_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreditNoteCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_resubscribed" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is resubscribed.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is resubscribed",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is resubscribed.</p>",
        "operationId" : "onOmnichannel_subscription_item_resubscribedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_resubscribed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemResubscribedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "record_purchase_failed" : {
      "description" : "<p class=\"mb-2\">Triggered when the record a purchase API fails to create an omnichannel subscription.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel record purchase is failed",
        "description" : "<p class=\"mb-2\">Triggered when the record a purchase API fails to create an omnichannel subscription.</p>",
        "operationId" : "onRecord_purchase_failedWebhook",
        "requestBody" : {
          "description" : "Payload for record_purchase_failed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RecordPurchaseFailedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_created" : {
      "description" : "<p class=\"mb-2\">Triggered when an item is created.</p>",
      "post" : {
        "summary" : "Triggered when an item is created.",
        "description" : "<p class=\"mb-2\">Triggered when an item is created.</p>",
        "operationId" : "onItem_createdWebhook",
        "requestBody" : {
          "description" : "Payload for item_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "transaction_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated.</p>",
      "post" : {
        "summary" : "Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated.",
        "description" : "<p class=\"mb-2\">Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated.</p>",
        "operationId" : "onTransaction_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for transaction_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TransactionUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "variant_deleted" : {
      "post" : {
        "summary" : "Triggered when a product variant resource is deleted successfully",
        "operationId" : "onVariant_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for variant_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VariantDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "mrr_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when either of MRR or CMRR is changed.</p>",
      "post" : {
        "summary" : "Triggered when either of MRR or CMRR is changed.",
        "description" : "<p class=\"mb-2\">Triggered when either of MRR or CMRR is changed.</p>",
        "operationId" : "onMrr_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for mrr_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/MrrUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "unbilled_charges_invoiced" : {
      "description" : "<p class=\"mb-2\">Triggered when unbilled charges are invoiced</p>",
      "post" : {
        "summary" : "Triggered when unbilled charges are invoiced",
        "description" : "<p class=\"mb-2\">Triggered when unbilled charges are invoiced</p>",
        "operationId" : "onUnbilled_charges_invoicedWebhook",
        "requestBody" : {
          "description" : "Payload for unbilled_charges_invoiced event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UnbilledChargesInvoicedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_price_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when an item price is updated.</p>",
      "post" : {
        "summary" : "Triggered when an item price is updated.",
        "description" : "<p class=\"mb-2\">Triggered when an item price is updated.</p>",
        "operationId" : "onItem_price_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for item_price_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemPriceUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_codes_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when coupon codes are updated in coupon set.</p>",
      "post" : {
        "summary" : "Triggered when coupon codes are updated in coupon set.",
        "description" : "<p class=\"mb-2\">Triggered when coupon codes are updated in coupon set.</p>",
        "operationId" : "onCoupon_codes_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_codes_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponCodesUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "virtual_bank_account_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when the virtual bank account is updated.</p>",
      "post" : {
        "summary" : "Triggered when the virtual bank account is updated.",
        "description" : "<p class=\"mb-2\">Triggered when the virtual bank account is updated.</p>",
        "operationId" : "onVirtual_bank_account_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for virtual_bank_account_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VirtualBankAccountUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "contract_term_created" : {
      "description" : "<p class=\"mb-2\">Triggered when contract term is created.</p>",
      "post" : {
        "summary" : "Triggered when contract term is created.",
        "description" : "<p class=\"mb-2\">Triggered when contract term is created.</p>",
        "operationId" : "onContract_term_createdWebhook",
        "requestBody" : {
          "description" : "Payload for contract_term_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ContractTermCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_changed" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription&#x27;s recurring items are changed.</p>",
      "post" : {
        "summary" : "Triggered when the subscription's recurring items are changed.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription&#x27;s recurring items are changed.</p>",
        "operationId" : "onSubscription_changedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_changed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionChangedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_failed" : {
      "description" : "<p class=\"mb-2\">Triggered when the payment collection fails.</p>",
      "post" : {
        "summary" : "Triggered when the payment collection fails.",
        "description" : "<p class=\"mb-2\">Triggered when the payment collection fails.</p>",
        "operationId" : "onPayment_failedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_failed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentFailedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "credit_note_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a credit note is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a credit note is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a credit note is deleted.</p>",
        "operationId" : "onCredit_note_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for credit_note_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreditNoteDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "tax_withheld_refunded" : {
      "description" : "<p class=\"mb-2\">Triggered when a tax withheld is refunded.</p>",
      "post" : {
        "summary" : "Triggered when a tax withheld is refunded.",
        "description" : "<p class=\"mb-2\">Triggered when a tax withheld is refunded.</p>",
        "operationId" : "onTax_withheld_refundedWebhook",
        "requestBody" : {
          "description" : "Payload for tax_withheld_refunded event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TaxWithheldRefundedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "contract_term_completed" : {
      "description" : "<p class=\"mb-2\">Triggered when contract term is completed.</p>",
      "post" : {
        "summary" : "Triggered when contract term is completed.",
        "description" : "<p class=\"mb-2\">Triggered when contract term is completed.</p>",
        "operationId" : "onContract_term_completedWebhook",
        "requestBody" : {
          "description" : "Payload for contract_term_completed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ContractTermCompletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_schedules_updated" : {
      "post" : {
        "summary" : "Event triggered when payment schedules are updated.",
        "operationId" : "onPayment_schedules_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_schedules_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSchedulesUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is expired.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item expires",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is expired.</p>",
        "operationId" : "onOmnichannel_subscription_item_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "card_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when the card is updated for a customer.</p>",
      "post" : {
        "summary" : "Triggered when the card is updated for a customer.",
        "description" : "<p class=\"mb-2\">Triggered when the card is updated for a customer.</p>",
        "operationId" : "onCard_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for card_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CardUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "customer_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a customer is created.</p>",
      "post" : {
        "summary" : "Triggered when a customer is created.",
        "description" : "<p class=\"mb-2\">Triggered when a customer is created.</p>",
        "operationId" : "onCustomer_createdWebhook",
        "requestBody" : {
          "description" : "Payload for customer_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CustomerCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_renewal_reminder" : {
      "description" : "<p class=\"mb-2\">Triggered 3 days before each subscription&#x27;s renewal.</p>",
      "post" : {
        "summary" : "Triggered 3 days before each subscription's renewal.",
        "description" : "<p class=\"mb-2\">Triggered 3 days before each subscription&#x27;s renewal.</p>",
        "operationId" : "onSubscription_renewal_reminderWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_renewal_reminder event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionRenewalReminderEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "netd_payment_due_reminder" : {
      "post" : {
        "summary" : "Sent when a invoice's due period is about to end",
        "operationId" : "onNetd_payment_due_reminderWebhook",
        "requestBody" : {
          "description" : "Payload for netd_payment_due_reminder event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/NetdPaymentDueReminderEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "payment_due_reminder" : {
      "post" : {
        "summary" : "Triggered when an invoice in payment_due or not_paid [status](https://apidocs.chargebee.com/docs/api/invoices/invoice-object#status) remains unpaid for a configured number of days after its due date.",
        "operationId" : "onPayment_due_reminderWebhook",
        "requestBody" : {
          "description" : "Payload for payment_due_reminder event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentDueReminderEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_delivered" : {
      "description" : "<p class=\"mb-2\">Triggered when an order is delivered.</p>",
      "post" : {
        "summary" : "Triggered when an order is delivered.",
        "description" : "<p class=\"mb-2\">Triggered when an order is delivered.</p>",
        "operationId" : "onOrder_deliveredWebhook",
        "requestBody" : {
          "description" : "Payload for order_delivered event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderDeliveredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_cancellation_scheduled" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is scheduled for cancellation.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is scheduled for cancellation",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is scheduled for cancellation.</p>",
        "operationId" : "onOmnichannel_subscription_item_cancellation_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_cancellation_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemCancellationScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_grace_period_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s grace period has expired.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item's grace period has expired",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s grace period has expired.</p>",
        "operationId" : "onOmnichannel_subscription_item_grace_period_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_grace_period_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemGracePeriodExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_codes_added" : {
      "description" : "<p class=\"mb-2\">Triggered when coupon codes are added in coupon set.</p>",
      "post" : {
        "summary" : "Triggered when coupon codes are added in coupon set.",
        "description" : "<p class=\"mb-2\">Triggered when coupon codes are added in coupon set.</p>",
        "operationId" : "onCoupon_codes_addedWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_codes_added event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponCodesAddedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "gift_cancelled" : {
      "description" : "<p class=\"mb-2\">Triggered when gift is cancelled.</p>",
      "post" : {
        "summary" : "Triggered when gift is cancelled.",
        "description" : "<p class=\"mb-2\">Triggered when gift is cancelled.</p>",
        "operationId" : "onGift_cancelledWebhook",
        "requestBody" : {
          "description" : "Payload for gift_cancelled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GiftCancelledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_cancelled" : {
      "description" : "<p class=\"mb-2\">Triggered when an order is cancelled.</p>",
      "post" : {
        "summary" : "Triggered when an order is cancelled.",
        "description" : "<p class=\"mb-2\">Triggered when an order is cancelled.</p>",
        "operationId" : "onOrder_cancelledWebhook",
        "requestBody" : {
          "description" : "Payload for order_cancelled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderCancelledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a coupon is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a coupon is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a coupon is deleted.</p>",
        "operationId" : "onCoupon_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_scheduled_changes_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when scheduled change for the subscription is removed.</p>",
      "post" : {
        "summary" : "Triggered when scheduled change for the subscription is removed.",
        "description" : "<p class=\"mb-2\">Triggered when scheduled change for the subscription is removed.</p>",
        "operationId" : "onSubscription_scheduled_changes_removedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_scheduled_changes_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionScheduledChangesRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "pending_invoice_created" : {
      "description" : "<p class=\"mb-2\">Event triggered (in the case of metered billing) when a &quot;Pending&quot; invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the &quot;Notify for Pending Invoices&quot; option is enabled.</p>",
      "post" : {
        "summary" : "Event triggered (in the case of metered billing) when a \"Pending\" invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the “Notify for Pending Invoices” option is enabled.",
        "description" : "<p class=\"mb-2\">Event triggered (in the case of metered billing) when a &quot;Pending&quot; invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the &quot;Notify for Pending Invoices&quot; option is enabled.</p>",
        "operationId" : "onPending_invoice_createdWebhook",
        "requestBody" : {
          "description" : "Payload for pending_invoice_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PendingInvoiceCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "product_deleted" : {
      "post" : {
        "summary" : "Triggered when a product resource is deleted successfully",
        "operationId" : "onProduct_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for product_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ProductDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "entitlement_overrides_auto_removed" : {
      "description" : "<p class=\"mb-2\">When a limited period <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> expires, it is no longer returned. No event is immediately triggered for it. However, after expiry, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> record gets deleted within 12 hours, triggering the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides_auto_removed</code> event. Therefore, this event can be considered a delayed notification for one or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides</code> having expired.</p>",
      "post" : {
        "summary" : "When a limited period `entitlement_override` expires, it is no longer returned. No event is immediately triggered for it. However, after expiry, the `entitlement_override` record gets deleted within 12 hours, triggering the `entitlement_overrides_auto_removed` event. Therefore, this event can be considered a delayed notification for one or more `entitlement_overrides` having expired.",
        "description" : "<p class=\"mb-2\">When a limited period <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> expires, it is no longer returned. No event is immediately triggered for it. However, after expiry, the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_override</code> record gets deleted within 12 hours, triggering the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides_auto_removed</code> event. Therefore, this event can be considered a delayed notification for one or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement_overrides</code> having expired.</p>",
        "operationId" : "onEntitlement_overrides_auto_removedWebhook",
        "requestBody" : {
          "description" : "Payload for entitlement_overrides_auto_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/EntitlementOverridesAutoRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_upgraded" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is upgraded.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is upgraded",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is upgraded.</p>",
        "operationId" : "onOmnichannel_subscription_item_upgradedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_upgraded event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemUpgradedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_business_entity_changed" : {
      "post" : {
        "summary" : "Triggered when a subscription's business entity is changed",
        "operationId" : "onSubscription_business_entity_changedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_business_entity_changed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionBusinessEntityChangedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_one_time_order_created" : {
      "post" : {
        "summary" : "Triggered when an omnichannel one time order is created",
        "operationId" : "onOmnichannel_one_time_order_createdWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_one_time_order_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelOneTimeOrderCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_source_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a payment source is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a payment source is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a payment source is deleted.</p>",
        "operationId" : "onPayment_source_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_source_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSourceDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_cancelled" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is cancelled.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is cancelled",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item is cancelled.</p>",
        "operationId" : "onOmnichannel_subscription_item_cancelledWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_cancelled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemCancelledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "quote_deleted" : {
      "description" : "<p class=\"mb-2\">Event triggered when a new quote is deleted.</p>",
      "post" : {
        "summary" : "Event triggered when a new quote is deleted.",
        "description" : "<p class=\"mb-2\">Event triggered when a new quote is deleted.</p>",
        "operationId" : "onQuote_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for quote_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/QuoteDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "invoice_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when you make the following changes to a pending invoice - add a charge, add a non-recurring addon, or delete a line item.</p>",
      "post" : {
        "summary" : "Triggered when you make the following changes to a pending invoice - add a charge, add a non-recurring addon, or delete a line item.",
        "description" : "<p class=\"mb-2\">Triggered when you make the following changes to a pending invoice - add a charge, add a non-recurring addon, or delete a line item.</p>",
        "operationId" : "onInvoice_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for invoice_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/InvoiceUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_advance_invoice_schedule_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when scheduled advance invoice is removed for a subscription.</p>",
      "post" : {
        "summary" : "Triggered when scheduled advance invoice is removed for a subscription.",
        "description" : "<p class=\"mb-2\">Triggered when scheduled advance invoice is removed for a subscription.</p>",
        "operationId" : "onSubscription_advance_invoice_schedule_removedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_advance_invoice_schedule_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionAdvanceInvoiceScheduleRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "card_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a card is deleted for a customer.</p>",
      "post" : {
        "summary" : "Triggered when a card is deleted for a customer.",
        "description" : "<p class=\"mb-2\">Triggered when a card is deleted for a customer.</p>",
        "operationId" : "onCard_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for card_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CardDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_ready_to_ship" : {
      "description" : "<p class=\"mb-2\">Triggered when an order reaches it&#x27;s shipping date.</p>",
      "post" : {
        "summary" : "Triggered when an order reaches it's shipping date.",
        "description" : "<p class=\"mb-2\">Triggered when an order reaches it&#x27;s shipping date.</p>",
        "operationId" : "onOrder_ready_to_shipWebhook",
        "requestBody" : {
          "description" : "Payload for order_ready_to_ship event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderReadyToShipEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "variant_updated" : {
      "post" : {
        "summary" : "Triggered when a product variant resource is updated successfully",
        "operationId" : "onVariant_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for variant_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VariantUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "subscription_moved_out" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is moving out from one customer to another asynchronously.</p>",
      "post" : {
        "summary" : "Triggered when a subscription moved to other customer",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is moving out from one customer to another asynchronously.</p>",
        "operationId" : "onSubscription_moved_outWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_moved_out event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionMovedOutEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_schedule_scheme_created" : {
      "post" : {
        "summary" : "Event triggered when a new payment schedule scheme is created",
        "operationId" : "onPayment_schedule_scheme_createdWebhook",
        "requestBody" : {
          "description" : "Payload for payment_schedule_scheme_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentScheduleSchemeCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "business_entity_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a business entity is changed</p>",
      "post" : {
        "summary" : "Triggered when a business entity is changed",
        "description" : "<p class=\"mb-2\">Triggered when a business entity is changed</p>",
        "operationId" : "onBusiness_entity_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for business_entity_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/BusinessEntityUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_scheduled_resumption_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when scheduled resumption is removed for the subscription.</p>",
      "post" : {
        "summary" : "Triggered when scheduled resumption is removed for the subscription.",
        "description" : "<p class=\"mb-2\">Triggered when scheduled resumption is removed for the subscription.</p>",
        "operationId" : "onSubscription_scheduled_resumption_removedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_scheduled_resumption_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionScheduledResumptionRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_initiated" : {
      "description" : "<p class=\"mb-2\">Triggered when a payment is initiated using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">direct_debit</code> payment method, or when a transaction enters the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code> status due to asynchronous processing at the payment gateway.</p>",
      "post" : {
        "summary" : "Triggered when a payment is initiated via direct debit.",
        "description" : "<p class=\"mb-2\">Triggered when a payment is initiated using the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">direct_debit</code> payment method, or when a transaction enters the <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_progress</code> status due to asynchronous processing at the payment gateway.</p>",
        "operationId" : "onPayment_initiatedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_initiated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentInitiatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "feature_archived" : {
      "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> status transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>.</p>",
      "post" : {
        "summary" : "Triggered when a `feature` status transitions to `archived`.",
        "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code> status transitions to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">archived</code>.</p>",
        "operationId" : "onFeature_archivedWebhook",
        "requestBody" : {
          "description" : "Payload for feature_archived event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FeatureArchivedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_reactivated_with_backdating" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is moved from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code> is set to a value in the past.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is moved from `cancelled` `status` to `active` or `in_trial`, while `reactivate_from` is set to a value in the past.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is moved from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>, while <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">reactivate_from</code> is set to a value in the past.</p>",
        "operationId" : "onSubscription_reactivated_with_backdatingWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_reactivated_with_backdating event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionReactivatedWithBackdatingEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_imported" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription is imported.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription is imported",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription is imported.</p>",
        "operationId" : "onOmnichannel_subscription_importedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_imported event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionImportedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "token_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when a nonce is expired.</p>",
      "post" : {
        "summary" : "Triggered when a nonce is expired.",
        "description" : "<p class=\"mb-2\">Triggered when a nonce is expired.</p>",
        "operationId" : "onToken_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for token_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TokenExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "card_added" : {
      "description" : "<p class=\"mb-2\">Triggered when a card is added for a customer.</p>",
      "post" : {
        "summary" : "Triggered when a card is added for a customer.",
        "description" : "<p class=\"mb-2\">Triggered when a card is added for a customer.</p>",
        "operationId" : "onCard_addedWebhook",
        "requestBody" : {
          "description" : "Payload for card_added event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CardAddedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a coupon is created.</p>",
      "post" : {
        "summary" : "Triggered when a coupon is created.",
        "description" : "<p class=\"mb-2\">Triggered when a coupon is created.</p>",
        "operationId" : "onCoupon_createdWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "rule_deleted" : {
      "post" : {
        "summary" : "Triggered when a rule is deleted",
        "operationId" : "onRule_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for rule_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RuleDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_price_entitlements_updated" : {
      "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>s were added or updated for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.</p>",
      "post" : {
        "summary" : "One or more `item_price_entitlement`s were added or updated for an `item_price` or a `feature`.",
        "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">entitlement</code>s were added or updated for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code>.</p>",
        "operationId" : "onItem_price_entitlements_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for item_price_entitlements_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemPriceEntitlementsUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_price_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when an item price is deleted.</p>",
      "post" : {
        "summary" : "Triggered when an item price is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when an item price is deleted.</p>",
        "operationId" : "onItem_price_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for item_price_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemPriceDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "virtual_bank_account_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a virtual bank account is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a virtual bank account is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a virtual bank account is deleted.</p>",
        "operationId" : "onVirtual_bank_account_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for virtual_bank_account_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VirtualBankAccountDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_schedule_scheme_deleted" : {
      "post" : {
        "summary" : "Event triggered when a payment schedule scheme is deleted",
        "operationId" : "onPayment_schedule_scheme_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_schedule_scheme_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentScheduleSchemeDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a new subscription is created.</p>",
      "post" : {
        "summary" : "Triggered when a new subscription is created.",
        "description" : "<p class=\"mb-2\">Triggered when a new subscription is created.</p>",
        "operationId" : "onSubscription_createdWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_entitlements_created" : {
      "description" : "<p class=\"mb-2\">Triggered on subscription creation, alongside the subscription_created event whenever the subscription has subscription_entitlements. The event payload contains the first 100 subscription_entitlements. The has_next attribute is set to true if more than 100 subscription entitlements are available. You can retrieve the next page by calling the &quot;List subscription entitlements&quot; endpoint, passing the offset parameter as 1.</p>",
      "post" : {
        "summary" : "Triggered on subscription creation, alongside the subscription_created event whenever the subscription has subscription_entitlements. The event payload contains the first 100 subscription_entitlements. The has_next attribute is set to true if more than 100 subscription entitlements are available. You can retrieve the next page by calling the “List subscription entitlements” endpoint, passing the offset parameter as 1.",
        "description" : "<p class=\"mb-2\">Triggered on subscription creation, alongside the subscription_created event whenever the subscription has subscription_entitlements. The event payload contains the first 100 subscription_entitlements. The has_next attribute is set to true if more than 100 subscription entitlements are available. You can retrieve the next page by calling the &quot;List subscription entitlements&quot; endpoint, passing the offset parameter as 1.</p>",
        "operationId" : "onSubscription_entitlements_createdWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_entitlements_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionEntitlementsCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_returned" : {
      "description" : "<p class=\"mb-2\">Triggered when an order is returned.</p>",
      "post" : {
        "summary" : "Triggered when an order is returned.",
        "description" : "<p class=\"mb-2\">Triggered when an order is returned.</p>",
        "operationId" : "onOrder_returnedWebhook",
        "requestBody" : {
          "description" : "Payload for order_returned event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderReturnedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a subscription is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a subscription is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a subscription is deleted.</p>",
        "operationId" : "onSubscription_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_source_added" : {
      "description" : "<p class=\"mb-2\">Triggered when a payment source is added.</p>",
      "post" : {
        "summary" : "Triggered when a payment source is added.",
        "description" : "<p class=\"mb-2\">Triggered when a payment source is added.</p>",
        "operationId" : "onPayment_source_addedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_source_added event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSourceAddedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_moved_in" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is moving in from one customer to another asynchronously.</p>",
      "post" : {
        "summary" : "Triggered when a subscription moved from other customer",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is moving in from one customer to another asynchronously.</p>",
        "operationId" : "onSubscription_moved_inWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_moved_in event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionMovedInEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_price_created" : {
      "description" : "<p class=\"mb-2\">Triggered when an item price is created.</p>",
      "post" : {
        "summary" : "Triggered when an item price is created.",
        "description" : "<p class=\"mb-2\">Triggered when an item price is created.</p>",
        "operationId" : "onItem_price_createdWebhook",
        "requestBody" : {
          "description" : "Payload for item_price_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemPriceCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_scheduled_cancellation_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when scheduled cancellation is removed for the subscription.</p>",
      "post" : {
        "summary" : "Triggered when scheduled cancellation is removed for the subscription.",
        "description" : "<p class=\"mb-2\">Triggered when scheduled cancellation is removed for the subscription.</p>",
        "operationId" : "onSubscription_scheduled_cancellation_removedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_scheduled_cancellation_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionScheduledCancellationRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_refunded" : {
      "description" : "<p class=\"mb-2\">Triggered when a payment refund is made.</p>",
      "post" : {
        "summary" : "Triggered when a payment refund is made.",
        "description" : "<p class=\"mb-2\">Triggered when a payment refund is made.</p>",
        "operationId" : "onPayment_refundedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_refunded event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentRefundedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "usage_file_ingested" : {
      "post" : {
        "summary" : "Triggered when a usage file is ingested",
        "operationId" : "onUsage_file_ingestedWebhook",
        "requestBody" : {
          "description" : "Payload for usage_file_ingested event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UsageFileIngestedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "product_created" : {
      "post" : {
        "summary" : "Triggered when a product resource is created successfully",
        "operationId" : "onProduct_createdWebhook",
        "requestBody" : {
          "description" : "Payload for product_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ProductCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "omnichannel_subscription_moved_in" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription is moved to another customer</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription is moved to another customer",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription is moved to another customer</p>",
        "operationId" : "onOmnichannel_subscription_moved_inWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_moved_in event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionMovedInEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "differential_price_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a differential price is created.</p>",
      "post" : {
        "summary" : "Triggered when a differential price is created.",
        "description" : "<p class=\"mb-2\">Triggered when a differential price is created.</p>",
        "operationId" : "onDifferential_price_createdWebhook",
        "requestBody" : {
          "description" : "Payload for differential_price_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DifferentialPriceCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "transaction_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a transaction is recorded.</p>",
      "post" : {
        "summary" : "Triggered when a transaction is recorded.",
        "description" : "<p class=\"mb-2\">Triggered when a transaction is recorded.</p>",
        "operationId" : "onTransaction_createdWebhook",
        "requestBody" : {
          "description" : "Payload for transaction_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TransactionCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_downgrade_scheduled" : {
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item downgrade is scheduled",
        "operationId" : "onOmnichannel_subscription_item_downgrade_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_downgrade_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemDowngradeScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "payment_succeeded" : {
      "description" : "<p class=\"mb-2\">Triggered when the payment is successfully collected.</p>",
      "post" : {
        "summary" : "Triggered when the payment is successfully collected.",
        "description" : "<p class=\"mb-2\">Triggered when the payment is successfully collected.</p>",
        "operationId" : "onPayment_succeededWebhook",
        "requestBody" : {
          "description" : "Payload for payment_succeeded event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSucceededEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_canceled_with_backdating" : {
      "description" : "<p class=\"mb-2\">Triggered when a subscription is canceled with cancel_at set to a value in the past.</p>",
      "post" : {
        "summary" : "Triggered when a subscription is canceled with cancel_at set to a value in the past.",
        "description" : "<p class=\"mb-2\">Triggered when a subscription is canceled with cancel_at set to a value in the past.</p>",
        "operationId" : "onSubscription_canceled_with_backdatingWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_canceled_with_backdating event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionCanceledWithBackdatingEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "unbilled_charges_voided" : {
      "description" : "<p class=\"mb-2\">Triggered when unbilled charges are voided</p>",
      "post" : {
        "summary" : "Triggered when unbilled charges are voided",
        "description" : "<p class=\"mb-2\">Triggered when unbilled charges are voided</p>",
        "operationId" : "onUnbilled_charges_voidedWebhook",
        "requestBody" : {
          "description" : "Payload for unbilled_charges_voided event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UnbilledChargesVoidedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "quote_created" : {
      "description" : "<p class=\"mb-2\">Event triggered when a new quote is generated.</p>",
      "post" : {
        "summary" : "Event triggered when a new quote is generated.",
        "description" : "<p class=\"mb-2\">Event triggered when a new quote is generated.</p>",
        "operationId" : "onQuote_createdWebhook",
        "requestBody" : {
          "description" : "Payload for quote_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/QuoteCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_set_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a coupon set is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a coupon set is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a coupon set is deleted.</p>",
        "operationId" : "onCoupon_set_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_set_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponSetDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "attached_item_created" : {
      "description" : "<p class=\"mb-2\">Triggered when an attached item is created.</p>",
      "post" : {
        "summary" : "Triggered when an attached item is created.",
        "description" : "<p class=\"mb-2\">Triggered when an attached item is created.</p>",
        "operationId" : "onAttached_item_createdWebhook",
        "requestBody" : {
          "description" : "Payload for attached_item_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AttachedItemCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "sales_order_created" : {
      "post" : {
        "summary" : "Triggered when a new sales order is created.",
        "operationId" : "onSales_order_createdWebhook",
        "requestBody" : {
          "description" : "Payload for sales_order_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SalesOrderCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "customer_changed" : {
      "description" : "<p class=\"mb-2\">Triggered when customer details are changed, and the payment method role of a customer is updated.</p>",
      "post" : {
        "summary" : "Triggered when a customer is changed.",
        "description" : "<p class=\"mb-2\">Triggered when customer details are changed, and the payment method role of a customer is updated.</p>",
        "operationId" : "onCustomer_changedWebhook",
        "requestBody" : {
          "description" : "Payload for customer_changed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CustomerChangedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_started" : {
      "description" : "<p class=\"mb-2\">Triggered when a &#x27;future&#x27; subscription gets started.</p>",
      "post" : {
        "summary" : "Triggered when a 'future' subscription gets started.",
        "description" : "<p class=\"mb-2\">Triggered when a &#x27;future&#x27; subscription gets started.</p>",
        "operationId" : "onSubscription_startedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_started event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionStartedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_activated" : {
      "description" : "<p class=\"mb-2\">Triggered after the subscription has been moved from &quot;Trial&quot; to &quot;Active&quot; state.</p>",
      "post" : {
        "summary" : "Triggered after the subscription has been moved from \"Trial\" to \"Active\" state.",
        "description" : "<p class=\"mb-2\">Triggered after the subscription has been moved from &quot;Trial&quot; to &quot;Active&quot; state.</p>",
        "operationId" : "onSubscription_activatedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_activated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionActivatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_source_expiring" : {
      "description" : "<p class=\"mb-2\">Triggered when the customer&#x27;s payment source is expiring soon. Triggered 30 days before the expiry date.</p>",
      "post" : {
        "summary" : "Triggered when the customer's payment source is expiring soon. Triggered 30 days before the expiry date.",
        "description" : "<p class=\"mb-2\">Triggered when the customer&#x27;s payment source is expiring soon. Triggered 30 days before the expiry date.</p>",
        "operationId" : "onPayment_source_expiringWebhook",
        "requestBody" : {
          "description" : "Payload for payment_source_expiring event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSourceExpiringEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_reactivated" : {
      "description" : "<p class=\"mb-2\">Triggered when the subscription is moved from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>.</p>",
      "post" : {
        "summary" : "Triggered when the subscription is moved from `cancelled` `status` to `active` or `in_trial`.",
        "description" : "<p class=\"mb-2\">Triggered when the subscription is moved from <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">cancelled</code> <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">status</code> to <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">active</code> or <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">in_trial</code>.</p>",
        "operationId" : "onSubscription_reactivatedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_reactivated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionReactivatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when an order is updated.</p>",
      "post" : {
        "summary" : "Triggered when an order is updated.",
        "description" : "<p class=\"mb-2\">Triggered when an order is updated.</p>",
        "operationId" : "onOrder_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for order_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_scheduled_pause_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when scheduled pause is removed for the subscription.</p>",
      "post" : {
        "summary" : "Triggered when scheduled pause is removed for the subscription.",
        "description" : "<p class=\"mb-2\">Triggered when scheduled pause is removed for the subscription.</p>",
        "operationId" : "onSubscription_scheduled_pause_removedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_scheduled_pause_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionScheduledPauseRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_cancellation_reminder" : {
      "description" : "<p class=\"mb-2\">Triggered 6 days prior to the scheduled cancellation date.</p>",
      "post" : {
        "summary" : "Triggered 6 days prior to the scheduled cancellation date.",
        "description" : "<p class=\"mb-2\">Triggered 6 days prior to the scheduled cancellation date.</p>",
        "operationId" : "onSubscription_cancellation_reminderWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_cancellation_reminder event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionCancellationReminderEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_created_with_backdating" : {
      "description" : "<p class=\"mb-2\">Triggered when a subscription is created and the value of subscription.started_at is in the past.</p>",
      "post" : {
        "summary" : "Triggered when a subscription is created and the value of subscription.started_at is in the past.",
        "description" : "<p class=\"mb-2\">Triggered when a subscription is created and the value of subscription.started_at is in the past.</p>",
        "operationId" : "onSubscription_created_with_backdatingWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_created_with_backdating event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionCreatedWithBackdatingEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_ramp_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a ramp is created.</p>",
      "post" : {
        "summary" : "Triggered when a ramp is created.",
        "description" : "<p class=\"mb-2\">Triggered when a ramp is created.</p>",
        "operationId" : "onSubscription_ramp_createdWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_ramp_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionRampCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when an order is deleted.</p>",
      "post" : {
        "summary" : "Triggered when an order is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when an order is deleted.</p>",
        "operationId" : "onOrder_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for order_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_pause_scheduled" : {
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item is scheduled for pause.",
        "operationId" : "onOmnichannel_subscription_item_pause_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_pause_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemPauseScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "gift_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a gift is updated.</p>",
      "post" : {
        "summary" : "Triggered when a gift is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a gift is updated.</p>",
        "operationId" : "onGift_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for gift_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GiftUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_trial_extended" : {
      "description" : "<p class=\"mb-2\">Trial Extension</p>",
      "post" : {
        "summary" : "Trial Extension",
        "description" : "<p class=\"mb-2\">Trial Extension</p>",
        "operationId" : "onSubscription_trial_extendedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_trial_extended event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionTrialExtendedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_grace_period_started" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item has entered a grace period.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item's grace period has started",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item has entered a grace period.</p>",
        "operationId" : "onOmnichannel_subscription_item_grace_period_startedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_grace_period_started event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemGracePeriodStartedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "card_expiry_reminder" : {
      "description" : "<p class=\"mb-2\">Triggered when the customer&#x27;s credit card is expiring soon. Triggered 30 days before the expiry date.</p>",
      "post" : {
        "summary" : "Triggered when the customer's credit card is expiring soon. Triggered 30 days before the expiry date.",
        "description" : "<p class=\"mb-2\">Triggered when the customer&#x27;s credit card is expiring soon. Triggered 30 days before the expiry date.</p>",
        "operationId" : "onCard_expiry_reminderWebhook",
        "requestBody" : {
          "description" : "Payload for card_expiry_reminder event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CardExpiryReminderEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "token_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a nonce is created.</p>",
      "post" : {
        "summary" : "Triggered when a nonce is created.",
        "description" : "<p class=\"mb-2\">Triggered when a nonce is created.</p>",
        "operationId" : "onToken_createdWebhook",
        "requestBody" : {
          "description" : "Payload for token_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TokenCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "promotional_credits_added" : {
      "description" : "<p class=\"mb-2\">Triggered when promotional credit is added.</p>",
      "post" : {
        "summary" : "Triggered when promotional credit is added.",
        "description" : "<p class=\"mb-2\">Triggered when promotional credit is added.</p>",
        "operationId" : "onPromotional_credits_addedWebhook",
        "requestBody" : {
          "description" : "Payload for promotional_credits_added event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PromotionalCreditsAddedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_ramp_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a ramp is updated.</p>",
      "post" : {
        "summary" : "Triggered when a subscription ramp is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a ramp is updated.</p>",
        "operationId" : "onSubscription_ramp_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_ramp_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionRampUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "customer_entitlements_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> is updated.</p>",
      "post" : {
        "summary" : "Triggered when entitlements for the list of customers got updated.",
        "description" : "<p class=\"mb-2\">Triggered when a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">customer_entitlement</code> is updated.</p>",
        "operationId" : "onCustomer_entitlements_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for customer_entitlements_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CustomerEntitlementsUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_source_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when the payment source for a customer has expired.</p>",
      "post" : {
        "summary" : "Triggered when the payment source for a customer has expired.",
        "description" : "<p class=\"mb-2\">Triggered when the payment source for a customer has expired.</p>",
        "operationId" : "onPayment_source_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for payment_source_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSourceExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "customer_moved_out" : {
      "description" : "<p class=\"mb-2\">Triggered when a customer is copied to another site.</p>",
      "post" : {
        "summary" : "Triggered when a customer is copied to another site.",
        "description" : "<p class=\"mb-2\">Triggered when a customer is copied to another site.</p>",
        "operationId" : "onCustomer_moved_outWebhook",
        "requestBody" : {
          "description" : "Payload for customer_moved_out event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CustomerMovedOutEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_entitlements_updated" : {
      "description" : "<p class=\"mb-2\">Triggered on subscription change, alongside the subscription_changed event whenever there are updates to a subscription&#x27;s entitlements resulting from modifications to its recurring and non recurring items. The event payload contains the first 100 subscription_entitlements. The has_next attribute is set to true if more than 100 subscription entitlements are available. You can retrieve the next page by calling the &quot;List subscription entitlements&quot; endpoint, passing the offset parameter as 1.</p>",
      "post" : {
        "summary" : "Triggered on subscription update, alongside the subscription_updated event whenever the subscription has subscription_entitlements updated. The event payload contains the first 100 subscription_entitlements. The has_next attribute is set to true if more than 100 subscription entitlements are available. You can retrieve the next page by calling the “List subscription entitlements” endpoint, passing the offset parameter as 1.",
        "description" : "<p class=\"mb-2\">Triggered on subscription change, alongside the subscription_changed event whenever there are updates to a subscription&#x27;s entitlements resulting from modifications to its recurring and non recurring items. The event payload contains the first 100 subscription_entitlements. The has_next attribute is set to true if more than 100 subscription entitlements are available. You can retrieve the next page by calling the &quot;List subscription entitlements&quot; endpoint, passing the offset parameter as 1.</p>",
        "operationId" : "onSubscription_entitlements_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_entitlements_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionEntitlementsUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_dunning_expired" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s dunning period has expired.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item's dunning has expired",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item&#x27;s dunning period has expired.</p>",
        "operationId" : "onOmnichannel_subscription_item_dunning_expiredWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_dunning_expired event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemDunningExpiredEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "hierarchy_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a hierarchy is created.</p>",
      "post" : {
        "summary" : "Triggered when a hierarchy is created.",
        "description" : "<p class=\"mb-2\">Triggered when a hierarchy is created.</p>",
        "operationId" : "onHierarchy_createdWebhook",
        "requestBody" : {
          "description" : "Payload for hierarchy_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/HierarchyCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "attached_item_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when an attached item is deleted.</p>",
      "post" : {
        "summary" : "Triggered when an attached item is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when an attached item is deleted.</p>",
        "operationId" : "onAttached_item_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for attached_item_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AttachedItemDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_scheduled_cancellation_removed" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled cancellation is removed.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item scheduled cancellation is removed",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item scheduled cancellation is removed.</p>",
        "operationId" : "onOmnichannel_subscription_item_scheduled_cancellation_removedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_scheduled_cancellation_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledCancellationRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when an item is updated.</p>",
      "post" : {
        "summary" : "Triggered when an item is updated.",
        "description" : "<p class=\"mb-2\">Triggered when an item is updated.</p>",
        "operationId" : "onItem_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for item_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "coupon_set_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a coupon set is created.</p>",
      "post" : {
        "summary" : "Triggered when a coupon set is created.",
        "description" : "<p class=\"mb-2\">Triggered when a coupon set is created.</p>",
        "operationId" : "onCoupon_set_createdWebhook",
        "requestBody" : {
          "description" : "Payload for coupon_set_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CouponSetCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_intent_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a payment intent is updated.</p>",
      "post" : {
        "summary" : "Triggered when a payment intent is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a payment intent is updated.</p>",
        "operationId" : "onPayment_intent_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_intent_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentIntentUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "order_resent" : {
      "description" : "<p class=\"mb-2\">Triggered when an order is resent.</p>",
      "post" : {
        "summary" : "Triggered when an order is resent.",
        "description" : "<p class=\"mb-2\">Triggered when an order is resent.</p>",
        "operationId" : "onOrder_resentWebhook",
        "requestBody" : {
          "description" : "Payload for order_resent event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OrderResentEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_scheduled_downgrade_removed" : {
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item scheduled downgrade is removed",
        "operationId" : "onOmnichannel_subscription_item_scheduled_downgrade_removedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_scheduled_downgrade_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemScheduledDowngradeRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : true
      }
    },
    "omnichannel_subscription_created" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription is created.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription is created",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription is created.</p>",
        "operationId" : "onOmnichannel_subscription_createdWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "tax_withheld_recorded" : {
      "description" : "<p class=\"mb-2\">Triggered when a tax withheld is recorded for an invoice.</p>",
      "post" : {
        "summary" : "Triggered when a tax withheld is recorded for an invoice.",
        "description" : "<p class=\"mb-2\">Triggered when a tax withheld is recorded for an invoice.</p>",
        "operationId" : "onTax_withheld_recordedWebhook",
        "requestBody" : {
          "description" : "Payload for tax_withheld_recorded event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/TaxWithheldRecordedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "price_variant_created" : {
      "description" : "<p class=\"mb-2\">Triggered when a price variant resource is created successfully</p>",
      "post" : {
        "summary" : "Triggered when a price variant is created.",
        "description" : "<p class=\"mb-2\">Triggered when a price variant resource is created successfully</p>",
        "operationId" : "onPrice_variant_createdWebhook",
        "requestBody" : {
          "description" : "Payload for price_variant_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PriceVariantCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "differential_price_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a differential price is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a differential price is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a differential price is deleted.</p>",
        "operationId" : "onDifferential_price_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for differential_price_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DifferentialPriceDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_items_renewed" : {
      "description" : "<p class=\"mb-2\">Triggered when one or more subscription items are renewed.</p>",
      "post" : {
        "summary" : "Triggered when one or more Subscription Items are renewed",
        "description" : "<p class=\"mb-2\">Triggered when one or more subscription items are renewed.</p>",
        "operationId" : "onSubscription_items_renewedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_items_renewed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionItemsRenewedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "rule_created" : {
      "post" : {
        "summary" : "Triggered when a rule is created",
        "operationId" : "onRule_createdWebhook",
        "requestBody" : {
          "description" : "Payload for rule_created event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RuleCreatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "contract_term_cancelled" : {
      "description" : "<p class=\"mb-2\">Triggered when contract term is cancelled.</p>",
      "post" : {
        "summary" : "Triggered when contract term is cancelled.",
        "description" : "<p class=\"mb-2\">Triggered when contract term is cancelled.</p>",
        "operationId" : "onContract_term_cancelledWebhook",
        "requestBody" : {
          "description" : "Payload for contract_term_cancelled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ContractTermCancelledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "contract_term_renewed" : {
      "description" : "<p class=\"mb-2\">Triggered when a contract term is renewed.</p>",
      "post" : {
        "summary" : "Triggered when a contract term is renewed.",
        "description" : "<p class=\"mb-2\">Triggered when a contract term is renewed.</p>",
        "operationId" : "onContract_term_renewedWebhook",
        "requestBody" : {
          "description" : "Payload for contract_term_renewed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ContractTermRenewedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "invoice_deleted" : {
      "description" : "<p class=\"mb-2\">Event triggered when an invoice is deleted.</p>",
      "post" : {
        "summary" : "Event triggered when an invoice is deleted.",
        "description" : "<p class=\"mb-2\">Event triggered when an invoice is deleted.</p>",
        "operationId" : "onInvoice_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for invoice_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/InvoiceDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "item_price_entitlements_removed" : {
      "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_entitlement</code>s were removed for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> or a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>.</p>",
      "post" : {
        "summary" : "One or more `item_price_entitlement`s were removed for an `item_price` or a `feature`.",
        "description" : "<p class=\"mb-2\">One or more <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price_entitlement</code>s were removed for an <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">item_price</code> or a <code class=\"bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap\">feature</code>.</p>",
        "operationId" : "onItem_price_entitlements_removedWebhook",
        "requestBody" : {
          "description" : "Payload for item_price_entitlements_removed event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemPriceEntitlementsRemovedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "sales_order_updated" : {
      "post" : {
        "summary" : "Triggered when a sales order is updated.",
        "operationId" : "onSales_order_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for sales_order_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SalesOrderUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_dunning_started" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item has entered a dunning period.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item's dunning has started",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item has entered a dunning period.</p>",
        "operationId" : "onOmnichannel_subscription_item_dunning_startedWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_dunning_started event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemDunningStartedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "omnichannel_subscription_item_change_scheduled" : {
      "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item change is scheduled.</p>",
      "post" : {
        "summary" : "Triggered when an omnichannel subscription item change is scheduled",
        "description" : "<p class=\"mb-2\">Triggered when an omnichannel subscription item change is scheduled.</p>",
        "operationId" : "onOmnichannel_subscription_item_change_scheduledWebhook",
        "requestBody" : {
          "description" : "Payload for omnichannel_subscription_item_change_scheduled event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/OmnichannelSubscriptionItemChangeScheduledEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "pending_invoice_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when you make the following changes to the invoice - void, delete, invoice address update, status change, payment changes - apply payment / remove payment, credit apply/remove, credit note creation, and so on. &#x27;Invoice_updated&#x27; is triggered for all changes made to the invoice except for the changes which trigger &#x27;pending_invoice_updated&#x27;.</p>",
      "post" : {
        "summary" : "Triggered when you make the following changes to the invoice - void, delete, invoice address update, status change, payment changes - apply payment / remove payment, credit apply/remove, credit note creation, and so on. 'Invoice_updated' is triggered for all changes made to the invoice except for the changes which trigger 'pending_invoice_updated'.",
        "description" : "<p class=\"mb-2\">Triggered when you make the following changes to the invoice - void, delete, invoice address update, status change, payment changes - apply payment / remove payment, credit apply/remove, credit note creation, and so on. &#x27;Invoice_updated&#x27; is triggered for all changes made to the invoice except for the changes which trigger &#x27;pending_invoice_updated&#x27;.</p>",
        "operationId" : "onPending_invoice_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for pending_invoice_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PendingInvoiceUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "quote_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when a quote is updated.</p>",
      "post" : {
        "summary" : "Triggered when a quote is updated.",
        "description" : "<p class=\"mb-2\">Triggered when a quote is updated.</p>",
        "operationId" : "onQuote_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for quote_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/QuoteUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "attached_item_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when an attached item is updated.</p>",
      "post" : {
        "summary" : "Triggered when an attached item is updated.",
        "description" : "<p class=\"mb-2\">Triggered when an attached item is updated.</p>",
        "operationId" : "onAttached_item_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for attached_item_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AttachedItemUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "payment_source_updated" : {
      "description" : "<p class=\"mb-2\">Triggered when the payment source is updated.</p>",
      "post" : {
        "summary" : "Triggered when the payment source is updated and also when a role is assigned to it.",
        "description" : "<p class=\"mb-2\">Triggered when the payment source is updated.</p>",
        "operationId" : "onPayment_source_updatedWebhook",
        "requestBody" : {
          "description" : "Payload for payment_source_updated event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentSourceUpdatedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "business_entity_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a business entity is deleted</p>",
      "post" : {
        "summary" : "Triggered when a business entity is deleted",
        "description" : "<p class=\"mb-2\">Triggered when a business entity is deleted</p>",
        "operationId" : "onBusiness_entity_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for business_entity_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/BusinessEntityDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "authorization_voided" : {
      "description" : "<p class=\"mb-2\">Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time.</p>",
      "post" : {
        "summary" : "Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time.",
        "description" : "<p class=\"mb-2\">Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time.</p>",
        "operationId" : "onAuthorization_voidedWebhook",
        "requestBody" : {
          "description" : "Payload for authorization_voided event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AuthorizationVoidedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    },
    "subscription_ramp_deleted" : {
      "description" : "<p class=\"mb-2\">Triggered when a ramp is deleted.</p>",
      "post" : {
        "summary" : "Triggered when a ramp is deleted.",
        "description" : "<p class=\"mb-2\">Triggered when a ramp is deleted.</p>",
        "operationId" : "onSubscription_ramp_deletedWebhook",
        "requestBody" : {
          "description" : "Payload for subscription_ramp_deleted event",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SubscriptionRampDeletedEvent"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Webhook received successfully"
          }
        },
        "deprecated" : false
      }
    }
  }
}